I am working on Azure Devops CI pipeline I need to show Region as parameter for my pipeline I need to show VM sizes as another parameter for my pipeline
az vm list-sizes --location westus
Initially i thought i can keep some vm sizes in my pipeline as hardcode values for parameter but seems vm size list is different across different regions.
parameters:
- name: location
displayName: 'Azure Region'
type: string
- name: vmsize
displayName: 'Select VM Size'
type: string
values:
- Standard_NC48ads_A100_v4
- Standard_NC96ads_A100_v4
- and so on
- and so on
- .......
How to resolve this please?