az communication sms
Note
This reference is part of the communication extension for the Azure CLI (version 2.59.0 or higher). The extension will automatically install the first time you run an az communication sms command. Learn more about extensions.
Commands to manage SMS for a Communication Service resource.
Commands
Name | Description | Type | Status |
---|---|---|---|
az communication sms send |
Sends an SMS from the sender phone number to the recipient(s) phone number(s). |
Extension | Preview |
az communication sms send-sms |
Sends an SMS from the sender phone number to the recipient(s) phone number(s). |
Extension | Deprecated |
az communication sms send
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Sends an SMS from the sender phone number to the recipient(s) phone number(s).
az communication sms send --message
--recipient
--sender
[--connection-string]
Examples
Send sms
az communication sms send --sender "+1833xxxxxxx" --recipient "+1425xxxxxxx" "+1426xxxxxxx" "+1427xxxxxxx" --message "Hello there!!"
Required Parameters
The message in the SMS.
The recipient(s) of the SMS.
The sender of the SMS.
Optional Parameters
Communication connection string. Environment variable: AZURE_COMMUNICATION_CONNECTION_STRING.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az communication sms send-sms
This command has been deprecated and will be removed in a future release. Use 'send' instead.
Sends an SMS from the sender phone number to the recipient(s) phone number(s).
az communication sms send-sms --message
--recipient
--sender
[--connection-string]
Examples
Send sms
az communication sms send-sms --sender "+1833xxxxxxx" --recipient "+1425xxxxxxx" "+1426xxxxxxx" "+1427xxxxxxx" --message "Hello there!!"
Required Parameters
The message in the SMS.
The recipient(s) of the SMS.
The sender of the SMS.
Optional Parameters
Communication connection string. Environment variable: AZURE_COMMUNICATION_CONNECTION_STRING.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.