Home > other >  How to list all vm sizes for a specific region using azure sdk for go
How to list all vm sizes for a specific region using azure sdk for go

Time:10-05

I've been going through the documentation for "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2021-07-01/compute"

But can't seem to figure out how I'd go about listing vm sizes for a specific region. If somebody has any degree of experience doing this, your input would be greatly appreciated.

Thanks

CodePudding user response:

You might need to call two methods,

  1. List the VMs in a resource group
  2. Get VM information including the location
  • Related