How to get the details of all the resoures from their resource groups

和自甴很熟 提交于 2021-02-11 15:34:24

问题


I am trying to set up an azure logic-app with an azure function that will get all(most) of details of all the resources in a subscription. including their subscription ID, Resource Guid and the resource group they reside


回答1:


What you basically need is to make use of the Azure Resource Management API's to operate on your resources. For your requirement you can make use of the below.

GET https://management.azure.com/subscriptions/{subscriptionId}/resources?api-version=2019-05-10

Remember you need to pass your bearer_token along with your Request Headers. To know on how to get a bearer token read this

More information on ARM API's - Documentation



来源:https://stackoverflow.com/questions/58218858/how-to-get-the-details-of-all-the-resoures-from-their-resource-groups

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