Partilhar via


az containerapp env http-route-config

Note

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

This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Commands to manage environment level http routing.

Commands

Name Description Type Status
az containerapp env http-route-config create

Create a new http route config.

Extension Preview
az containerapp env http-route-config delete

Delete a http route config.

Extension Preview
az containerapp env http-route-config list

List the http route configs in the environment.

Extension Preview
az containerapp env http-route-config show

Show a http route config.

Extension Preview
az containerapp env http-route-config update

Update a http route config.

Extension Preview

az containerapp env http-route-config create

Preview

Command group 'containerapp env http-route-config' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Create a new http route config.

az containerapp env http-route-config create --http-route-config-name
                                             --name
                                             --resource-group
                                             --yaml

Examples

Create a new route from a yaml file.

az containerapp env http-route-config create -g MyResourceGroup -n MyEnvironment -r configname --yaml config.yaml

Required Parameters

--http-route-config-name -r

The name of the http route configuration.

--name -n

Name of the Container Apps environment.

--resource-group -g

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

--yaml

The path to the YAML input file.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az containerapp env http-route-config delete

Preview

Command group 'containerapp env http-route-config' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Delete a http route config.

az containerapp env http-route-config delete --http-route-config-name
                                             --name
                                             --resource-group
                                             [--yes]

Examples

Delete a route from the environment.

az containerapp env http-route-config delete -g MyResourceGroup -n MyEnvironment -r configname

Required Parameters

--http-route-config-name -r

The name of the http route configuration.

--name -n

Name of the Container Apps environment.

--resource-group -g

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

Optional Parameters

--yes -y

Do not prompt for confirmation.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az containerapp env http-route-config list

Preview

Command group 'containerapp env http-route-config' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List the http route configs in the environment.

az containerapp env http-route-config list --name
                                           --resource-group

Examples

List the http route configs in the environment.

az containerapp env http-route-config list -g MyResourceGroup -n MyEnvironment

Required Parameters

--name -n

Name of the Container Apps environment.

--resource-group -g

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az containerapp env http-route-config show

Preview

Command group 'containerapp env http-route-config' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Show a http route config.

az containerapp env http-route-config show --http-route-config-name
                                           --name
                                           --resource-group

Examples

Show a route in the environment.

az containerapp env http-route-config show -g MyResourceGroup -n MyEnvironment -r configname

Required Parameters

--http-route-config-name -r

The name of the http route configuration.

--name -n

Name of the Container Apps environment.

--resource-group -g

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az containerapp env http-route-config update

Preview

Command group 'containerapp env http-route-config' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Update a http route config.

az containerapp env http-route-config update --http-route-config-name
                                             --name
                                             --resource-group
                                             --yaml

Examples

Update a route in the environment from a yaml file.

az containerapp env http-route-config update -g MyResourceGroup -n MyEnvironment -r configname --yaml config.yaml

Required Parameters

--http-route-config-name -r

The name of the http route configuration.

--name -n

Name of the Container Apps environment.

--resource-group -g

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

--yaml

The path to the YAML input file.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.