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

az functionapp config container

Note

此命令组具有在 Azure CLI 和至少一个扩展中定义的命令。 安装每个扩展,使其受益于其扩展功能。 了解更多关于扩展的信息。

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

命令

名称 说明 类型 Status
az functionapp config container delete

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

Core GA
az functionapp config container set

设置现有函数应用的容器设置。

Core GA
az functionapp config container set (appservice-kube 扩展)

设置现有函数应用的容器设置。

Extension GA
az functionapp config container show

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

Core GA

az functionapp config container delete

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

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

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ids

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

属性
Parameter group: Resource Id Arguments
--name -n

函数应用的名称。

属性
Parameter group: Resource Id Arguments
--resource-group -g

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

属性
Parameter group: Resource Id Arguments
--slot -s

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

--subscription

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

属性
Parameter group: Resource Id Arguments
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

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

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

--verbose

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

属性
默认值: False

az functionapp config container set

设置现有函数应用的容器设置。

az functionapp config container set [--cpu]
                                    [--dal --dapr-enable-api-logging {false, true}]
                                    [--dapr-app-id]
                                    [--dapr-app-port]
                                    [--dapr-http-max-request-size --dhmrs]
                                    [--dapr-http-read-buffer-size --dhrbs]
                                    [--dapr-log-level {debug, error, info, warn}]
                                    [--docker-custom-image-name]
                                    [--docker-registry-server-password]
                                    [--docker-registry-server-url]
                                    [--docker-registry-server-user]
                                    [--enable-dapr {false, true}]
                                    [--ids]
                                    [--image]
                                    [--max-replicas]
                                    [--memory]
                                    [--min-replicas]
                                    [--name]
                                    [--registry-password]
                                    [--registry-server]
                                    [--registry-username]
                                    [--resource-group]
                                    [--slot]
                                    [--subscription]
                                    [--workload-profile-name]

示例

设置函数应用容器的设置。 (autogenerated)

az functionapp 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 MyFunctionApp --resource-group MyResourceGroup

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--cpu
预览

核心中所需的 CPU 从 0.5 到 2.0。

--dal --dapr-enable-api-logging

为 Dapr sidecar 启用/禁用 API 日志记录。

属性
接受的值: false, true
--dapr-app-id

Dapr 应用程序标识符。

--dapr-app-port

Dapr 端口用于与应用程序通信。

--dapr-http-max-request-size --dhmrs

请求正文 http 和 grpc 服务器的最大大小(以 MB 为单位)以处理大型文件的上传。

--dapr-http-read-buffer-size --dhrbs

发送多 KB 标头时要处理的 http 标头读取缓冲区的最大大小(以 KB 为单位)。

--dapr-log-level

Dapr sidecar 的日志级别。

属性
接受的值: debug, error, info, warn
--docker-custom-image-name
已放弃

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

容器自定义映像名称和标记名称(例如,<registry-name>/<image-name>:<tag>)。

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

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

容器注册表服务器密码。

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

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

容器注册表服务器 URL。

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

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

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

--enable-dapr

在 Azure 容器应用环境中为函数应用启用/禁用 Dapr。

属性
接受的值: false, true
--ids

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

属性
Parameter group: Resource Id Arguments
--image -c -i

容器自定义映像名称和标记名称(例如,<registry-name>/<image-name>:<tag>)。

--max-replicas
预览

在容器应用上创建函数应用时的最大副本数。

--memory
预览

从 1.0 到 4.0 的必需内存以 Gi 结尾,例如 1.0Gi。。

--min-replicas
预览

在容器应用上创建函数应用时,副本的最小数量。

--name -n

函数应用的名称。

属性
Parameter group: Resource Id Arguments
--registry-password -p

容器注册表服务器密码。

--registry-server -r

容器注册表服务器 URL。

--registry-username -u

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

--resource-group -g

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

属性
Parameter group: Resource Id Arguments
--slot -s

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

--subscription

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

属性
Parameter group: Resource Id Arguments
--workload-profile-name
预览

要在其中运行应用的工作负荷配置文件的名称。

全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

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

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

--verbose

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

属性
默认值: False

az functionapp config container set (appservice-kube 扩展)

设置现有函数应用的容器设置。

az functionapp config container set [--docker-custom-image-name]
                                    [--docker-registry-server-password]
                                    [--docker-registry-server-url]
                                    [--docker-registry-server-user]
                                    [--ids]
                                    [--name]
                                    [--resource-group]
                                    [--slot]
                                    [--subscription]

示例

设置函数应用容器的设置。 (autogenerated)

az functionapp 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 MyFunctionApp --resource-group MyResourceGroup

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--docker-custom-image-name -c -i

容器自定义映像名称和标记名称(可选)。

--docker-registry-server-password -p

容器注册表服务器密码。

--docker-registry-server-url -r

容器注册表服务器 URL。

--docker-registry-server-user -u

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

--ids

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

属性
Parameter group: Resource Id Arguments
--name -n

函数应用的名称。

属性
Parameter group: Resource Id Arguments
--resource-group -g

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

属性
Parameter group: Resource Id Arguments
--slot -s

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

--subscription

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

属性
Parameter group: Resource Id Arguments
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

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

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

--verbose

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

属性
默认值: False

az functionapp config container show

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

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

示例

获取函数应用容器设置的详细信息。 (autogenerated)

az functionapp config container show --name MyFunctionApp --resource-group MyResourceGroup

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ids

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

属性
Parameter group: Resource Id Arguments
--name -n

函数应用的名称。

属性
Parameter group: Resource Id Arguments
--resource-group -g

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

属性
Parameter group: Resource Id Arguments
--slot -s

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

--subscription

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

属性
Parameter group: Resource Id Arguments
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

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

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

--verbose

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

属性
默认值: False