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.

az batch account keys list --name
--resource-group
[--subscription]

Required Parameters

--name -n

Name of the Batch account.

--resource-group -g

Name of the resource group.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

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

--key-name

The type of account key to regenerate.

accepted values: Primary, Secondary
--name -n

Name of the Batch account.

--resource-group -g

Name of the resource group.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.