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.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
函数应用的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --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 从 0.5 到 2.0。
为 Dapr sidecar 启用/禁用 API 日志记录。
| 属性 | 值 |
|---|---|
| 接受的值: | false, true |
Dapr 应用程序标识符。
Dapr 端口用于与应用程序通信。
请求正文 http 和 grpc 服务器的最大大小(以 MB 为单位)以处理大型文件的上传。
发送多 KB 标头时要处理的 http 标头读取缓冲区的最大大小(以 KB 为单位)。
Dapr sidecar 的日志级别。
| 属性 | 值 |
|---|---|
| 接受的值: | debug, error, info, warn |
选项“--docker-custom-image-name”已弃用,将在将来的版本中删除。 请改用“--image”。
容器自定义映像名称和标记名称(例如,<registry-name>/<image-name>:<tag>)。
选项“--docker-registry-server-password”已弃用,将在将来的版本中删除。 请改用“--registry-password”。
容器注册表服务器密码。
选项“--docker-registry-server-url”已弃用,将在将来的版本中删除。 请改用“--registry-server”。
容器注册表服务器 URL。
选项“--docker-registry-server-user”已弃用,将在将来的版本中删除。 请改用“--registry-username”。
容器注册表服务器用户名。
在 Azure 容器应用环境中为函数应用启用/禁用 Dapr。
| 属性 | 值 |
|---|---|
| 接受的值: | false, true |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
容器自定义映像名称和标记名称(例如,<registry-name>/<image-name>:<tag>)。
在容器应用上创建函数应用时的最大副本数。
从 1.0 到 4.0 的必需内存以 Gi 结尾,例如 1.0Gi。。
在容器应用上创建函数应用时,副本的最小数量。
函数应用的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
容器注册表服务器密码。
容器注册表服务器 URL。
容器注册表服务器用户名。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
要在其中运行应用的工作负荷配置文件的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --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.
容器自定义映像名称和标记名称(可选)。
容器注册表服务器密码。
容器注册表服务器 URL。
容器注册表服务器用户名。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
函数应用的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --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.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
函数应用的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |