az communication sms
Note
This reference is part of the communication extension for the Azure CLI (version 2.67.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
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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Communication connection string. Environment variable: AZURE_COMMUNICATION_CONNECTION_STRING.
Property | Value |
---|---|
Parameter group: | Communication Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |