Skip to content

Add the parameter network_profile in AzureContainerInstancesOperator #26097

@wolfier

Description

@wolfier

Description

apache-airflow-providers-microsoft-azure uses azure-mgmt-containerinstance==>=1.5.0,<2.0.

In azure-mgmt-containerinstance==1.5.0, ContainerGroup accepts a parameter called network_profile, which is expecting a ContainerGroupNetworkProfile.

Use case/motivation

I received the following error when I provide value to IpAddress in the AzureContainerInstancesOperator.

msrestazure.azure_exceptions.CloudError: Azure Error: PrivateIPAddressNotSupported
Message: IP Address type in container group 'data-quality-test' is invalid. Private IP address is only supported when network profile is defined.

I would like to pass a ContainerGroupNetworkProfile object through so AzureContainerInstancesOperator can use in the Container Group instantiation.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions