az account management-group subscription
Subscription operations for Management Groups.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az account management-group subscription add |
Add a subscription to a management group. |
Core | GA |
| az account management-group subscription remove |
Remove an existing subscription from a management group. |
Core | GA |
| az account management-group subscription show |
Show the details of a subscription under a known management group. |
Core | GA |
| az account management-group subscription show-sub-under-mg |
Get the subscription under a management group. |
Core | GA |
az account management-group subscription add
Add a subscription to a management group.
az account management-group subscription add --name
--subscription
[--acquire-policy-token]
[--change-reference]
Examples
Add a subscription to a management group.
az account management-group subscription add --name GroupName --subscription Subscription
Required Parameters
Name of the management group.
Subscription Id or Name.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az account management-group subscription remove
Remove an existing subscription from a management group.
az account management-group subscription remove --name
--subscription
[--acquire-policy-token]
[--change-reference]
Examples
Remove an existing subscription from a management group.
az account management-group subscription remove --name GroupName --subscription Subscription
Required Parameters
Name of the management group.
Subscription Id or Name.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az account management-group subscription show
Show the details of a subscription under a known management group.
az account management-group subscription show --name
--subscription
Examples
Show the details of a subscription under a known management group.
az account management-group subscription show --name GroupName --subscription Subscription
Required Parameters
Name of the management group.
Subscription Id or Name.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az account management-group subscription show-sub-under-mg
Get the subscription under a management group.
az account management-group subscription show-sub-under-mg --name
[--acquire-policy-token]
[--change-reference]
Examples
Get the subscription under a management group.
az account management-group subscription show-sub-under-mg --name GroupName
Required Parameters
Name of the management group.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |