Get subscription and tenant IDs in the Azure portal

A tenant is a Microsoft Entra ID entity that typically encompasses an organization. Tenants can have one or more subscriptions, which are agreements with Microsoft to use cloud services, including Azure. Every Azure resource is associated with a subscription.

Each subscription has an ID associated with it, as does the tenant to which a subscription belongs. As you perform different tasks, you may need the ID for a subscription or tenant. You can find these values in the Azure portal.

Find your Azure subscription

Follow these steps to retrieve the ID for a subscription in the Azure portal.

  1. Sign in to the Azure portal.

  2. Under the Azure services heading, select Subscriptions. If you don't see Subscriptions here, use the search box to find it.

  3. Find the subscription in the list, and note the Subscription ID shown in the second column. If no subscriptions appear, or you don't see the right one, you may need to switch directories to show the subscriptions from a different Microsoft Entra tenant.

  4. To easily copy the Subscription ID, select the subscription name to display more details. Select the Copy to clipboard icon shown next to the Subscription ID in the Essentials section. You can paste this value into a text document or other location.

    Screenshot showing the option to copy a subscription ID in the Azure portal.

Tip

You can also list your subscriptions and view their IDs programmatically by using Get-AzSubscription (Azure PowerShell) or az account list (Azure CLI).

Find your Microsoft Entra tenant

Follow these steps to retrieve the ID for a Microsoft Entra tenant in the Azure portal.

  1. Sign in to the Azure portal.

  2. Confirm that you are signed into the tenant for which you want to retrieve the ID. If not, switch directories so that you're working in the right tenant.

  3. Under the Azure services heading, select Microsoft Entra ID. If you don't see Microsoft Entra ID here, use the search box to find it.

  4. Find the Tenant ID in the Basic information section of the Overview screen.

  5. Copy the Tenant ID by selecting the Copy to clipboard icon shown next to it. You can paste this value into a text document or other location.

    Screenshot showing the option to copy a tenant ID in the Azure portal.

Tip

You can also find your tenant programmatically by using Azure Powershell or Azure CLI.

Next steps