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

Renew keys for a Batch account.

az batch account keys list

Gets the account keys for the specified Batch account.

This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.

az batch account keys list --name
                           --resource-group

Required Parameters

--name -n

Name of the Batch account.

--resource-group -g

Name of the resource group.

az batch account keys renew

Renew keys for a Batch account.

az batch account keys renew [--key-name {Primary, Secondary}]
                            [--name]
                            [--resource-group]

Examples

Renew keys for a Batch account.

az batch account keys renew --name MyBatchAccount --resource-group MyResourceGroup --key-name primary

Optional Parameters

--key-name

Name of the batch account key.

accepted values: Primary, Secondary
--name -n

Name of the batch account to show. If not specified will display currently set account.

--resource-group -g

Name of the resource group. If not specified will display currently set account.