I am trying to list all the Azure subscriptions under a specific management group by using Azure Python SDK. But I couldn’t find any function which retrieves them.
Do you have any idea?
I am trying to list all the Azure subscriptions under a specific management group by using Azure Python SDK. But I couldn’t find any function which retrieves them.
Do you have any idea?
2
Answers
With the
SubscriptionClient
class, I have achieved to list the subscriptions that an account has access.For this kind of thing you should you Azure Resource Graph, which is simply
There’s also an REST API on place to be consumed by various SDKs including Python
Hope it will helps 🙂