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.
Check for image information using RM PowerShell cmdlets
May 30, 2017
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"
You May Also Like