Microsoft.Batch batchAccounts 2020-03-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-03-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  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 region in which to create the account. string (required)
tags The user-specified tags associated with the account. Dictionary of tag names and values. See Tags in templates
properties The properties of a Batch account. BatchAccountCreateProperties


Name Description Value
autoStorage The properties related to the auto-storage account. AutoStorageBaseProperties
encryption 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 KeyVaultProperties


Name Description Value
keyIdentifier Full path to the versioned secret. Example string


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.