Category Archives: PowerShell

Bringing your Azure Service Management VMs (IaaS V1) to Azure Resource Management (IaaS V2)

We have released a tool to clone your VMs from ASM stack to ARM stack during the summer. The tool had a dependency on the previous versions of Azure PowerShell module. With the release of the new PS module, we updated the tool to take advantage of the latest release. Please check it at:

Mixing Azure Resource Management and Service Management Modes in a PowerShell Script

Suppose you need to come up with a script that does work both on Azure Service Management (ASM) and Azure Resource Management (ARM) stacks, however, in Azure PowerShell module, they seem to be exclusive, all of the tutorials say you need to issue View the code on Gist. to switch, and there are name clashes […]

Format Data Disks with Azure VM Custom Script Extension for Linux

There is often a need to add data disks to your virtual machines in Microsoft Azure to store… well data, and a lot of good reasons to place data on a separate data disk. Adding data disks is a pretty easy and straight forward process, and for more information about Azure disks and images see the […]

Deploying an Active Directory Forest on an Azure VM and adding Member VMs on the same Cloud service

The first time you add a new VM to a cloud service with the following Powershell cmdlet, all seems to be OK, New-AzureVM –ServiceName “MyService” –AffinityGroup “MyAffinity” –VNetName “MyVnet” –DnsSettings @(“”) -WaitForBoot But for the subsequent VMs, if you add the DnsSettings, thinking, “sweet, I can specify the DNS addresses as I provision a new […]