How do I resolve the homeTenantId to a tenant display name?

Ivo Palli 20 Reputation points
2025-05-14T12:02:52.8033333+00:00

I'm new to Azure, so it might be a stupid question, but here goes.

My company uses Lighthouse to manage multiple customers. I'm trying to get information from Azure via the CLI az. In my web GUI I can 'Switch Directory' and get 2 directories. I also get a dropdown box with managed customers (with IDs) for the chosen directory and under that a dropdown with their subscriptions.

I can use

az rest --method GET --uri https://management.azure.com/tenants?api-version=2020-01-01

to get a list of the two directories

I can use

az account list

to get a list of all the subscriptions of both directories.

In that last data is a field called 'homeTenantId' that has the ID of the customer.

How do I get a list of all customers display names and their ID? (which I can see on the web GUI)

Azure Lighthouse
Azure Lighthouse
An Azure service that provides secure managed services and access control for partners and customers.
{count} votes

Accepted answer
  1. Ashok Gandhi Kotnana 10,430 Reputation points Microsoft External Staff Moderator
    2025-05-16T13:18:03.5+00:00

    @Ivo Palli

    The requested feature (Hometenant Name) is not currently available using Azure CLI. We will share this feedback with the product teamProvide your valuable Comments.

    User's image

    Please do not forget to "Accept the answer” and “upvote it” wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.

    1 person found this answer helpful.
    0 comments No comments

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.