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

az communication chat thread

注意

此参考是 Azure CLI(版本 2.59.0 或更高版本)的通信扩展的一部分。 该扩展将在首次运行 az communication chat thread 命令时自动安装。 详细了解扩展。

命令组“通信聊天”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

用于管理通信服务资源的聊天线程的命令。

命令

名称 说明 类型 状态
az communication chat thread create

创建聊天线程。

扩展 预览
az communication chat thread delete

删除聊天线程。

扩展 预览
az communication chat thread list

获取用户的聊天线程列表。

扩展 预览
az communication chat thread update-topic

汇报聊天线程的主题。

扩展 预览

az communication chat thread create

预览

命令组“通信聊天线程”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

创建聊天线程。

az communication chat thread create --topic
                                    [--access-token]
                                    [--endpoint]
                                    [--idempotency-token]

示例

创建聊天线程

az communication chat thread create --topic "chat-topic"

必需参数

--topic

聊天主题。

可选参数

--access-token

通信访问令牌。 环境变量:AZURE_COMMUNICATION_ACCESS_TOKEN。

--endpoint

通信终结点。 环境变量:AZURE_COMMUNICATION_ENDPOINT。

--idempotency-token

幂等令牌。

全局参数
--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 communication chat thread delete

预览

命令组“通信聊天线程”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

删除聊天线程。

az communication chat thread delete --thread
                                    [--access-token]
                                    [--endpoint]
                                    [--yes]

示例

删除聊天线程

az communication chat thread delete --thread "19:a-bcd=xyz"

必需参数

--thread -t

线程 ID。

可选参数

--access-token

通信访问令牌。 环境变量:AZURE_COMMUNICATION_ACCESS_TOKEN。

--endpoint

通信终结点。 环境变量:AZURE_COMMUNICATION_ENDPOINT。

--yes -y

不提示确认。

默认值: False
全局参数
--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 communication chat thread list

预览

命令组“通信聊天线程”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

获取用户的聊天线程列表。

az communication chat thread list [--access-token]
                                  [--endpoint]
                                  [--start-time]

示例

列出聊天会话

az communication chat thread list

可选参数

--access-token

通信访问令牌。 环境变量:AZURE_COMMUNICATION_ACCESS_TOKEN。

--endpoint

通信终结点。 环境变量:AZURE_COMMUNICATION_ENDPOINT。

--start-time

ISO8601格式的开始时间,例如:2022-07-14T10:21。

全局参数
--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 communication chat thread update-topic

预览

命令组“通信聊天线程”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

汇报聊天线程的主题。

az communication chat thread update-topic --thread
                                          --topic
                                          [--access-token]
                                          [--endpoint]

示例

更新聊天线程主题

az communication chat thread update-topic --thread "19:a-bcd=xyz" --topic "New topic!"

必需参数

--thread -t

线程 ID。

--topic

聊天主题。

可选参数

--access-token

通信访问令牌。 环境变量:AZURE_COMMUNICATION_ACCESS_TOKEN。

--endpoint

通信终结点。 环境变量:AZURE_COMMUNICATION_ENDPOINT。

全局参数
--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 获取完整的调试日志。