Azure / Azure/azure-cli

List the subscriptions belong to management-groups

Open
#17,575 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Describe the problem **
Seems currently there is no way to list the subscriptions belonging to a management group.
- you can list the mgmt-groups
- you can list subscriptions, but the details dont include mgmt-group membership
- you can create/update mgmt-groups
- you can assign subs to mgmt-groups

**Describe the solution you'd like**
It be great if there was a "**az account management-group subscriptions show**" command
e.g.
az account management-group subscriptions show -n

**Describe alternatives you've considered**
There is an api call for this :
GET https://management.azure.com/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions?api-version=2020-05-01

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.