Sign in to the Windows Azure Management Portal.
Choose VIRTUAL MACHINES, choose NEW, and then choose FROM GALLERY.
On the Select the virtual machine operating system page, locate the image that you want to use.
Note the name of the image.
This is the label that is assigned to the image.
Start Windows Azure PowerShell.
Choose VIRTUAL MACHINES, choose NEW, and then choose FROM GALLERY.
On the Select the virtual machine operating system page, locate the image that you want to use.
Note the name of the image.
This is the label that is assigned to the image.
Start Windows Azure PowerShell.
$image=Get-AzureVMImage | where-object {$_.Label -like "Windows Server 2008 R2 SP1*"}
Now you can access the image name using
$image[0].ImageName
No comments:
Post a Comment