From b80118dae4e5003f33df78c0ad9162c56b1aebd2 Mon Sep 17 00:00:00 2001 From: Amogh Desai Date: Wed, 6 May 2026 12:19:36 +0530 Subject: [PATCH] Upper bound azure-batch to avoid pulling in track 2 azure sdk changes --- providers/microsoft/azure/docs/index.rst | 2 +- providers/microsoft/azure/pyproject.toml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/providers/microsoft/azure/docs/index.rst b/providers/microsoft/azure/docs/index.rst index b65f74ff5f192..f26c039890f43 100644 --- a/providers/microsoft/azure/docs/index.rst +++ b/providers/microsoft/azure/docs/index.rst @@ -110,7 +110,7 @@ PIP package Version required ``apache-airflow`` ``>=2.11.0`` ``apache-airflow-providers-common-compat`` ``>=1.13.0`` ``adlfs`` ``>=2023.10.0`` -``azure-batch`` ``>=8.0.0`` +``azure-batch`` ``<15.0.0,>=8.0.0`` ``azure-cosmos`` ``>=4.6.0`` ``azure-mgmt-cosmosdb`` ``>=3.0.0`` ``azure-datalake-store`` ``>=0.0.45`` diff --git a/providers/microsoft/azure/pyproject.toml b/providers/microsoft/azure/pyproject.toml index fc02a29839b3b..3f448be94ad00 100644 --- a/providers/microsoft/azure/pyproject.toml +++ b/providers/microsoft/azure/pyproject.toml @@ -62,7 +62,9 @@ dependencies = [ "apache-airflow>=2.11.0", "apache-airflow-providers-common-compat>=1.13.0", "adlfs>=2023.10.0", - "azure-batch>=8.0.0", + # azure-batch 15.x is a full rewrite of the Azure SDK (track 2) that removes BatchServiceClient, batch_auth, + # and the other references in AzureBatchHook. Lifting the upper bound cap needs a full hook rewrite. + "azure-batch>=8.0.0,<15.0.0", "azure-cosmos>=4.6.0", "azure-mgmt-cosmosdb>=3.0.0", "azure-datalake-store>=0.0.45",