az containerapp ingress

Note

This reference is part of the containerapp extension for the Azure CLI (version 2.37.0 or higher). The extension will automatically install the first time you run an az containerapp ingress command. Learn more about extensions.

Commands to manage ingress and traffic-splitting.

Commands

az containerapp ingress access-restriction

Commands to manage IP access restrictions.

az containerapp ingress access-restriction list

List IP access restrictions for a container app.

az containerapp ingress access-restriction remove

Remove IP access restrictions from a container app.

az containerapp ingress access-restriction set

Configure IP access restrictions for a container app.

az containerapp ingress disable

Disable ingress for a container app.

az containerapp ingress enable

Enable or update ingress for a container app.

az containerapp ingress show

Show details of a container app's ingress.

az containerapp ingress traffic

Commands to manage traffic-splitting.

az containerapp ingress traffic set

Configure traffic-splitting for a container app.

az containerapp ingress traffic show

Show traffic-splitting configuration for a container app.

az containerapp ingress disable

Disable ingress for a container app.

az containerapp ingress disable --name
                                --resource-group

Examples

Disable ingress for a container app.

az containerapp ingress disable -n MyContainerapp -g MyResourceGroup

Required Parameters

--name -n

The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az containerapp ingress enable

Enable or update ingress for a container app.

az containerapp ingress enable --name
                               --resource-group
                               --target-port
                               --type {external, internal}
                               [--allow-insecure]
                               [--exposed-port]
                               [--transport {auto, http, http2, tcp}]

Examples

Enable or update ingress for a container app.

az containerapp ingress enable -n MyContainerapp -g MyResourceGroup \
    --type external --allow-insecure --target-port 80 --transport auto

Required Parameters

--name -n

The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--target-port

The application port used for ingress traffic.

--type

The ingress type.

accepted values: external, internal

Optional Parameters

--allow-insecure

Allow insecure connections for ingress traffic.

--exposed-port

Additional exposed port. Only supported by tcp transport protocol. Must be unique per environment if the app ingress is external.

--transport

The transport protocol used for ingress traffic.

accepted values: auto, http, http2, tcp
default value: auto

az containerapp ingress show

Show details of a container app's ingress.

az containerapp ingress show --name
                             --resource-group

Examples

Show the details of a container app's ingress.

az containerapp ingress show -n MyContainerapp -g MyResourceGroup

Required Parameters

--name -n

The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.