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

az communication chat message

注意

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

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

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

命令

名称 说明 类型 状态
az communication chat message delete

按 ID 从聊天线程中删除消息。

扩展 预览
az communication chat message get

按 ID 从聊天线程获取消息。

扩展 预览
az communication chat message list

从聊天线程获取消息列表。

扩展 预览
az communication chat message receipt

用于在通信服务资源的聊天线程中管理消息读回执的命令。

扩展 预览
az communication chat message receipt list

获取聊天线程的已读回执。

扩展 预览
az communication chat message receipt send

代表用户将已读回执事件发布到聊天线程。

扩展 预览
az communication chat message send

向聊天线程发送消息。

扩展 预览
az communication chat message update

汇报消息。

扩展 预览

az communication chat message delete

预览

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

按 ID 从聊天线程中删除消息。

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

示例

删除消息

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

必需参数

--message-id

消息 ID。

--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 message get

预览

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

按 ID 从聊天线程获取消息。

az communication chat message get --message-id
                                  --thread
                                  [--access-token]
                                  [--endpoint]

示例

获取消息

az communication chat message get --thread "19:a-bcd=xyz" --message-id "12345678"

必需参数

--message-id

消息 ID。

--thread -t

线程 ID。

可选参数

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

az communication chat message list

预览

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

从聊天线程获取消息列表。

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

示例

列出消息

az communication chat message list --thread "19:a-bcd=xyz" --start-time "2022-07-14T10:21"

必需参数

--thread -t

线程 ID。

可选参数

--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 message send

预览

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

向聊天线程发送消息。

az communication chat message send --content
                                   --thread
                                   [--access-token]
                                   [--display-name]
                                   [--endpoint]
                                   [--message-type]

示例

发送消息

az communication chat message send --thread "19:a-bcd=xyz" --display-name "John Doe" --content "Hello there!" --message-type "text"

必需参数

--content

聊天消息内容。

--thread -t

线程 ID。

可选参数

--access-token

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

--display-name

发送方显示名称。

--endpoint

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

--message-type

内容类型可以是文本或 html。

全局参数
--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 message update

预览

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

汇报消息。

az communication chat message update --content
                                     --message-id
                                     --thread
                                     [--access-token]
                                     [--endpoint]

示例

更新消息

az communication chat message update --thread "19:a-bcd=xyz" --message-id "12345678" --content "Hello, there!"

必需参数

--content

聊天消息内容。

--message-id

消息 ID。

--thread -t

线程 ID。

可选参数

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