Unable to list subscription under a management group

Abhishek Mittal 1 Reputation point
2020-10-07T12:16:40.397+00:00

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,177 questions
{count} votes

1 answer

Sort by: Most helpful
  1. olufemia-MSFT 2,861 Reputation points
    2020-11-03T14:23:28.557+00:00

    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.

    37107-mgrpps.png

    Other useful documentation: https://video2.skills-academy.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