account_keys
Creates, updates, deletes, gets or lists a account_keys
resource.
Overview
Name | account_keys |
Type | Resource |
Id | azure.batch.account_keys |
Fields
Name | Datatype | Description |
---|---|---|
accountName | string | The Batch account name. |
primary | string | The primary key associated with the account. |
secondary | string | The secondary key associated with the account. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, resourceGroupName, subscriptionId | 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. |
SELECT
examples
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.
SELECT
accountName,
primary,
secondary
FROM azure.batch.account_keys
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';