Skip navigation

Finding images in Azure with PowerShell

Q. Using the PowerShell 1.x AzureRM cmdlets how can I check for images offered?

A. Using the *AzureRm* cmdlets in the 1.0 AzureRM module to check and use images is slightly different than in the old Azure module. To check for images a specific location is now used as follows:

$loc = 'SouthCentralUS' #first set a location
#View the templates available
Get-AzureRmVMImagePublisher -Location $loc #check all the publishers available
Get-AzureRmVMImageOffer -Location $loc -PublisherName "MicrosoftWindowsServer" #look for offers for a publisher
Get-AzureRmVMImageSku -Location $loc -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" #view SKUs for an offer
Get-AzureRmVMImage -Location $loc -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" -Skus "2012-R2-Datacenter" #pick one!

 

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish