Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ baseoperatorlink
BaseView
BaseXCom
bashrc
BatchClient
batchGet
BatchNodeState
BatchServiceClient
bc
bcc
Expand Down
2 changes: 1 addition & 1 deletion generated/known_airflow_exceptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/data_facto
providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/data_lake.py::1
providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/msgraph.py::3
providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/wasb.py::2
providers/microsoft/azure/src/airflow/providers/microsoft/azure/operators/batch.py::9
providers/microsoft/azure/src/airflow/providers/microsoft/azure/operators/batch.py::8
providers/microsoft/azure/src/airflow/providers/microsoft/azure/operators/container_instances.py::10
providers/microsoft/azure/src/airflow/providers/microsoft/azure/operators/data_factory.py::1
providers/microsoft/azure/src/airflow/providers/microsoft/azure/operators/msgraph.py::1
Expand Down
2 changes: 1 addition & 1 deletion providers/microsoft/azure/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ PIP package Version required
``apache-airflow-providers-common-compat`` ``>=1.13.0``
``adlfs`` ``>=2023.10.0``
``aiohttp`` ``>=3.14.0``
``azure-batch`` ``<15.0.0,>=8.0.0``
``azure-batch`` ``>=15.0.0``
``azure-ai-projects`` ``>=2.2.0``
``azure-cosmos`` ``>=4.6.0``
``azure-mgmt-cosmosdb`` ``>=3.0.0``
Expand Down
23 changes: 22 additions & 1 deletion providers/microsoft/azure/docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,28 @@
Changelog
---------

.. warning::
The ``AzureBatchHook`` and ``AzureBatchOperator`` have been migrated to the ``azure-batch`` 15.x
SDK (track 2). This is a breaking change and requires ``azure-batch>=15.0.0``.

The following changes were introduced:

* Hooks
* ``AzureBatchHook.get_conn`` and ``AzureBatchHook.connection`` now return an ``azure.batch.BatchClient``
instead of an ``azure.batch.BatchServiceClient``.
* Shared key authentication now uses ``azure.core.credentials.AzureNamedKeyCredential`` instead of
``azure.batch.batch_auth.SharedKeyCredentials``.
* ``AzureBatchHook.configure_pool`` no longer accepts the ``os_family`` and ``os_version`` parameters.
Cloud service configuration is not supported by the track 2 SDK; use a virtual machine configuration
(``vm_publisher``, ``vm_offer``, ``vm_sku``, ``vm_version`` or ``use_latest_image_and_sku``) instead.
* The Batch model classes were renamed by the SDK: ``PoolAddParameter`` is now ``BatchPoolCreateOptions``,
``JobAddParameter`` is now ``BatchJobCreateOptions``, ``TaskAddParameter`` is now ``BatchTaskCreateOptions``,
and ``CloudTask`` is now ``BatchTask``.

* Operators
* ``AzureBatchOperator`` no longer accepts the ``os_family`` parameter. A ``vm_publisher`` must now be
provided to configure the pool's virtual machine image.

13.5.1
......

Expand Down Expand Up @@ -84,7 +106,6 @@ Doc-only
appropriate section above if needed. Do not delete the lines(!):
* ``Fix flaky AzureDataFactory operator test by mocking time (#67427)``


13.3.0
......

Expand Down
2 changes: 1 addition & 1 deletion providers/microsoft/azure/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ PIP package Version required
``apache-airflow-providers-common-compat`` ``>=1.13.0``
``adlfs`` ``>=2023.10.0``
``aiohttp`` ``>=3.14.0``
``azure-batch`` ``<15.0.0,>=8.0.0``
``azure-batch`` ``>=15.0.0``
``azure-ai-projects`` ``>=2.2.0``
``azure-cosmos`` ``>=4.6.0``
``azure-mgmt-cosmosdb`` ``>=3.0.0``
Expand Down
4 changes: 1 addition & 3 deletions providers/microsoft/azure/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ dependencies = [
"apache-airflow-providers-common-compat>=1.13.0",
"adlfs>=2023.10.0",
"aiohttp>=3.14.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-batch>=15.0.0",
# 2.2.0 adds force deletion support for Hosted agents and agent versions.
"azure-ai-projects>=2.2.0",
"azure-cosmos>=4.6.0",
Expand Down
Loading
Loading