Check available Azure images using RM PowerShell

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 available
Get-AzureRmVMImagePublisher -Location $loc
Get-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"

 

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