This post covers using the Azure REST API in PowerShell. First of you need to install the latest and greatest Azure PowerShell Module on your machine. Best place to do this is to install the good old fashioned MSI available from https://github.com/Azure/azure-powershell/releases Once you have the latest Azure PowerShell Module on your machine, you’ll need to restart. For the remainder of this post we will be focusing on the Rest API for Azure, the reference for the Azure Classic Rest API is here and the Rest API reference for Azure ARM is here. The script below will have you Logon…
Category: Azure
Sequentially Start & Stop Azure VMs – Azure Automation
Following on from my previous blog post, this is how I managed to sequentially start and stop Azure VMs (Virtual Machines) by using Azure Automation. First thing you need to do is setup an Azure Automation account – good news if you’re a light user, this is free! You will need to create some assets: The two assets you need to create are credentials and a subscription automation variable. The credentials the most important part to this for obvious reasons and just like in my previous post, you can’t use a Microsoft account here, you need to create for yourself…
Sequentially Start & Stop Azure VMs
You can see the Azure automation version of sequentially starting & stopping Azure VMs on my other post. Have you ever wanted to sequentially start and stop your Azure Virtual Machines all in one hit? Not just Azure VMs, you can use this same method for any sequential job you want to run in Azure. The following script will start and stop your Azure VMs in parallel by using background jobs in PowerShell. Please note, this script is based on Azure Resource Manager, however with easy change to the code, this same structure will still work with Azure Service Management….
Azure Stack Vs Azure Public | Event
Last night myself and Steve Hosking at Vigilant IT did a presentation of Azure Stack Vs Azure Public in Sydney. All based around Azure Stack TP1 (Technical Preview 1) from what we know now….. This was all based around the announcement that came out the same day about the release of Azure Stack https://azure.microsoft.com/en-us/blog/announcing-the-first-technical-preview-of-microsoft-azure-stack/ Had a great turnout to the user group meetup, 50 people registered with 30 people turning up, the magic 60% show rate rang true even on State Of Origin night and a night with freezing conditions smack bang in the middle of Winter – or was it the free beer…
Azure Stack Overview
Why Azure Stack? I can tell you some very good reasons, apart from more control at the provider side by the possibilities of offering an SLA on a single virtual machine ironing out the Upgrade Domain, there’s also the real use case of ease of setup by letting a glorified PowerShell script written by Microsoft do all the work in setting up the entire environment. Azure Stack offers a perfect platform to any large company to allow delegated usage for internal business divisions, allowing stock standard users to install whatever whenever. For example, a university with various faculties can all…
Azure Billing – PowerShell
Billing in Azure can be a beast to get your head around. But the new billing API that was announced last year by Scott Guthrie makes it easy to export the billing information to a .CSV file, where you can massage it in Excel and make it look pretty. There’s two parts to it, the Azure Usage API and the Azure RateCard API, we will focus on the forma. The PowerShell script below pieced together runs through exporting Azure usage from the Billing API. The problem is the fact that there’s a limit to the number of lines of data…
Azure Inventory – PowerShell
Ever wanted to get a list of all Azure Resources, Virtual Machines or Web Apps (Web Sites) that you have in Azure across both ASM (Classic) and ARM (Azure Resource Manager)? Now you can get a report fully automatically using a PowerShell script I whipped up. The script exports all information to .CSV files. The other good thing is that this script will gradually work its way through all Azure subscriptions that the account has access to. First thing you need to do is logon to Azure (at the top of the script), this part can be automatic if you are…
Azure Enterprise Enrollment – Hierarchy
I wanted to write this post to clear up any confusion about the process of managing an Azure EA, the Enrollment, Department, Account and Subscription. Look at the entire hierarchy and work down through the levels that is Microsoft Azure. The Enrollment Managed using http://ea.azure.com At the very top-level from a licensing perspective, you can have multiple Azure Enrollments, here you can select the enrollment you want to work with. You need to be an Enterprise Administrator to access this. There can be an unlimited number of Enterprise Administrators. The other thing you need to do is change the Enrollment…
Azure Site Recovery Demo – (ARM)
This is a demo I did with ARM (Azure Resource Manager) based Azure Site Recovery. Azure Site Recovery has been around for a while in the old area of Azure – ASM (Azure Service Management), or the ‘classic’ portal, which ever you want to call it. With Site Recovery, it has two uses, firstly it’s a DR/BC tool that allows for test and un-planned failovers of VM workloads. The other major selling point of Azure Site Recovery is it’s ability to migrate existing servers, any physical and any virtual servers to Azure. The best part is it’s completely FREE (up…
Azure Vs Azure AD – Accounts / Tenants / Subscriptions
This post aims to add some sense to the whole Azure account, subscription, tenant, directory layout as well as Azure AD (Azure Active Directory) across both ASM (Classic) and ARM. I will discuss the different administrator roles from an ASM (Azure Service Management) perspective and then take a look at the new changed/updated administrator roles with ARM (Azure Resource Manager). Access control in Azure starts from a billing perspective. The actual owner of an Azure account – accessed by visiting the Azure Accounts Center – is the Account Administrator (AA). Subscriptions are a container for billing, but they also act as a…

You must be logged in to post a comment.