Under which category would you file this issue?
Providers
Apache Airflow version
3.1.5
What happened and how to reproduce it?
I want to launch Azure Container Instances from Airflow. My problem is that I'm on the Azure US Government cloud, AzureUSGovernment. It has a different base URL for the endpoint, as does the Azure China sovereign cloud:
| Cloud |
Auth (authority) |
Management (base_url) |
| AzurePublicCloud |
https://login.microsoftonline.com |
https://management.azure.com/ |
| AzureUSGovernment |
https://login.microsoftonline.us |
https://management.usgovcloudapi.net/ |
| AzureChina |
https://login.chinacloudapi.cn |
https://management.chinacloudapi.cn/ |
Thus my attempts produce an error:
ResourceNotFoundError: (SubscriptionNotFound)
Without an indication of what the problem is.
What you think should happen instead?
If I have cloud_environment set to AzureUSGovernment in the extra fields of the Airflow connection settings, Airflow should use that to set the correct endpoints.
Operating System
Ubuntu 24.04
Deployment
Docker-Compose
Apache Airflow Provider(s)
microsoft-azure
Versions of Apache Airflow Providers
apache-airflow-providers-microsoft-azure==12.9.0
Anything else?
I will send a PR momentarily that I've verified fixes this problem in my deployment.
Are you willing to submit PR?
Code of Conduct
Under which category would you file this issue?
Providers
Apache Airflow version
3.1.5
What happened and how to reproduce it?
I want to launch Azure Container Instances from Airflow. My problem is that I'm on the Azure US Government cloud,
AzureUSGovernment. It has a different base URL for the endpoint, as does the Azure China sovereign cloud:https://login.microsoftonline.comhttps://management.azure.com/https://login.microsoftonline.ushttps://management.usgovcloudapi.net/https://login.chinacloudapi.cnhttps://management.chinacloudapi.cn/Thus my attempts produce an error:
Without an indication of what the problem is.
What you think should happen instead?
If I have
cloud_environmentset toAzureUSGovernmentin the extra fields of the Airflow connection settings, Airflow should use that to set the correct endpoints.Operating System
Ubuntu 24.04
Deployment
Docker-Compose
Apache Airflow Provider(s)
microsoft-azure
Versions of Apache Airflow Providers
apache-airflow-providers-microsoft-azure==12.9.0
Anything else?
I will send a PR momentarily that I've verified fixes this problem in my deployment.
Are you willing to submit PR?
Code of Conduct