Finding images in Azure with PowerShell

Check with PowerShell the images available in Azure with the new AzureRM cmdlets.

John Savill

January 10, 2016

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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 availableGet-AzureRmVMImagePublisher -Location $loc #check all the publishers availableGet-AzureRmVMImageOffer -Location $loc -PublisherName "MicrosoftWindowsServer" #look for offers for a publisherGet-AzureRmVMImageSku -Location $loc -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" #view SKUs for an offerGet-AzureRmVMImage -Location $loc -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" -Skus "2012-R2-Datacenter" #pick one!

 

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like