I am looking for Azure SDK or REST API (code sample) to get the list of available VM sizes based on VM image.
I see below are only 3 options as per Microsoft Docs. but in Azure portal while creating VM after choosing VM we can see the list of available VM sizes.
I need to know the details of API that's been used in Azure portal
https://docs.microsoft.com/en-us/azure/virtual-machines/sizes#rest-api