Repository navigation
Description
Apache Airflow Provider(s)
microsoft-azure
Versions of Apache Airflow Providers
apache-airflow-providers-amazon @ file:///home/build/providers/amazon/dist/apache_airflow_providers_amazon-9.7.0-py3-none-any.whl
apache-airflow-providers-apache-kafka==1.10.1
apache-airflow-providers-celery @ file:///home/build/providers/celery/dist/apache_airflow_providers_celery-3.10.6-py3-none-any.whl
apache-airflow-providers-cncf-kubernetes @ file:///home/build/providers/cncf/kubernetes/dist/apache_airflow_providers_cncf_kubernetes-10.4.2-py3-none-any.whl
apache-airflow-providers-common-compat==1.7.3
apache-airflow-providers-common-io==1.6.2
apache-airflow-providers-common-sql==1.27.4
apache-airflow-providers-docker @ file:///home/build/providers/docker/dist/apache_airflow_providers_docker-4.3.1-py3-none-any.whl
apache-airflow-providers-elasticsearch @ file:///home/build/providers/elasticsearch/dist/apache_airflow_providers_elasticsearch-6.2.2-py3-none-any.whl
apache-airflow-providers-fab==2.0.2
apache-airflow-providers-ftp @ file:///home/build/providers/ftp/dist/apache_airflow_providers_ftp-3.12.3-py3-none-any.whl
apache-airflow-providers-google @ file:///home/build/providers/google/dist/apache_airflow_providers_google-15.1.0-py3-none-any.whl
apache-airflow-providers-grpc @ file:///home/build/providers/grpc/dist/apache_airflow_providers_grpc-3.7.3-py3-none-any.whl
apache-airflow-providers-hashicorp @ file:///home/build/providers/hashicorp/dist/apache_airflow_providers_hashicorp-4.1.1-py3-none-any.whl
apache-airflow-providers-http @ file:///home/build/providers/http/dist/apache_airflow_providers_http-5.2.2-py3-none-any.whl
apache-airflow-providers-imap @ file:///home/build/providers/imap/dist/apache_airflow_providers_imap-3.8.3-py3-none-any.whl
apache-airflow-providers-microsoft-azure==12.6.0
apache-airflow-providers-mysql @ file:///home/build/providers/mysql/dist/apache_airflow_providers_mysql-6.2.1-py3-none-any.whl
apache-airflow-providers-odbc @ file:///home/build/providers/odbc/dist/apache_airflow_providers_odbc-4.9.2-py3-none-any.whl
apache-airflow-providers-openlineage @ file:///home/build/providers/openlineage/dist/apache_airflow_providers_openlineage-2.1.3-py3-none-any.whl
apache-airflow-providers-postgres @ file:///home/build/providers/postgres/dist/apache_airflow_providers_postgres-6.1.3-py3-none-any.whl
apache-airflow-providers-redis @ file:///home/build/providers/redis/dist/apache_airflow_providers_redis-4.0.2-py3-none-any.whl
apache-airflow-providers-sendgrid @ file:///home/build/providers/sendgrid/dist/apache_airflow_providers_sendgrid-4.0.1-py3-none-any.whl
apache-airflow-providers-sftp @ file:///home/build/providers/sftp/dist/apache_airflow_providers_sftp-5.2.0-py3-none-any.whl
apache-airflow-providers-slack @ file:///home/build/providers/slack/dist/apache_airflow_providers_slack-9.0.4-py3-none-any.whl
apache-airflow-providers-smtp==2.1.2
apache-airflow-providers-snowflake==6.5.1
apache-airflow-providers-sqlite @ file:///home/build/providers/sqlite/dist/apache_airflow_providers_sqlite-4.0.2-py3-none-any.whl
apache-airflow-providers-ssh @ file:///home/build/providers/ssh/dist/apache_airflow_providers_ssh-4.0.1-py3-none-any.whl
apache-airflow-providers-standard==1.5.0
Apache Airflow version
3.0
Operating System
bash-5.3$ cat /etc/os-release ID=chainguard NAME="Chainguard" PRETTY_NAME="Chainguard" VERSION_ID="20230214" HOME_URL="https://chainguard.dev/"
Deployment
Official Apache Airflow Helm Chart
Deployment details
Deploying helm chart on to Kubernetes version v1.32.4-gke.200. For remote logging I have these environment variables set:
# Remote Logging
- name: "AIRFLOW__LOGGING__REMOTE_LOGGING"
value: "True"
- name: "AIRFLOW__LOGGING__REMOTE_BASE_LOG_FOLDER"
value: "wasb://airflow-logs@ACCOUNT_NAME.blob.core.windows.net/wasb-airflow-logs"
- name: "AIRFLOW__AZURE_REMOTE_LOGGING__REMOTE_WASB_LOG_CONTAINER"
value: "airflow-logs"
- name: "AIRFLOW__LOGGING__REMOTE_LOG_CONN_ID"
value: "edw_az_conn"
- name: "AIRFLOW__LOGGING__DELETE_LOCAL_LOGS"
value: "True"
And I have this connection created:
What happened
Whenever I run one of my DAGs, it will complete successfully, but then when it tries to write the logs it will give an error that says "The conn_id edw_az_conn isn't defined" when it clearly is as you can see from the screenshots above. Full log below
{"event":"Could not write logs to wasb://airflow-logs@ACCOUNT_NAME.blob.core.windows.net/wasb-airflow-logs/dag_id=DAG_NAME_dag/run_id=manual__202 │
│ 5-08-06T17:30:17.028594+00:00/task_id=process_namespaces_sand/attempt=1.log","level":"error","logger":"airflow.providers.microsoft.azure.log.wasb_task_handler.WasbRemoteL │
│ ogIO","timestamp":"2025-08-06T17:32:38.425081Z","exception":[{"exc_type":"AirflowNotFoundException","exc_value":"The conn_id `edw_az_conn` isn't defined","exc_notes":[]," │
│ syntax_error":null,"is_cause":false,"frames":[{"filename":"/opt/airflow/lib/python3.12/site-packages/airflow/providers/microsoft/azure/log/wasb_task_handler.py","lineno": │
│ 170,"name":"write"},{"filename":"/opt/airflow/lib/python3.12/site-packages/airflow/providers/microsoft/azure/hooks/wasb.py","lineno":367,"name":"load_string"},{"filename" │
│ :"/opt/airflow/lib/python3.12/site-packages/airflow/providers/microsoft/azure/hooks/wasb.py","lineno":424,"name":"upload"},{"filename":"/opt/airflow/lib/python3.12/site-p │
│ ackages/airflow/providers/microsoft/azure/hooks/wasb.py","lineno":239,"name":"_get_blob_client"},{"filename":"/usr/lib/python3.12/functools.py","lineno":998,"name":"__get │
│ __"},{"filename":"/opt/airflow/lib/python3.12/site-packages/airflow/providers/microsoft/azure/hooks/wasb.py","lineno":159,"name":"blob_service_client"},{"filename":"/opt/ │
│ airflow/lib/python3.12/site-packages/airflow/providers/microsoft/azure/hooks/wasb.py","lineno":163,"name":"get_conn"},{"filename":"/opt/airflow/lib/python3.12/site-packag │
│ es/airflow/hooks/base.py","lineno":64,"name":"get_connection"},{"filename":"/opt/airflow/lib/python3.12/site-packages/airflow/models/connection.py","lineno":507,"name":"g │
│ et_connection_from_secrets"}],"is_group":false,"exceptions":[]}]} │
│ {"timestamp":"2025-08-06T17:32:38.425340Z","level":"info","event":"Task finished","exit_code":0,"duration":58.79570586094633,"final_state":"success","logger":"supervisor" │
│ }
What you think should happen instead
It should log to the blob storage like normal. I have this same configuration running in Airflow 2.11
How to reproduce
Would need to set up Azure remote logging with a storage account and use the airflow provider.
Anything else
Not sure what is happening to cause this. I have tried a lot of things and keep striking out.
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Activity
ahipp13 commentedon Aug 6, 2025
I am also getting this error too when I am trying to look at logs in the UI, and I have no clue why
ahipp13 commentedon Aug 6, 2025
I also tried versions 12.3.1 and 12.5.0 of the microsoft azure provider, which both give the same error. I do not get why it is not finding that connection
PIrojahPerbak commentedon Aug 7, 2025
Airflow logging to azure blob is broken again - it's nightmare. I also have the same issue
potiuk commentedon Aug 7, 2025
I believe this is fixed in the upcoming (being voted) 3.0.4rc2 -> #53761 .
Can you please not only complain about some nigthmares that you have (remembering that this is a free software that is provided to you absolutely for free - mostly by volunteers working their nights and weekends away from their families) - and maybe try to contribute back (absolute minimum you can do) and join other community members who test upcoming releases and test this one following #54124
You wil find instructions on how to install it here: https://lists.apache.org/thread/3z5tw7nxpc79j06l8kw0vrxrlbwldw3n where we announce the release candidate testing.
Your work might help those who spend their nights and weekends to be sure that their hard work so that you can use the software for absolutely free actually helps to solve similar issues.
Thanks in advance @PIrojahPerbak for actually giving back to the community and reporting back results of your testing. For now I am closing that issue as "fixed" by that PR - but when you test it and find that the issue is not fixed please report back with more logs and evidences and we will reopen the issue.
Thanks in advance for being supportive community member, who helps rather than complains on the software they get for free and without any guarantees.
PIrojahPerbak commentedon Aug 7, 2025
Guess I walked into this one. Thanks for fixing this issue mate!