Advertisement
ned1313

Retrieve Azure VM Image Skus

Mar 25th, 2017
1,225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $location = "eastus"
  2. $providers = Get-AzureRmVMImagePublisher -Location $location
  3. $offers = Get-AzureRmVMImageOffer -Location $location -PublisherName "Canonical"
  4. $skus = Get-AzureRmVMImageSku -Location $location -PublisherName "Canonical" -Offer "UbuntuServer"
  5. Get-AzureRmVMImage -Location $location -PublisherName "Canonical" -Offer "UbuntuServer" -Skus "16.04-LTS"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement