Microsoft Azure how to get a list of locations from the REST ARM API?

守給你的承諾、 提交于 2020-01-06 20:04:40

问题


Does Azure ARM REST API provide a way to get a list of available regions?

I can see that the classic REST API provides such a list as described here:

https://msdn.microsoft.com/en-us/library/azure/gg441293.aspx

But I can't see its equivalent for ARM.


回答1:


To list the locations for an Azure Subscription using ARM API, please see this link: https://msdn.microsoft.com/en-us/library/azure/dn790540.aspx.

However please keep in mind that not all resources are available in all locations. If you want to find out the locations where a particular resource type is available, you would need to fetch information about the provider of that resource type. For this, please see this link: https://msdn.microsoft.com/en-us/library/azure/dn790524.aspx



来源:https://stackoverflow.com/questions/35544850/microsoft-azure-how-to-get-a-list-of-locations-from-the-rest-arm-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!