List All Azure subscriptions using domain name

Vinay Bhardwaj 0 Reputation points
2023-10-24T10:59:29.8933333+00:00

Hi,

I have a customer (lets say ABC.com) that has given free hand to their employees to create Azure paid subscriptions.

The customer does not have the overview of how many azure tenants & Subscriptions they have & the billing overview.

Is there a way to list all the subscription IDs & tenant IDs using just the domain name i.e. ABC.com

Regards

Vinay

Azure Lighthouse
Azure Lighthouse
An Azure service that provides secure managed services and access control for partners and customers.
68 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 98,626 Reputation points MVP
    2023-10-24T11:35:38.11+00:00

    Hi @Vinay Bhardwaj ,

    maybe this PowerShell snippet is helpful:

    $domainName = "<YourDomainName.SomeThing>"
    $tentant = Get-AzTenant | Where-Object {$_.Domains -contains $domainName}
    Get-AzSubscription -TenantId $tentant
    

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    0 comments No comments