Cloud service · Azure · Updated

Batch - Azure Batch is a managed service for scheduling parallel and high-performance computing jobs across pools of Azure virtual machines.

In short

Azure Batch provisions compute pools and schedules application tasks for large-scale, asynchronous processing. Engineers supply executables or container images, input data, and task definitions, while Batch manages task placement and compute scaling within configured policies and quotas.

Cloud Services Hub →

8 key features of Batch

01
Managed compute pools

Create pools of Linux or Windows compute nodes using supported VM sizes and images. Select CPU, memory, GPU, and networking capabilities to match application requirements, subject to regional availability and quotas.

02
Job and task scheduling

Submit command-line tasks under jobs and let Batch place them on available nodes. Configure dependencies, priorities, retry limits, and execution constraints instead of implementing a worker scheduler yourself.

03
Formula-based autoscaling

Use autoscale formulas to adjust target node counts from workload metrics such as pending tasks. Account for node startup time and use suitable scale-down behavior to avoid unnecessarily interrupting running work.

04
Application and container deployment

Distribute applications through application packages, start tasks, custom VM images, or container images on compatible pools. Pin application and image versions to make processing reproducible.

05
Multi-instance processing

Run coordinated applications across multiple nodes using multi-instance tasks, including appropriately configured MPI workloads. Validate inter-node communication, application dependencies, and VM networking capabilities before scaling out.

06
Durable task output handling

Configure task output files for upload to Azure Blob Storage or upload results from application code. Preserve failure logs as well as successful outputs because local node files disappear when nodes are removed.

07
Dedicated and Spot capacity

Use dedicated nodes for steadier execution and Spot nodes for work that tolerates eviction. Keep checkpoints outside the node and make externally visible task operations safe to retry.

08
Recurring job submission

Use job schedules to create jobs on a recurring timetable. Configure job lifetime and completion behavior so previous runs do not remain active indefinitely.

Where Batch is used

  1. 01
    Rendering and media processing

    Render independent animation frames or transcode media files as separate tasks. Package the rendering application in a custom image or container, and provide access to any required license server.

  2. 02
    Scientific simulations

    Run parameter sweeps, Monte Carlo simulations, or supported multi-node scientific applications. Choose compute-optimized or HPC VM sizes after measuring CPU, memory, and communication requirements.

  3. 03
    Large-scale file transformation

    Partition document, image, or archive processing into tasks that read from Blob Storage and write deterministic outputs. Use stable input identifiers to prevent duplicate results when tasks are retried.

  4. 04
    Financial risk calculations

    Distribute portfolio scenarios or valuation calculations across many workers, then aggregate results in a dependent processing stage. Use dedicated capacity for time-sensitive runs and interruption-tolerant capacity for flexible workloads.

  5. 05
    Engineering analysis and testing

    Execute simulation cases, solver runs, or large test matrices in parallel. Keep software versions and input manifests with each run so results can be traced and reproduced.

How Batch is priced

Dedicated compute consumption

Batch itself has no additional service charge; dedicated pool nodes are billed at applicable Azure VM rates. Allocated nodes incur compute charges even when no tasks are running, so scale down idle pools.

Spot compute consumption

Spot nodes use discounted, variable-priced spare capacity and can be evicted. Capacity is not guaranteed, and savings must be weighed against retries, checkpoint overhead, and completion-time variability.

Supporting resources and software

Storage capacity and operations, applicable disks, networking, monitoring, and other supporting resources are billed separately. Commercial applications may also require licenses; include these costs when comparing pool configurations.

Services Batch works with

A common Batch architecture separates orchestration, compute, and durable data. A client application or Azure Data Factory pipeline stages inputs in Blob Storage, submits work to Batch, and tracks completion before starting downstream processing. Tasks read only their assigned inputs and write outputs to stable, run-specific locations. This separation allows compute pools to scale down without losing results and makes retries easier to reconcile.

Application environments can be delivered through container images in Azure Container Registry or custom VM images in Azure Compute Gallery. Containers package task-level dependencies, while custom VM images can preinstall operating-system components and larger software stacks. Version both the environment and input manifest to make reruns reproducible. Use pool managed identities where supported, grant narrowly scoped permissions, and retrieve sensitive application configuration from Key Vault rather than exposing it in command lines.

For private data access or license-server connectivity, deploy pool nodes into a virtual network and validate DNS, routing, subnet capacity, and required service endpoints. Combine Azure Monitor metrics and diagnostic logs with explicitly collected task logs. Alerting should distinguish compute-allocation problems from application failures, while orchestration should verify successful outputs before publishing a completed run.

Azure Blob Storage

Use Blob Storage to stage inputs and persist outputs independently of compute-node lifetime. For example, each image-processing task can download one source blob and upload its processed image and logs to a run-specific output path. Authorize access with supported managed-identity configurations or narrowly scoped, short-lived SAS tokens.

Azure Data Factory

Use a Data Factory Custom activity to execute application code on an Azure Batch pool within a larger data pipeline. For example, a pipeline can copy incoming files to storage, run a custom transformation on Batch, and load the results into a destination system. Configure the linked services, executable dependencies, and storage permissions required by the activity.

Azure Container Registry

Store task container images in Azure Container Registry and reference them from container-enabled Batch pools and tasks. For example, publish a versioned simulation image and use that version for every task in an experiment. Configure registry authentication, preferably using a supported pool managed identity, and ensure nodes can reach the registry.

Azure Virtual Network

Place pool nodes in a virtual network subnet when tasks need private access to data services or license servers. For example, a rendering pool can reach an on-premises license server through VPN or ExpressRoute connectivity. Plan subnet address capacity, DNS, network security rules, and required Batch node communication paths before deployment.

Azure Monitor

Use Azure Monitor metrics and supported diagnostic logs to track Batch account and pool operations. For example, alert on unusable nodes or sustained task failures and correlate events with application logs stored separately. Task stdout and stderr do not automatically become centralized application logs; arrange collection and retention explicitly.

Azure Key Vault

Use Key Vault to store application secrets that tasks retrieve with a suitably authorized pool managed identity. For example, a worker can retrieve a database credential at runtime instead of embedding it in a task command line. Key Vault also supports customer-managed keys for eligible Batch account data-encryption configurations.

Azure Bastion

For a Batch pool in a virtual network, Azure Bastion can connect to a compute node by its private IP address over SSH or RDP. This lets you troubleshoot a node without assigning it a public IP address.

Azure Data Lake Storage

Batch can mount an NFS 3.0-enabled Data Lake Storage Gen2 container on Linux pool nodes using its Blob NFS mount configuration. Tasks can then read shared input files from the mount instead of downloading a separate copy to each node.

Azure Disk Storage

Batch pool configurations can specify managed data disks to attach to each compute node. A job preparation task can format and mount those disks to provide working space for large intermediate files.

Azure DNS

Batch private endpoints can use Azure Private DNS zones to resolve Batch account and node-management hostnames to private IP addresses. This lets clients and pool nodes use the usual Batch hostnames over Private Link.

Alternatives to Batch in other clouds

AWS

AWS BatchAWS Batch

AWS Batch and Azure Batch manage job scheduling and scale compute for large batch workloads. AWS Batch runs scripts inside containers and adjusts capacity to submitted jobs, while Azure Batch can run executables directly on VM nodes and uses configurable formulas to autoscale pools.

Compare fact by fact
BatchAWS Batch
Job packagingExecutables or containersContainers, including for scripts
Compute infrastructureAzure VM poolsEC2 or Fargate
AutoscalingUser-configured pool formulasAutomatic based on job requirements
Compared Nov 2026

What is Batch

2 min read

Azure Batch runs compute-intensive workloads by separating compute capacity from the work submitted to it. A Batch account contains pools, jobs, and tasks. A pool defines the virtual machine configuration and available compute nodes, a job groups related work, and a task specifies a command line to execute on a node. Client applications submit and monitor work through Batch APIs, SDKs, or Azure CLI. Batch is distinct from the Azure OpenAI Batch API and other services that expose bulk operations.

Start by choosing a region, supported VM size, operating system image, and pool allocation mode. Allocation mode determines whether the underlying compute resources are allocated in a Batch-managed subscription or your own subscription, affecting quota management and resource visibility. Check Batch quotas, applicable VM quotas, and regional capacity before committing to a large deployment. GPU and high-performance networking requirements also influence VM selection. Review VM-series and operating-system retirement notices when maintaining long-lived pool definitions.

Prepare nodes using supported Marketplace images, custom images from Azure Compute Gallery, application packages, or start tasks. Container-enabled pools can run task containers with their application dependencies. Start tasks are useful for node-level configuration, but their installation steps should be repeatable and failures should be observable. Batch launches your application; it does not automatically partition an arbitrary program into parallel work.

Design work as independently retryable tasks wherever possible. Configure task dependencies when processing stages must run in order, and use multi-instance tasks for supported workloads that coordinate across nodes. Set retry limits and execution time limits deliberately. A completed task is not necessarily successful, so inspect exit codes, scheduling errors, and output-upload results. Configure job completion behavior explicitly rather than assuming a job completes when its last task finishes.

Compute-node storage is temporary. Upload results and diagnostic files to durable storage before nodes are removed, using task output-file configuration or application code. Task retention settings clean up local files; they are not a substitute for durable storage. Prefer fewer jobs containing many related tasks, submit tasks in collections, and delete obsolete jobs and tasks to simplify operations.

Use autoscale formulas to adjust pool size according to workload metrics, allowing for provisioning time and capacity constraints. Dedicated nodes suit workloads requiring steadier capacity, while Spot nodes require interruption-tolerant processing and durable checkpoints. Secure API access with Microsoft Entra ID, give pool identities only the permissions they need, and configure network access to required service endpoints. Monitor allocation failures, task failures, utilization, and idle capacity, and explicitly scale down or delete pools when their capacity is no longer needed.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.