如何从其资源组中获取所有资源的详细信息 [英] How to get the details of all the resoures from their resource groups
问题描述
我正在尝试使用azure函数设置azure逻辑应用程序,该应用程序将获取订阅中所有资源的所有(大部分)详细信息.包括其订阅ID,Resource Guid和它们所驻留的资源组
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
推荐答案
您基本上需要使用 Azure资源管理
API来对资源进行操作.根据您的要求,您可以利用以下内容.
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
请记住,您需要将 bearer_token
连同请求标题一起传递.要了解如何获取不记名令牌,请阅读这个
Remember you need to pass your bearer_token
along with your Request Headers. To know on how to get a bearer token read this
有关ARM API的详细信息-文档
More information on ARM API's - Documentation
这篇关于如何从其资源组中获取所有资源的详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!