Batch account keys - az batch account keys

Manage your 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

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

Required Parameters

--name -n

Name of the Batch account.

--resource-group -g

Name of the resource group.

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

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.