Proposed Pull Request Change

title description ms.date ms.topic ms.custom
Get subscription and tenant IDs in the Azure portal Learn how to locate and copy the IDs of Azure tenants and subscriptions. 01/21/2026 how-to sfi-image-nochange
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
Content Truncation Detected
The generated rewrite appears to be incomplete.
Original lines: -
Output lines: -
Ratio: -
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: Get subscription and tenant IDs in the Azure portal description: Learn how to locate and copy the IDs of Azure tenants and subscriptions. ms.date: 01/21/2026 ms.topic: how-to ms.custom: sfi-image-nochange # Customer intent: "As an Azure user, I want to locate and copy my subscription and tenant IDs in the Azure portal, so that I can use these values when performing management tasks." --- # Get subscription and tenant IDs in the Azure portal A tenant is a [Microsoft Entra ID](/azure/active-directory/fundamentals/active-directory-whatis) 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 might 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](https://portal.azure.com). 1. Under the Azure services heading, select **Subscriptions**. If you don't see **Subscriptions** here, use the search box to find it. 1. 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 might need to [switch directories](set-preferences.md#switch-and-manage-directories) to show the subscriptions from a different Microsoft Entra tenant. 1. To easily copy the **Subscription ID**, select the subscription name to display more details. Select the **Copy to clipboard** icon next to the **Subscription ID** in the **Essentials** section. You can paste this value into a text document or other location. :::image type="content" source="media/get-subscription-tenant-id/copy-subscription-id.png" alt-text="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](/powershell/module/az.accounts/get-azsubscription) (Azure PowerShell) or [az account list](/cli/azure/account#az-account-list) (Azure CLI). <a name='find-your-azure-ad-tenant'></a> ## Find your Microsoft Entra tenant Follow these steps to get the ID for a Microsoft Entra tenant in the Azure portal. 1. Sign in to the [Azure portal](https://portal.azure.com). 1. Make sure you're signed into the tenant for which you want to get the ID. If not, [switch directories](set-preferences.md#switch-and-manage-directories) so that you're working in the right tenant. 1. 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. 1. Find the **Tenant ID** in the **Basic information** section of the **Overview** screen. 1. 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. :::image type="content" source="media/get-subscription-tenant-id/copy-tenant-id.png" alt-text="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](/azure/active-directory/fundamentals/how-to-find-tenant#find-tenant-id-with-powershell) or [Azure CLI](/azure/active-directory/fundamentals/how-to-find-tenant#find-tenant-id-with-cli). ## Next steps - Learn more about [Microsoft Entra ID](/azure/active-directory/fundamentals/active-directory-whatis). - Learn how to manage Azure subscriptions [with Azure CLI](/cli/azure/manage-azure-subscriptions-azure-cli) or [with Azure PowerShell](/powershell/azure/manage-subscriptions-azureps). - Learn how to [manage Azure portal settings and preferences](set-preferences.md).
Success! Branch created successfully. Create Pull Request on GitHub
Error: