Check available Azure images using RM PowerShell

Check for image information using RM PowerShell cmdlets

John Savill

May 30, 2017

1 Min Read
Check available Azure images using RM PowerShell

Q. How can I check on available Azure images using the RM PowerShell cmdlets?

A. To use the RM PowerShell cmdlets to check for available use the following sequence which checks for the publishers, offers, SKUs and the versions.

$loc = 'SouthCentralUS'#View the templates availableGet-AzureRmVMImagePublisher -Location $locGet-AzureRmVMImageOffer -Location $loc -PublisherName "MicrosoftWindowsServer"Get-AzureRmVMImageSku -Location $loc -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer"Get-AzureRmVMImage -Location $loc -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" -Skus "2012-R2-Datacenter"$AzureImage = Get-AzureRmVMImage -Location $loc -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" `    -Skus "2012-R2-Datacenter" -Version "4.0.20160617"

 

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