Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ baseoperatorlink
BaseView
BaseXCom
bashrc
BatchClient
batchGet
BatchServiceClient
bc
Expand Down
2 changes: 1 addition & 1 deletion generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@
"adlfs>=2023.10.0",
"apache-airflow-providers-common-compat>=1.13.0",
"apache-airflow>=2.11.0",
"azure-batch>=8.0.0,<15.0.0",
"azure-batch>=15.0.0",
"azure-cosmos>=4.6.0",
"azure-datalake-store>=0.0.45",
"azure-identity>=1.3.1",
Expand Down
2 changes: 1 addition & 1 deletion generated/provider_dependencies.json.sha256sum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8609061b1d7c65722ca143c6e54bf569c2b3bb2bfeac9ecc85c97a114a5d83ac
1f0c2b63ce19bd03cc5dac878bcb9720d4a8d5bc6489a13e8d39b5f4a80d64f7
2 changes: 1 addition & 1 deletion providers/microsoft/azure/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ PIP package Version required
``apache-airflow`` ``>=2.11.0``
``apache-airflow-providers-common-compat`` ``>=1.13.0``
``adlfs`` ``>=2023.10.0``
``azure-batch`` ``<15.0.0,>=8.0.0``
``azure-batch`` ``>=15.0.0``
``azure-cosmos`` ``>=4.6.0``
``azure-mgmt-cosmosdb`` ``>=3.0.0``
``azure-datalake-store`` ``>=0.0.45``
Expand Down
27 changes: 27 additions & 0 deletions providers/microsoft/azure/docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,33 @@
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.

This change should be released with the next major provider version due to breaking changes in public APIs and type hints.

13.4.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 @@ -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`` ``<15.0.0,>=8.0.0``
``azure-batch`` ``>=15.0.0``
``azure-cosmos`` ``>=4.6.0``
``azure-mgmt-cosmosdb`` ``>=3.0.0``
``azure-datalake-store`` ``>=0.0.45``
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 @@ -62,9 +62,7 @@ dependencies = [
"apache-airflow>=2.11.0",
"apache-airflow-providers-common-compat>=1.13.0",
"adlfs>=2023.10.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",
"azure-cosmos>=4.6.0",
"azure-mgmt-cosmosdb>=3.0.0",
"azure-datalake-store>=0.0.45",
Expand Down
Loading
Loading