How to register an Azure app that allows for use of the SUBSCRIPTIONS endpoint

blusyblues 1 Reputation point
2023-12-13T06:01:37.0733333+00:00

I'm trying to register an azure app so that I can call the https://management.azure.com/subscriptions endpoint.

I've tried the following:

az ad sp create-for-rbac --name myappname --years 30

But, when I use the credentials generated I always end up with a blank list of subscriptions even though I should be getting multiple.

I used the same command a couple of years ago and the credentials I got from that still works - I can get the subscription list. But any new credentials created with the command does not work with the subscriptions endpoint.

Comparing the manifest for the app credentials I created two years ago and the one I get now and they are quite different.

But I can't make them match - editing the manifest manually has been a failure all around - MS complains about every tiny edit and I can never get the edited manifest to save.

So, I'm hoping that someone here has an idea as to what I'm missing on getting that subscriptions endpoint to work.

Thanks in advance for any help.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 18,140 Reputation points MVP Moderator
    2023-12-13T07:16:45.1333333+00:00

    Hi , To answer this please check below

    Configure the app manifest

    To configure the application manifest:

    1. Sign in to the Microsoft Entra admin center as at least an Application Developer.
    2. Browse to Identity > Applications > App registrations.
    3. Select the app you want to configure.
    4. From the app's Overview page, select the Manifest section. A web-based manifest editor opens, allowing you to edit the manifest. Optionally, you can select Download to edit the manifest locally, and then use Upload to reapply it to your application.

    Please find this doc for detailed explanation

    https://learn.microsoft.com/en-us/entra/identity-platform/reference-app-manifest

    Kindly accept answer if it has helped Thanks

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.