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

az communication sms

注释

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

用于管理通信服务资源的短信的命令。

命令

名称 说明 类型 Status
az communication sms send

将发送方电话号码中的短信发送到接收方电话号码(s)。

扩展 预览

az communication sms send

预览

此命令处于预览阶段,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

将发送方电话号码中的短信发送到接收方电话号码(s)。

az communication sms send --message
                          --recipient
                          --sender
                          [--connection-string]

示例

发送短信

az communication sms send --sender "+1833xxxxxxx" --recipient "+1425xxxxxxx" "+1426xxxxxxx" "+1427xxxxxxx" --message "Hello there!!"

必需参数

--message

短信中的消息。

--recipient

短信的收件人。

--sender

短信的发送方。

可选参数

--connection-string

通信连接字符串。 环境变量:AZURE_COMMUNICATION_CONNECTION_STRING。

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