Azure Batch Documentation

Prerequisites

Before creating an Azure Batch account, you need:

Create an Azure Batch Account – Azure Portal

  1. Sign in to the Azure Portal.
  2. Click Create a resourceComputeBatch account.
  3. Fill in the required fields:
    • Subscription: select your subscription.
    • Resource group: create a new one or choose existing.
    • Account name: must be globally unique.
    • Location: choose a region close to your compute resources.
    • Storage account: optional – Azure will create a storage account for you if left blank.
  4. Click Review + create, then Create.

After a few moments, the Batch account will appear in your resource group.

Create an Azure Batch Account – Azure CLI

Run the following commands in a Bash or PowerShell terminal:

az batch account create \
    --name <your-account-name> \
    --resource-group <your-resource-group> \
    --location <region> \
    --storage-account <storage-account-name> \
    --default-action Allow

Create an Azure Batch Account – PowerShell

Use the Az.Batch module:

New-AzBatchAccount `
    -ResourceGroupName <your-resource-group> `
    -AccountName <your-account-name> `
    -Location <region> `
    -StorageAccountName <storage-account-name> `
    -DefaultAction Allow

Verify the Account

After creation, verify the account using the Azure CLI:

az batch account show \
    --name <your-account-name> \
    --resource-group <your-resource-group>

Next Steps

With the Batch account ready, you can: