Azure Lighthouse Service REST API

Aleksandr Tsaregorodtsev 20 Reputation points
2025-02-11T21:32:23.2166667+00:00

We have many subscriptions, and some of them are managed by the lighthouse service. We would like to know which of them are managed by lighthouse using only rest api. How can we find out?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,312 questions
Azure Lighthouse
Azure Lighthouse
An Azure service that provides secure managed services and access control for partners and customers.
84 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vinodh247 28,386 Reputation points MVP
    2025-02-12T00:46:40.17+00:00

    Hi ,

    Thanks for reaching out to Microsoft Q&A.

    You can use the Azure Lighthouse REST API to determine which of your subscriptions are managed by lighthouse. Specifically, you can query the Delegated Resource Management (DRM) assignments to check which subscriptions have been onboarded.

    Steps to Identify Managed Subscriptions via REST API:

    1. Get the List of Delegated Subscriptions

    Use the following REST API to list all delegated subscriptions managed via Azure Lighthouse:

    GET https://management.azure.com/providers/Microsoft.ManagedServices/registrationAssignments?api-version=2022-08-01

    • This API lists all registration assignments (delegated subscriptions) under your management.
    1. Filter Results for Your Subscriptions
    • The response will contain details of delegated subscriptions.
    • Look for the properties.managedByTenantId field. If the tenantId of your organization is present there, it means that subscription is being managed by Azure Lighthouse.
    1. Get Specific Subscription Delegation Details

    If you want to check whether a specific subscription is managed by Lighthouse, use:

    GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ManagedServices/registrationAssignments?api-version=2022-08-01

    Replace {subscriptionId} with the actual subscription ID.

    1. Authentication

    Ensure that you authenticate using AAD with an appropriate role (such as Reader or Owner on the managing tenant).

     Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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