Skip to main content

accounts

Creates, updates, deletes, gets or lists a accounts resource.

Overview

Nameaccounts
TypeResource
Idazure.batch.accounts

Fields

NameDatatypeDescription
idtextThe ID of the resource.
nametextThe name of the resource.
accountNametextfield from the properties object
account_endpointtextfield from the properties object
active_job_and_job_schedule_quotatextfield from the properties object
allowed_authentication_modestextfield from the properties object
auto_storagetextfield from the properties object
dedicated_core_quotatextfield from the properties object
dedicated_core_quota_per_vm_familytextfield from the properties object
dedicated_core_quota_per_vm_family_enforcedtextfield from the properties object
encryptiontextfield from the properties object
identitytextThe identity of the Batch account, if configured. This is used when the user specifies 'Microsoft.KeyVault' as their Batch account encryption configuration or when ManagedIdentity is selected as the auto-storage authentication mode.
key_vault_referencetextfield from the properties object
locationtextThe location of the resource.
low_priority_core_quotatextfield from the properties object
network_profiletextfield from the properties object
node_management_endpointtextfield from the properties object
pool_allocation_modetextfield from the properties object
pool_quotatextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe tags of the resource.
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdGets information about the specified Batch account.
listSELECTsubscriptionIdGets information about the Batch accounts associated with the subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets information about the Batch accounts associated with the specified resource group.
createINSERTaccountName, resourceGroupName, subscriptionId, data__locationCreates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
deleteDELETEaccountName, resourceGroupName, subscriptionIdDeletes the specified Batch account.
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdates the properties of an existing Batch account.
regenerate_keyEXECaccountName, resourceGroupName, subscriptionId, data__keyNameThis 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, regenerating the keys will fail.
synchronize_auto_storage_keysEXECaccountName, resourceGroupName, subscriptionIdSynchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.

SELECT examples

Gets information about the Batch accounts associated with the subscription.

SELECT
id,
name,
accountName,
account_endpoint,
active_job_and_job_schedule_quota,
allowed_authentication_modes,
auto_storage,
dedicated_core_quota,
dedicated_core_quota_per_vm_family,
dedicated_core_quota_per_vm_family_enforced,
encryption,
identity,
key_vault_reference,
location,
low_priority_core_quota,
network_profile,
node_management_endpoint,
pool_allocation_mode,
pool_quota,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
subscriptionId,
tags,
type
FROM azure.batch.vw_accounts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new accounts resource.

/*+ create */
INSERT INTO azure.batch.accounts (
accountName,
resourceGroupName,
subscriptionId,
data__location,
location,
tags,
properties,
identity
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ identity }}'
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure.batch.accounts
SET
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified accounts resource.

/*+ delete */
DELETE FROM azure.batch.accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';