AzureContainerInstancesOperator uses a deprecated authentication flow in apache-airflow-providers-microsoft-azure
#34749
Labels
apache-airflow-providers-microsoft-azure
#34749
Apache Airflow version
2.7.1
What happened
My previous bug report (#34736) was closed, but upon further investigation I am pretty sure that the fix should be handled in this repository. I have added the solution in a separate section below.
We currently have to hardcode our version of apache-airflow-providers-microsoft-azure to 6.2.4 in order for AzureContainerInstancesOperator to work as expected. If we bump the version to 6.3.0 or higher we get this error during execution:
What you think should happen instead
The hook in
container_instance.py
should use theazure.identity
package instead ofazure.common.credentials
. Link to codeMicrosoft posted deprecation warnings about using that package since early 2021 -
azure.common
.Here is a related issue, where the solution is to start using
azure.identity
instead.How to reproduce
Install airflow 2.7.1 and try creating a DAG with AzureContainerInstancesOperator and run it.
Operating System
Windows 10
Versions of Apache Airflow Providers
apache-airflow-providers-microsoft-azure=6.3.0 or 7.0.0
Deployment
Docker-Compose
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: