你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az webapp config container

管理现有 Web 应用的容器设置。

命令

名称 说明 类型 状态
az webapp config container delete

删除现有 Web 应用的容器设置。

核心 GA
az webapp config container set

设置现有 Web 应用的容器设置。

核心 GA
az webapp config container show

获取 Web 应用的容器设置的详细信息。

核心 GA

az webapp config container delete

删除现有 Web 应用的容器设置。

az webapp config container delete [--ids]
                                  [--name]
                                  [--resource-group]
                                  [--slot]
                                  [--subscription]

示例

删除 Web 应用容器的设置。 (自动生成)

az webapp config container delete --name MyWebApp --resource-group MyResourceGroup

可选参数

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

--name -n

Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--slot -s

槽的名称。 如果未指定,则默认为生产槽。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az webapp config container set

设置现有 Web 应用的容器设置。

az webapp config container set [--container-image-name]
                               [--container-registry-password]
                               [--container-registry-url]
                               [--container-registry-user]
                               [--docker-custom-image-name]
                               [--docker-registry-server-password]
                               [--docker-registry-server-url]
                               [--docker-registry-server-user]
                               [--enable-app-service-storage {false, true}]
                               [--ids]
                               [--multicontainer-config-file]
                               [--multicontainer-config-type {COMPOSE, KUBE}]
                               [--name]
                               [--resource-group]
                               [--slot]
                               [--subscription]

示例

设置 Web 应用容器的设置。 (自动生成)

az webapp config container set --docker-custom-image-name MyDockerCustomImage --docker-registry-server-password StrongPassword --docker-registry-server-url https://{azure-container-registry-name}.azurecr.io --docker-registry-server-user DockerUserId --name MyWebApp --resource-group MyResourceGroup

可选参数

--container-image-name -c -i

容器自定义映像名称和标记名称(例如 /:))。

--container-registry-password -p

容器注册表服务器密码。

--container-registry-url -r

容器注册表服务器 URL。

--container-registry-user -u

容器注册表服务器用户名。

--docker-custom-image-name
已放弃

选项“--docker-custom-image-name”已弃用,将在将来的版本中删除。 请改用“--container-image-name”。

容器自定义映像名称和标记名称(例如 /:))。

--docker-registry-server-password
已放弃

选项“--docker-registry-server-password”已弃用,将在将来的版本中删除。 请改用“--container-registry-password”。

容器注册表服务器密码。

--docker-registry-server-url
已放弃

选项“--docker-registry-server-url”已弃用,将在将来的版本中删除。 请改用“--container-registry-url”。

容器注册表服务器 URL。

--docker-registry-server-user
已放弃

选项“--docker-registry-server-user”已弃用,将在将来的版本中删除。 请改用“--container-registry-user”。

容器注册表服务器用户名。

--enable-app-service-storage -t

启用平台存储(仅限自定义容器)。

接受的值: false, true
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

--multicontainer-config-file

多容器应用的配置文件。

--multicontainer-config-type

配置类型。

接受的值: COMPOSE, KUBE
--name -n

Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--slot -s

槽的名称。 如果未指定,则默认为生产槽。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az webapp config container show

获取 Web 应用的容器设置的详细信息。

az webapp config container show [--ids]
                                [--name]
                                [--resource-group]
                                [--show-multicontainer-config]
                                [--slot]
                                [--subscription]

示例

获取 Web 应用容器设置的详细信息。 (自动生成)

az webapp config container show --name MyWebapp --resource-group MyResourceGroup

可选参数

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

--name -n

Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--show-multicontainer-config

如果设置了多容器配置,则显示已解码的配置。

--slot -s

槽的名称。 如果未指定,则默认为生产槽。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。