how do I find my AZURE_TENANT_ID

Albert Jones 0 Reputation points
2026-09-22T20:54:34.56+00:00

how in the gui do I find my AZURE_TENANT_ID - i need it to log in via the az login command and I just use the GUI for everything

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

2 answers

Sort by: Most helpful
  1. Marcin Policht 110.4K Reputation points MVP Volunteer Moderator
    2026-09-22T22:11:42.3233333+00:00

    Use the following procedure:

    1. Sign in to the Azure Portal.
    2. Search for and select Microsoft Entra ID using the top search bar.
    3. Look under the Overview section in the left-hand menu.
    4. Copy the alphanumeric value labeled Tenant ID from the basic information section.

    Once you copy that value, you can run your login command in your terminal: az login --tenant <YOUR_TENANT_ID>


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. AI answer

    2026-09-22T20:54:44.9566667+00:00

    In the GUI, the easiest ways are:

    1. Sign in to the Azure portal.
    2. Go to Microsoft Entra ID.
    3. On the Overview page, copy the Tenant ID from Basic information.

    Or:

    1. In the Azure portal, go to Microsoft Entra ID > Properties.
    2. Find Tenant ID and copy it.

    Another GUI option:

    1. Sign in to the Microsoft Entra admin center.
    2. Go to Entra ID > Overview > Properties.
    3. Copy the Tenant ID.

    The value needed for AZURE_TENANT_ID is that Tenant ID GUID.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was 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.