Get subscription and tenant IDs in the Azure portal
A tenant is an Azure Active Directory (Azure AD) 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.
- Sign in to the Azure portal.
- Under the Azure services heading, select Subscriptions. If you don't see Subscriptions here, use the search box to find it.
- Find the Subscription ID for the subscription 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 Azure AD tenant.
- Copy the Subscription ID. You can paste this value into a text document or other location.
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 Azure AD tenant
Follow these steps to retrieve the ID for an Azure AD tenant in the Azure portal.
- Sign in to the Azure portal.
- 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.
- Under the Azure services heading, select Azure Active Directory. If you don't see Azure Active Directory here, use the search box to find it.
- Find the Tenant ID in the Basic information section of the Overview screen.
- Copy the Tenant ID. You can paste this value into a text document or other location.
Tip
You can also find your tenant programmatically by using Azure Powershell or Azure CLI.
Next steps
- Learn more about Azure Active Directory.
- Learn how to manage Azure subscriptions with the Azure CLI.
- Learn how to manage Azure portal settings and preferences.
Feedback
Submit and view feedback for