NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #1025 most downloaded on PyPI
Microsoft Corporation Azure Batch Client Library for Python
Last release 5 months ago
01 May 2026
Ships fairly regularly
a new release about every 6 months
Nearly every release is documented
notes for 27 of 27 stable releases
1 version withdrawn
withdrawn after publishing
11 years old
37 releases · first in 2016
This is the GA release of the features introduced in the 15.0.0 and 15.1.0 beta versions, including LRO support, job-level FIFO scheduling, CMK suppor
Renamed BatchNodeUserUpdateOptions to BatchNodeUserReplaceOptions.
Renamed OutputFileUploadConfig to OutputFileUploadConfiguration.
Removed Models:
AuthenticationTokenSettingsNameSpace changed azure.batch.models._models:
BatchJobTerminateOptionsBatchNodeDeallocateOptionsBatchNodeRebootOptionsBatchNodeReimageOptionsRemoved Enums:
BatchAccessScopeNameSpace changed azure.batch.models._enums:
BatchNodeDeallocateOptionBatchNodeRebootKindBatchNodeReimageOptionRenamed public methods:
list_sub_tasks -> list_subtasksget_task_file -> download_task_fileget_node_file -> download_node_fileRenamed parameters across all operation methods:
timeout -> service_timeoutocpdate -> ocp_datestarttime -> start_timeendtime -> end_timeconcurrencies -> max_concurrencyRenamed properties in models:
e_tag -> etag in BatchJob, BatchJobSchedule, BatchPool, BatchTask, and BatchTaskCreateResultvalues_property -> error_values in AutoScaleRunError, BatchError, and ResizeErrorvalues_property -> result_values in CollectionResultvalues_property -> task_values in BatchTaskGroupavg_memory_gi_b -> avg_memory_gib, peak_memory_gi_b -> peak_memory_gib, avg_disk_gi_b -> avg_disk_gib, peak_disk_gi_b -> peak_disk_gib, disk_read_gi_b -> disk_read_gib, disk_write_gi_b -> disk_write_gib, network_read_gi_b -> network_read_gib, network_write_gi_b -> network_write_gib in BatchPoolResourceStatisticsRemoved Properties:
authentication_token_settings from BatchJobManagerTask, BatchStartTask, and BatchTaskaccess from AuthenticationTokenSettingsOne column per quarter.
Code | Docs
Support: Active
Communication Call Automation
azure-communication-callautomation
Minor parameter renaming: read_io_gi_b to read_io_gib, write_io_gi_b to write_io_gib, and v_tpm_enabled to vtpm_enabled.
read_io_gi_b to read_io_gib, write_io_gi_b to write_io_gib, and v_tpm_enabled to vtpm_enabled.Added BatchJobDefaultOrder types.
Job level FIFO
BatchJobDefaultOrder types.BatchTaskSchedulingPolicy with a new jobDefaultOrder property to support job-level FIFO scheduling.CMK support on Pools
DiskCustomerManagedKey and DiskEncryptionSetParameters for customer-managed key (CMK) support on pools.DiskEncryptionConfiguration with a new customerManagedKey property.ManagedDisk with a new diskEncryptionSet property.BatchPoolIdentityReference for referencing managed identities in disk encryption scenarios.IPv6 support on Pools
ipv6Address to BatchNode.ipv6RemoteLoginIPAddress and ipv6RemoteLoginPort to BatchNodeRemoteLoginSettings.Metadata Security Protocol Support on Pools
HostEndpointSettings and HostEndpointSettingsModeTypes.ProxyAgentSettings.SecurityProfile with a new proxyAgentSettings property for metadata security protocol support.IP Tag Support
IPFamily and IPTag types.BatchPublicIpAddressConfiguration with new ipFamilies and ipTags properties for IP tag support.Removed all Certifcate API's
create_certificateget_certificatelist_certificatescancel_certificate_deletionbegin_delete_certificateRemoved Models:
BatchCertificateBatchCertificateDeleteErrorBatchCertificateFormatBatchCertificateReferenceBatchCertificateStateBatchCertificateStoreLocationBatchCertificateVisibilityBatchNodeCommunicationModeRemoved Properties:
CertificateReferences from BatchNodeResourceTags and CertificateReferences from BatchPoolCertificateReferences, ResourceTags, and TargetNodeCommunicationMode from BatchPoolCreateOptionsCertificateReferences and TargetNodeCommunicationMode from BatchPoolReplaceOptionsCertificateReferences, ResourceTags, and TargetNodeCommunicationMode from BatchPoolSpecificationsCertificateReferences, ResourceTags, and TargetNodeCommunicationMode from BatchPoolUpdateOptionsCertificateReferences, ResourceTags, and TargetNodeCommunicationMode from ComputeBatchModelFactoryAdded Long Running Operation (LRO) support for the following operation methods:
delete_job -> begin_delete_jobdisable_job -> begin_disable_jobenable_job -> begin_enable_jobdelete_job_schedule -> begin_delete_job_scheduledelete_pool -> begin_delete_pooldelete_certificate -> begin_delete_certificatedeallocate_node -> begin_deallocate_nodereboot_node -> begin_reboot_nodereimage_node -> begin_reimage_noderemove_nodes -> begin_remove_nodesresize_pool -> begin_resize_poolstart_node -> begin_start_nodestop_pool_resize -> begin_stop_pool_resizeterminate_job -> begin_terminate_jobterminate_job_schedule -> begin_terminate_job_scheduleRenamed the following models. These name changes include several models with the suffix Content being renamed to have the suffix Options.
AccessScope -> BatchAccessScopeAffinityInfo -> BatchAffinityInfoBatchJobAction -> BatchJobActionKindBatchJobCreateContent -> BatchJobCreateOptionsBatchJobDisableContent -> BatchJobDisableOptionsBatchJobScheduleCreateContent -> BatchJobScheduleCreateOptionsBatchJobScheduleUpdateContent -> BatchJobScheduleUpdateOptionsBatchJobTerminateContent -> BatchJobTerminateOptionsBatchJobUpdateContent -> BatchJobUpdateOptionsBatchNodeDeallocateContent -> BatchNodeDeallocateOptionsBatchNodeDisableSchedulingContent -> BatchNodeDisableSchedulingOptionsBatchNodeRebootContent -> BatchNodeRebootOptionsBatchNodeRebootOption -> BatchNodeRebootKindBatchNodeReimageContent -> BatchNodeReimageOptionsBatchNodeRemoveContent -> BatchNodeRemoveOptionsBatchNodeUserCreateContent -> BatchNodeUserCreateOptionsBatchNodeUserUpdateContent -> BatchNodeUserUpdateOptionsBatchPoolCreateContent -> BatchPoolCreateOptionsBatchPoolEnableAutoScaleContent -> BatchPoolEnableAutoScaleOptionsBatchPoolEvaluateAutoScaleContent -> BatchPoolEvaluateAutoScaleOptionsBatchPoolReplaceContent -> BatchPoolReplaceOptionsBatchPoolResizeContent -> BatchPoolResizeOptionsBatchPoolUpdateContent -> BatchPoolUpdateOptionsBatchTaskCreateContent -> BatchTaskCreateOptionsContainerConfiguration -> BatchContainerConfigurationContainerConfigurationUpdate -> BatchContainerConfigurationUpdateDeleteBatchCertificateError -> BatchCertificateDeleteErrorDiffDiskSettings -> BatchDiffDiskSettingsErrorCategory -> BatchErrorSourceCategoryHttpHeader -> OutputFileUploadHeaderImageReference -> BatchVmImageReferenceOSDisk -> BatchOsDiskOnAllBatchTasksComplete -> BatchAllTasksCompleteModeOnBatchTaskFailure -> BatchAllTasksCompleteModePublicIpAddressConfiguration -> BatchPublicIpAddressConfigurationUefiSettings -> BatchUefiSettingsUploadBatchServiceLogsContent -> UploadBatchServiceLogsOptionsVMDiskSecurityProfile -> BatchVMDiskSecurityProfileRenamed parameters in the following operation methods:
begin_disable_job changed content parameter to disable_optionsbegin_deallocate_node changed parameters parameter to optionsbegin_remove_nodes changed content parameter to remove_options.begin_resize_pool changed content parameter to resize_options.begin_terminate_job changed parameters parameter to options.begin_reboot_node changed parameters parameter to options.begin_reimage_node changed parameters parameter to options.disable_node_scheduling changed parameters parameter to options.enable_pool_auto_scale changed content parameter to enable_auto_scale_options.evaluate_pool_auto_scale changed content parameter to evaluate_auto_scale_options.upload_node_logs changed content parameter to upload_options.replace_node_user changed content parameter to update_options.Nothing published for this version
Re-add support for BatchCertificate (temporary since this feature is deprecated):
Force delete/terminate job or job schedule:
force parameter of type Boolean to delete_job, terminate_job, delete_job_schedule, and terminate_job_scheduleSupport for compute node start/deallocate operations:
start_node, deallocate_node methods to BatchClient and AsyncBatchClientContainer task data mount isolation:
containerHostBatchBindMounts of type List<ContainerHostBatchBindMountEntry> to BatchTaskContainerSettingsPatch improvements for pool and job:
displayName, vmSize, taskSlotsPerNode, taskSchedulingPolicy, enableInterNodeCommunication, virtualMachineConfiguration, networkConfiguration, userAccounts, mountConfiguration, upgradePolicy, and resourceTags to BatchPoolUpdateContentnetworkConfiguration to BatchJobUpdateContentConfidential VM support:
confidentialVM to SecurityTypes.securityProfile of type VMDiskSecurityProfile to ManagedDiskSupport for shared and community gallery images:
sharedGalleryImageId and communityGalleryImageId to ImageReferenceRe-add support for BatchCertificate (temporary since this feature is deprecated):
create_certificate, list_certificates, cancel_certificate_deletion, delete_certificate, andget_certificate methods to BatchClient and AsyncBatchClientget_remote_desktop method from BatchClient. Use get_node_remote_login_settings instead to remotely login to a compute nodeCloudServiceConfiguration from pool models and operations. Use VirtualMachineConfiguration when creating poolsApplicationLicenses from pool models and operationsVersion (15.0.0b1) is the first preview of our efforts to create a user-friendly and Pythonic client library for Azure Batch. For more information abo
CloudServiceConfiguration for pool models and operations. VirtualMachineConfiguration is supported for pool configurations moving forward.Added UpgradePolicy to CloudPool definition for pool creation
UpgradePolicy to CloudPool definition for pool creation
AutomaticOSUpgradePolicy to include configuration parameters for automatic OS upgradesRollingUpgradePolicy to include configuration parameters for rolling upgradesAdded ResourceTags support to Pool Creation so users are able to specify resource tags for a pool. This feature is currently only supported for pool c
Added ResourceTags support to Pool Creation so users are able to specify resource tags for a pool. This feature is currently only supported for pool creation but will be updatable in the future.
resourceTags property to PoolSpecification definitionresourceTags property to CloudPool definitionAdded SecurityProfile support to Pool Creation. Trusted Launch provides advanced security to Guest OS preventing boot-kits/rootkits (like un-signed driver or kernel modification) to be introduced into boot-chain.
serviceArtifactReference and securityProfile property to VirtualMachineConfiguration definitionAdded ServiceArtifactReference and OSDisk support to Pool Creation
standardssd_lrs value to StorageAccountType enumcaching, managedDisk, diskSizeGB, and writeAcceleratorEnabled property to NodePlacementPolicyType definitionscaleSetVmResourceID property to VirtualMachineInfo definitionDeprecating CertificateOperations related methods.
enableAcceleratedNetworking to NetworkConfiguration.
enableAutomaticUpgrade to VMExtension.
type to ContainerConfiguration. Possible values include: dockerCompatible and criCompatible.job.get_all_lifetime_statistics API.pool.get_all_lifetime_statistics API.CertificateOperations related methods.
Added new custom enum type NodeCommunicationMode.
NodeCommunicationMode.
current_node_communication_mode and target_node_communication_mode of type NodeCommunicationMode to CloudPool.target_node_communication_mode of type NodeCommunicationMode to PoolSpecification, PoolAddParameter, PoolPatchParameter, and PoolUpdatePropertiesParameter.Added property uploadHeaders to OutputFileBlobContainerDestination.
OutputFileBlobContainerDestination.
allow_task_preemption to JobSpecification, CloudJob, JobAddParameter, JobPatchParameter, JobUpdateParameter
Add ability to assign user-assigned managed identities to CloudPool. These identities will be made available on each node in the pool, and can be used
CloudPool. These identities will be made available on each node in the pool, and can be used to access various resources.identity_reference property to the following models to support accessing resources via managed identity:
AzureBlobFileSystemConfigurationOutputFileBlobContainerDestinationContainerRegistryResourceFileUploadBatchServiceLogsConfigurationcompute_node_extension operations to BatchServiceClient for getting/listing VM extensions on a nodeextensions property to VirtualMachineConfiguration on CloudPool to specify virtual machine extensions for nodesnode_placement_configuration on VirtualMachineConfigurationos_disk property to VirtualMachineConfiguration, which contains settings for the operating system disk of the Virtual Machine.
placement property on DiffDiskSettings specifies the ephemeral disk placement for operating system disks for all VMs in the pool. Setting it to "CacheDisk" will store the ephemeral OS disk on the VM cache.max_parallel_tasks property on CloudJob to control the maximum allowed tasks per job (defaults to -1, meaning unlimited).virtual_machine_info property on ComputeNode which contains information about the current state of the virtual machine, including the exact version of the marketplace image the VM is using.[Breaking] Replaced property maxTasksPerNode with taskSlotsPerNode on the pool. Using this property tasks in a job can consume a dynamic amount of slo
maxTasksPerNode with taskSlotsPerNode on the pool. Using this property tasks in a job can consume a dynamic amount of slots allowing for more fine-grained control over resource consumption.GetTaskCounts to return TaskCountsResult, which is a complex object containing the previous TaskCounts object and a new TaskSlotCounts object providing similar information in the context of slots being used.requiredSlots to the task allowing user to specify how many slots on a node it should take up.Added ability to encrypt ComputeNode disk drives using the new disk_encryption_configuration property of VirtualMachineConfiguration.
ComputeNode disk drives using the new disk_encryption_configuration property of VirtualMachineConfiguration.virtual_machine_id property of ImageReference can now only refer to a Shared Image Gallery image.public_ip_address_configuration property of NetworkConfiguration.
public_ips property of NetworkConfiguration has moved in to public_ip_address_configuration as well. This property can only be specified if ip_provisioning_type is UserManaged.This version of the Batch .NET client library targets version 2020-03-01.11.0 of the Azure Batch REST API.
Using REST API version 2019-08-01.10.0.
NetworkConfiguration via the new public_ips property. This guarantees nodes in the Pool will have an IP from the list user provided IPs.mount_configuration property on CloudPool.virtual_machine_image_id property of ImageReference by referencing the image via its ARM ID.wait_for_success on StartTask is now True (was False).scope on AutoUserSpecification is now always Pool (was Task on Windows nodes, Pool on Linux nodes).Using REST API version 2019-06-01.9.0.
AccountOperations.list_node_agent_skus with AccountOperations.list_supported_images. list_supported_images contains all of the same information originally available in list_node_agent_skus but in a clearer format. New non-verified images are also now returned. Additional information about capabilities and batch_support_end_of_life is accessible on the ImageInformation object returned by list_supported_images.CloudPool based on the source port of the traffic. This is done via the source_port_ranges property on network_security_group_rules.working_directory property on TaskContainerSettings.Fix bug in TaskOperations.add_collection methods exception handling
Using REST API version 2018-12-01.8.0.
upgrade_os API on CloudServiceConfiguration pools.
PoolOperations.upgrade_os API.target_os_version to os_version and removed current_os_version on CloudServiceConfiguration.upgrading state from PoolState enum.data_egress_gi_b and data_ingress_gi_b from PoolUsageMetrics. These properties are no longer supported.ResourceFile. There are now three supported modes for ResourceFile:
http_url creates a ResourceFile pointing to a single HTTP URL.storage_container_url creates a ResourceFile pointing to the blobs under an Azure Blob Storage container.auto_storage_container_name creates a ResourceFile pointing to the blobs under an Azure Blob Storage container in the Batch registered auto-storage account.ResourceFile via the http_url property can now be any HTTP URL. Previously, these had to be an Azure Blob Storage URL.blob_prefix property.os_disk property from VirtualMachineConfiguration. This property is no longer supported.dynamic_vnet_assignment_scope on NetworkConfiguration to be DynamicVNetAssignmentScope.job can now dynamically assign a Virtual Network to each node the job's tasks run on. The specific Virtual Network to join the nodes to is specified in the new network_configuration property on CloudJob and JobSpecification.
batch or interactive) via WindowsUserConfiguration.login_mode.base_url parameter to batch_url on BatchServiceClient class, and it is required now.Fix authentication class to allow HTTP session to be re-used
Bugfixes
Note
Update operation TaskOperations.add_collection with the following added functionality:
Using REST API version 2018-08-01.7.0.
node_agent_info in ComputeNode to return the node agent informationvalidation_status property from TaskCounts.DataDisk and OSDisk is now read_write instead of none.BatchServiceClient can be used as a context manager to keep the underlying HTTP session open for performance.New property leaving_pool in node_counts type.
leaving_pool in node_counts type.Compatibility of the sdist with wheel 0.31.0
Bugfixes
Fix regression on method enable_auto_scale.
enable_auto_scale.Using REST API version 2018-03-01.6.1.
list_pool_node_counts method.upload_batch_service_logs method.
Using REST API version 2017-09-01.6.0.
license_type on VirtualMachineConfiguration.VirtualMachineConfiguration based pools, via the new data_disks attribute on VirtualMachineConfiguration.virtual_machine_image_id property on ImageReference contains the reference to the ARM Image, and OSDisk.image_uris no longer exists.image_reference is now a required attribute of VirtualMachineConfiguration.MultiInstanceSettings) must now specify a coordination_commandLine, and number_of_instances is now optional and defaults to 1.container_configuration on the VirtualMachineConfiguration for a pool, and then add container_settings on the Task.Added a new operation job.get_task_counts to retrieve the number of tasks in each state.
job.get_task_counts to retrieve the number of tasks in each state.pool_endpoint_configuration attribute on NetworkConfiguration.
This property is only supported on pools that use virtual_machine_configuration.ComputeNode now also has an endpoint_configuration attribute with the details of the applied endpoint configuration for that node.Added support for the new low-priority node type; AddPoolParameter and PoolSpecification now have an additional property target_low_priority_nodes.
AddPoolParameter and PoolSpecification now have an additional property target_low_priority_nodes.target_dedicated and current_dedicated on CloudPool, AddPoolParameter and PoolSpecification have been renamed to target_dedicated_nodes and current_dedicated_nodes.resize_error on CloudPool is now a collection called resize_errors.is_dedicated property on ComputeNode, which is false for low-priority nodes.allow_low_priority_node property to JobManagerTask, which if true allows the JobManagerTask to run on a low-priority compute node.PoolResizeParameter now takes two optional parameters, target_dedicated_nodes and target_low_priority_nodes, instead of one required parameter target_dedicated.
At least one of these two parameters must be specified.OutputFiles property on CloudTask and JobManagerTask.file_upload_error property on ExitConditions.result property on all task execution information objects.scheduling_error on all task execution information objects to failure_information. TaskFailureInformation replaces TaskSchedulingError and is returned any
time there is a task failure. This includes all previous scheduling error cases, as well as nonzero task exit codes, and file upload failures from the new output files feature.SchedulingErrorCategory enum to ErrorCategory.scheduling_error on ExitConditions to pre_processing_error to more clearly clarify when the error took place in the task life-cycle.application_licenses property on PoolAddParameter, CloudPool and PoolSpecification.
Please note that this feature is in gated public preview, and you must request access to it via a support ticket.ssh_private_key attribute of a UserAccount object has been replaced with an expanded LinuxUserConfiguration object with additional settings for a user ID and group ID of the
user account.unmapped enum state from AddTaskStatus, CertificateFormat, CertificateVisibility, CertStoreLocation, ComputeNodeFillType, OSType, and PoolLifetimeOption as they were not ever used.This wheel package is now built with the azure wheel extension
AAD token authentication now supported.
Added support for task reactivation
Added support for joining a CloudPool to a virtual network on using the network_configuration property.
- Initial Release
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →