question

MSTechie-7364 avatar image
0 Votes"
MSTechie-7364 asked MSTechie-7364 commented

REST API to list all available VMs in West Europe

Do we have a REST API to list all available VM sizes in West Europe (for use in my several subscriptions)

azure-virtual-machines
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ChristopherW-MSFT avatar image
0 Votes"
ChristopherW-MSFT answered MSTechie-7364 commented

Hi @MSTechie-7364 ,

If you need to check Available Sizes for the Subscription, you can run a GET 'providers/Microsoft.Compute' for all of the SKUs for Microsoft.Compute with a Location Filter.
https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list

Example:

 GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/skus?api-version=2021-07-01&$filter={$filter}&includeExtendedLocations={includeExtendedLocations} 

If you need to check all Resources that currently exist in the Subscription, then you can run GET 'resources'.
https://docs.microsoft.com/en-us/rest/api/resources/resources/list

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ChristopherW-MSFT

i am not looking for VM images in subscription, but in entire West Europe .

0 Votes 0 ·