Files
hacktricks-cloud/pentesting-cloud/azure-security/az-services/az-management-groups-subscriptions-and-resource-groups.md
2024-12-12 19:35:48 +01:00

3.6 KiB

Az - Management Groups, Subscriptions & Resource Groups

{% hint style="success" %} Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks
{% endhint %}

Management Groups

You can find more info about Management Groups in:

{% content-ref url="../az-basic-information/" %} az-basic-information {% endcontent-ref %}

Enumeration

# List
az account management-group list
# Get details and management groups and subscriptions that are children
az account management-group show --name <name> --expand --recurse

Subscriptions

You can find more info about Subscriptions in:

{% content-ref url="../az-basic-information/" %} az-basic-information {% endcontent-ref %}

Enumeration

{% code overflow="wrap" %}

# List all subscriptions
az account list --output table
# Get details
az account management-group subscription show --name <management group> --subscription <subscription>

{% endcode %}

Resource Groups

You can find more info about Resource Groups in:

{% content-ref url="../az-basic-information/" %} az-basic-information {% endcontent-ref %}

Enumeration

{% code overflow="wrap" %}

# List all resource groups
az group list
# Get resource groups of specific subscription
az group list --subscription "<subscription>" --output table

{% endcode %}

{% hint style="success" %} Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks
{% endhint %}