PowerShell create new Azure VM from uploaded disk (not image)
- by MikeBaz
I have a VHD in Azure storage. That VHD is configured as an OS disk through a command like the following:
Add-AzureDisk -DiskName $newCode -MediaLocation "http://$script:accountName.blob.core.windows.net/$newCode/$sourceVhdName.vhd" `
-Label $newCode -OS "Windows"
I would like to create a new VM pointing at that disk. From what I can tell if…