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!

Itaiz
  • 3
  • 1

2 Answers2

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.

Gaurav Mantri
  • 128,066
  • 12
  • 206
  • 241
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

RamaraoAdapa
  • 2,837
  • 2
  • 5
  • 11