Share via

How to use 1p app to call for azure resource management API ?

Rishabh Srivastava 60 Reputation points Microsoft Employee
2026-02-18T21:47:17.4266667+00:00

Hello

I want to use ARM API https://learn.microsoft.com/en-us/rest/api/resources/tenants/list?view=rest-resources-2022-12-01&tabs=HTTP#code-try-0 I have 1p app setup in my service and want to use that 1p app to call this API. Can you please povide me what steps I need to follow to allow my 1p app to call ARM API ?

I have completed my Prof of cocept for 3p app but I am looking to guide for 1p app.

Microsoft Security | Microsoft Graph
{count} votes

3 answers

Sort by: Most helpful
  1. kagiyama yutaka 1,165 Reputation points
    2026-02-22T20:28:12.85+00:00

    1p app u need ARM’s .default scope and a role on the tenant‑root and without that top grant the token looks ok but ARM won’t honor it.

    0 comments No comments

  2. Jocelyn Micaela Gallardo Michea 0 Reputation points
    2026-02-19T04:13:01.58+00:00

    No puedo ver el código de verificación para entrar como lo puedo Aser

    0 comments No comments

  3. Q&A Assist
    2026-02-18T21:47:25.77+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To use a first-party (1p) application to call the Azure Resource Management (ARM) API, you need to follow these steps:

    1. Register Your Application: Ensure that your 1p app is registered in Azure Active Directory (Azure AD). This involves creating an application registration in the Azure portal.
    2. Expose API Permissions: You need to expose the necessary permissions for your application to call the ARM API. This typically includes adding application permissions that allow your app to access the resources it needs.
      • Navigate to the App registrations section in the Azure portal.
      • Select your application and go to the API permissions section.
      • Click on Add a permission, then choose APIs my organization uses to find the ARM API and add the required permissions.
    3. Grant Admin Consent: After adding permissions, make sure to grant admin consent for the permissions to take effect. This is usually done in the same API permissions section.
    4. Obtain an Access Token: Use the OAuth 2.0 authorization code flow to obtain an access token for your application. You will need to request an authorization code from Azure AD, which involves making a request to the /authorize endpoint with the required parameters such as client_id, redirect_uri, and resource.
    5. Call the ARM API: Once you have the access token, you can make calls to the ARM API. Include the access token in the Authorization header of your HTTP request to the ARM API endpoint.
    6. Handle Responses: Ensure that you handle the responses from the ARM API appropriately, including any error responses that may occur.

    By following these steps, you should be able to successfully configure your 1p app to call the Azure Resource Management API.

    0 comments No comments

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.