Programmatically getting the list of azure virtual machine sizes
问题 I am new to Azure management libraries for .net. How can we enumerate VM instance sizes available with respect to subscription or in general using Azure Management libraries for .Net or Rest APIs? Please suggest. 回答1: You can get a list of VM sizes for a region by calling https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/{location}/vmSizes?api-version={api-version} As documented here - List all available virtual machine sizes in a region There