Unable to list subscription under a management group

Abhishek Mittal 1 Reputation point

I am trying to list all subscriptions under a specific Management group, and i need to exclude these subscriptions from my activity targeting all subscriptions under my Azure Tenant.

I can't find any documentation about it but its really important to have this functionality.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,075 questions
{count} votes

1 answer

Sort by: Most helpful
  1. olufemia-MSFT 2,861 Reputation points

    Hello @Abhishek Mittal , sorry for the delay and thanks for clarifying.

    Use Get-AzManagementGroup cmd to retrieve all groups. Review this content for the full list of supported Management Group PS cmdlets.
    To return a specific management group and all the levels of the hierarchy under it, use -Expand and -Recurse parameters.


    Other useful documentation: https://learn.microsoft.com/en-us/azure/governance/management-groups/manage

    Hope this helps but dont hesitate to ping if you have any followup questions.

    0 comments No comments