0

I'm new to Azure. I created an Azure AD application and gave it reader role assignments in several subscriptions - and I want to list those subscriptions dynamically

I need an API to list all the subscriptions which my application has a role assignment on, but I can't find a way to do it. any ideas?

Thanks!

4

2 回答 2

1

The API you would want to call is Subscriptions - List which will give you the list of all subscriptions the caller has access to.

于 2021-12-14T10:12:29.237 回答
0

You can use below REST API method to list the subscriptions

GET https://management.azure.com/subscriptions?api-version=2020-01-01

Reference: Subscriptions - List - REST API (Azure Resource Management) | Microsoft Docs

于 2021-12-14T10:13:48.170 回答