account_keys
Creates, updates, deletes, gets or lists an account_keys
resource.
Overview
Name | account_keys |
Type | Resource |
Id | azure.batch.account_keys |
Fields
The following fields are returned by SELECT
queries:
- get
The operation was successful. The response contains the keys of the Batch account.
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
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , accountName , 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. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
accountName | string | The name of the Batch account. |
resourceGroupName | string | The name of the resource group that contains the Batch account. |
subscriptionId | string | The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) |
SELECT
examples
- get
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 resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;