az containerapp dapr
用于管理 Dapr 的命令。 若要管理 Dapr 组件,请参阅 az containerapp env dapr-component。
命令
| 名称 | 说明 | 类型 | Status | 
|---|---|---|---|
| az containerapp dapr disable | 为容器应用禁用 Dapr。 删除现有值。 | Core | GA | 
| az containerapp dapr enable | 为容器应用启用 Dapr。 更新现有值。 | Core | GA | 
az containerapp dapr disable
为容器应用禁用 Dapr。 删除现有值。
az containerapp dapr disable [--ids]
                             [--name]
                             [--resource-group]
                             [--subscription]示例
为容器应用禁用 Dapr。
az containerapp dapr disable -n my-containerapp -g 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 | 
Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。
| 属性 | 值 | 
|---|---|
| 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 containerapp dapr enable
为容器应用启用 Dapr。 更新现有值。
az containerapp dapr enable [--dal --dapr-enable-api-logging]
                            [--dapr-app-id]
                            [--dapr-app-port]
                            [--dapr-app-protocol {grpc, http}]
                            [--dapr-http-max-request-size --dhmrs]
                            [--dapr-http-read-buffer-size --dhrbs]
                            [--dapr-log-level {debug, error, info, warn}]
                            [--ids]
                            [--name]
                            [--resource-group]
                            [--subscription]示例
为容器应用启用 Dapr。
az containerapp dapr enable -n my-containerapp -g MyResourceGroup --dapr-app-id my-app-id --dapr-app-port 8080可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
为 Dapr sidecar 启用 API 日志记录。
| 属性 | 值 | 
|---|---|
| Parameter group: | Dapr Arguments | 
| 默认值: | False | 
Dapr 应用程序标识符。
| 属性 | 值 | 
|---|---|
| Parameter group: | Dapr Arguments | 
Dapr 端口用于与应用程序通信。
| 属性 | 值 | 
|---|---|
| Parameter group: | Dapr Arguments | 
Dapr 用于与应用程序通信的协议。
| 属性 | 值 | 
|---|---|
| Parameter group: | Dapr Arguments | 
| 接受的值: | grpc, http | 
增加请求正文 http 和 grpc 服务器参数的最大大小(以 MB 为单位)以处理大文件的上传。
| 属性 | 值 | 
|---|---|
| Parameter group: | Dapr Arguments | 
发送多 KB 标头时要处理的 http 标头读取缓冲区的最大大小(以 KB 为单位)。
| 属性 | 值 | 
|---|---|
| Parameter group: | Dapr Arguments | 
设置 Dapr sidecar 的日志级别。
| 属性 | 值 | 
|---|---|
| Parameter group: | Dapr Arguments | 
| 接受的值: | debug, error, info, warn | 
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 | 
|---|---|
| Parameter group: | Resource Id Arguments | 
Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。
| 属性 | 值 | 
|---|---|
| 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 |