List Azure Subscription Names With PowerShell

This blog post will show you how to use the Azure PowerShell module and list all the subscription names attached to your Azure tenant.

Subscription vs Tenant

A Microsoft Azure tenant can hold and host multiple subscriptions that separate resources and have different payment plans.

To list all the subscription names that are attached to your tenant, Install the Microsoft Azure PowerShell module using the cmdlet below.

Install-Module -Name Az -AllowClobber -Scope CurrentUser

After installing the Azure PowerShell module, Connect to Microsoft Azure using the following cmdlet.

Connect-AzAccount -device

To list all the subscriptions that are attached to your tenant, run the cmdlet below.

Get-AzSubscription | Select-Object -ExpandProperty Name





Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.