Microsoft.Batch batchAccounts 2020-05-01

The batchAccounts resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Batch/batchAccounts resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Batch/batchAccounts@2020-05-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  identity: {
    type: 'string'
  properties: {
    autoStorage: {
      storageAccountId: 'string'
    encryption: {
      keySource: 'string'
      keyVaultProperties: {
        keyIdentifier: 'string'
    keyVaultReference: {
      id: 'string'
      url: 'string'
    poolAllocationMode: 'string'
    publicNetworkAccess: 'string'

Property values


Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
name The resource name string (required)
location The location of the resource. string (required)
tags The tags of the resource. Dictionary of tag names and values. See Tags in templates
identity The identity of the Batch account, if configured. This is only used when the user specifies 'Microsoft.KeyVault' as their Batch account encryption configuration. BatchAccountIdentity
properties Account specific properties. BatchAccountCreateProperties


Name Description Value
type The type of identity used for the Batch account. 'None'


Name Description Value
autoStorage Contains information about the auto-storage account associated with a Batch account. AutoStorageBaseProperties
encryption Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. EncryptionProperties
keyVaultReference Identifies the Azure key vault associated with a Batch account. KeyVaultReference
poolAllocationMode The allocation mode for creating pools in the Batch account. 'BatchService'
publicNetworkAccess The network access type for operating on the resources in the Batch account. 'Disabled'


Name Description Value
storageAccountId The resource ID of the storage account to be used for auto-storage account. string (required)


Name Description Value
keySource Type of the key source. 'Microsoft.Batch'
keyVaultProperties KeyVault configuration when using an encryption KeySource of Microsoft.KeyVault. KeyVaultProperties


Name Description Value
keyIdentifier Full path to the versioned secret. Example To be usable the following prerequisites must be met:

The Batch Account has a System Assigned identity
The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap permissions
The KeyVault has soft-delete and purge protection enabled


Name Description Value
id The resource ID of the Azure key vault associated with the Batch account. string (required)
url The URL of the Azure key vault associated with the Batch account. string (required)

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create a Batch Account using a template

Deploy to Azure
This template creates a Batch Account and a storage account.