This is an automated email from the ASF dual-hosted git repository.
joshfell pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new ecf6e57e27 Update example AzureContainerInstancesOperator (#39466)
ecf6e57e27 is described below
commit ecf6e57e275cc002f40cd0412647bbd0242cfdef
Author: Kyle Andrews <[email protected]>
AuthorDate: Tue May 14 02:52:49 2024 +0100
Update example AzureContainerInstancesOperator (#39466)
* update example DAG
* formatting fixes
---
airflow/providers/microsoft/azure/operators/container_instances.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/airflow/providers/microsoft/azure/operators/container_instances.py
b/airflow/providers/microsoft/azure/operators/container_instances.py
index 6bc64e4547..3d55776b5a 100644
--- a/airflow/providers/microsoft/azure/operators/container_instances.py
+++ b/airflow/providers/microsoft/azure/operators/container_instances.py
@@ -117,7 +117,12 @@ class AzureContainerInstancesOperator(BaseOperator):
memory_in_gb=14.0,
cpu=4.0,
gpu=GpuResource(count=1, sku="K80"),
- dns_config=["10.0.0.10", "10.0.0.11"],
+ subnet_ids=[
+ {
+ "id":
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/my_rg/providers/Microsoft.Network/virtualNetworks/my_vnet/subnets/my_subnet"
+ }
+ ],
+ dns_config={"name_servers": ["10.0.0.10", "10.0.0.11"]},
diagnostics={
"log_analytics": {
"workspaceId": "workspaceid",