az account subscription
Note
This reference is part of the account extension for the Azure CLI (version 2.38.0 or higher). The extension will automatically install the first time you run an az account subscription command. Learn more about extensions.
This command group is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage subscriptions.
Commands
Name | Description | Type | Status |
---|---|---|---|
az account subscription cancel |
Cancel subscription. |
Extension | Experimental |
az account subscription enable |
Enable subscription. |
Extension | Experimental |
az account subscription list |
Get all subscriptions for a tenant. |
Extension | Experimental |
az account subscription list-location |
This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list. |
Extension | Experimental |
az account subscription rename |
Rename subscription. |
Extension | Experimental |
az account subscription show |
Get details about a specified subscription. |
Extension | Experimental |
az account subscription cancel
Command group 'account subscription' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Cancel subscription.
az account subscription cancel --id
[--yes]
Examples
Cancel subscription
az account subscription cancel --subscription-id "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Required Parameters
Subscription Id.
Optional Parameters
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az account subscription enable
Command group 'account subscription' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Enable subscription.
az account subscription enable --id
Examples
Enable subscription
az account subscription enable --subscription-id "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Required Parameters
Subscription Id.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az account subscription list
Command group 'account subscription' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get all subscriptions for a tenant.
az account subscription list
Examples
listSubscriptions
az account subscription list
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az account subscription list-location
Command group 'account subscription' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
az account subscription list-location --id
Examples
listLocations
az account subscription list-location --subscription-id "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Required Parameters
The ID of the target subscription.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az account subscription rename
Command group 'account subscription' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Rename subscription.
az account subscription rename --id
[--name]
Examples
Rename subscription
az account subscription rename --subscription-id "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Required Parameters
Subscription Id.
Optional Parameters
New subscription name.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az account subscription show
Command group 'account subscription' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get details about a specified subscription.
az account subscription show --id
Examples
getSubscription
az account subscription show --subscription-id "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Required Parameters
The ID of the target subscription.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI