Get-AzSubscription

Get subscriptions that the current account can access.

The Get-AzSubscription cmdlet gets the subscription ID, subscription name, and home tenant for subscriptions that the current account can access.

Get all subscriptions in all tenants

PS C:\>Get-AzSubscription

Get all subscriptions for a specific tenant

PS C:\>Get-AzSubscription -TenantId "aaaa-aaaa-aaaa-aaaa"

Comments

Leave a Comment

All fields are required. Your email address will not be published.