Share via


az containerapp patch

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 patch command. Learn more about extensions.

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

Patch Azure Container Apps. Patching is only available for the apps built using the source to cloud feature. See https://aka.ms/aca-local-source-to-cloud.

Commands

Name Description Type Status
az containerapp patch apply

List and apply container apps to be patched. Patching is only available for the apps built using the source to cloud feature. See https://aka.ms/aca-local-source-to-cloud.

Extension Preview
az containerapp patch interactive

List and select container apps to be patched in an interactive way. Patching is only available for the apps built using the source to cloud feature. See https://aka.ms/aca-local-source-to-cloud.

Extension Preview
az containerapp patch list

List container apps that can be patched. Patching is only available for the apps built using the source to cloud feature. See https://aka.ms/aca-local-source-to-cloud.

Extension Preview

az containerapp patch apply

Preview

Command group 'containerapp patch' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List and apply container apps to be patched. Patching is only available for the apps built using the source to cloud feature. See https://aka.ms/aca-local-source-to-cloud.

az containerapp patch apply [--environment]
                            [--resource-group]
                            [--show-all]

Examples

List patchable container apps in the current subscription and apply patch.

az containerapp patch apply

List patchable container apps by resource group and apply patch.

az containerapp patch apply -g MyResourceGroup

List patchable container apps by managed environment and apply patch.

az containerapp patch apply -g MyResourceGroup --environment MyContainerAppEnv

List patchable and unpatchable container apps by managed environment with the show-all option and apply patch for patchable container apps.

az containerapp patch apply -g MyResourceGroup --environment MyContainerAppEnv --show-all

Optional Parameters

--environment -e

Name or resource id of the Container App environment.

--resource-group -g

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

--show-all

Show all patchable and unpatchable container apps.

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 patch interactive

Preview

Command group 'containerapp patch' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List and select container apps to be patched in an interactive way. Patching is only available for the apps built using the source to cloud feature. See https://aka.ms/aca-local-source-to-cloud.

az containerapp patch interactive [--environment]
                                  [--resource-group]
                                  [--show-all]

Examples

List patchable container apps in the current subscription and apply patch interactively.

az containerapp patch interactive

List patchable container apps by resource group and apply patch interactively.

az containerapp patch interactive -g MyResourceGroup

List patchable container apps by managed environment and apply patch interactively.

az containerapp patch interactive -g MyResourceGroup --environment MyContainerAppEnv

List patchable and unpatchable container apps by managed environment with the show-all option and apply patch for patchable container apps interactively.

az containerapp patch interactive -g MyResourceGroup --environment MyContainerAppEnv --show-all

Optional Parameters

--environment -e

Name or resource id of the Container App environment.

--resource-group -g

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

--show-all

Show all patchable and unpatchable container apps.

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 patch list

Preview

Command group 'containerapp patch' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List container apps that can be patched. Patching is only available for the apps built using the source to cloud feature. See https://aka.ms/aca-local-source-to-cloud.

az containerapp patch list [--environment]
                           [--resource-group]
                           [--show-all]

Examples

List patchable container apps in the current subscription.

az containerapp patch list

List patchable container apps by resource group.

az containerapp patch list -g MyResourceGroup

List patchable container apps by managed environment.

az containerapp patch list -g MyResourceGroup --environment MyContainerAppEnv

List patchable and unpatchable container apps by managed environment with the show-all option.

az containerapp patch list -g MyResourceGroup --environment MyContainerAppEnv --show-all

Optional Parameters

--environment -e

Name or resource id of the Container App environment.

--resource-group -g

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

--show-all

Show all patchable and unpatchable container apps.

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.