az batch account keys
Manage Batch account keys.
Commands
az batch account keys list |
Gets the account keys for the specified Batch account. |
az batch account keys renew |
Regenerates the specified account key for the Batch account. |
az batch account keys list
Gets the account keys for the specified Batch account.
This operation applies only to Batch accounts created with a poolAllocationMode of 'BatchService'. If the Batch account was created with a poolAllocationMode of 'UserSubscription', clients cannot use access to keys to authenticate, and must use Azure Active Directory instead. In this case, getting the keys will fail.
az batch account keys list --name
--resource-group
[--query-examples]
[--subscription]
Required Parameters
Name of the Batch account.
Name of the resource group.
Optional Parameters
Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Increase logging verbosity. Use --debug for full debug logs.
az batch account keys renew
Regenerates the specified account key for the Batch account.
az batch account keys renew --key-name {Primary, Secondary}
--name
--resource-group
[--subscription]
Required Parameters
The type of account key to regenerate.
Name of the Batch account.
Name of the resource group.
Optional Parameters
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Increase logging verbosity. Use --debug for full debug logs.