Prerequisites
Before creating an Azure Batch account, you need:
- An active Azure subscription.
- Permission to create resources (Owner or Contributor role).
- Azure CLI 2.0+ or PowerShell module installed (optional for script‑based creation).
Create an Azure Batch Account – Azure Portal
- Sign in to the Azure Portal.
- Click Create a resource → Compute → Batch account.
- 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.
- 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:
- Create a compute pool.
- Submit jobs and tasks.
- Configure autoscaling, networking, and storage options.