az communication
Note
This reference is part of the communication extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az communication command. Learn more about extensions.
Manage communication service with communication.
Commands
| az communication create |
Create a new CommunicationService or update an existing CommunicationService. |
| az communication delete |
Operation to delete a CommunicationService. |
| az communication identity |
Commands to manage User Identity for a CommunicationService resource. |
| az communication identity issue-access-token |
Issues a new access token with the specified scopes for a given User Identity. If no User Identity is specified, creates a new User Identity as well. |
| az communication link-notification-hub |
Links an Azure Notification Hub to this communication service. |
| az communication list |
Handles requests to list all resources in a resource group. And Handles requests to list all resources in a subscription. |
| az communication list-key |
Get the access keys of the CommunicationService resource. |
| az communication phonenumbers |
Commands to manage phone numbers for a CommunicationService resource. |
| az communication phonenumbers list-phonenumbers |
Lists all phone numbers associated with the CommunicationService resource. |
| az communication phonenumbers show-phonenumber |
Shows the details for a phone number associated with the CommunicationService resource. |
| az communication regenerate-key |
Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. |
| az communication show |
Get the CommunicationService and its properties. |
| az communication sms |
Commands to manage SMS for a CommunicationService resource. |
| az communication sms send-sms |
Sends an SMS from the sender phone number to the recipient phone number. |
| az communication update |
Operation to update an existing CommunicationService. |
| az communication wait |
Place the CLI in a waiting state until a condition of the communication is met. |
az communication create
Create a new CommunicationService or update an existing CommunicationService.
az communication create --name
--resource-group
[--data-location]
[--location]
[--no-wait]
[--tags]
Examples
Create or update resource
az communication create --name "MyCommunicationResource" --location "Global" --data-location "United States" --resource-group "MyResourceGroup"
Required Parameters
The name of the CommunicationService resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The location where the communication service stores its data at rest.
Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.
Do not wait for the long-running operation to finish.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
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 delete
Operation to delete a CommunicationService.
az communication delete --name
--resource-group
[--no-wait]
[--yes]
Examples
Delete resource
az communication delete --name "MyCommunicationResource" --resource-group "MyResourceGroup"
Required Parameters
The name of the CommunicationService resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
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 link-notification-hub
Links an Azure Notification Hub to this communication service.
az communication link-notification-hub --name
--resource-group
[--connection-string]
[--resource-id]
Examples
Link notification hub
az communication link-notification-hub --name "MyCommunicationResource" --connection-string "Endpoint=sb://MyNamespace.servicebus.windows.net/;SharedAccessKey=abcd1234" --resource-id "/subscriptions/12345/resourceGroups/MyOtherResourceGroup/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub" --resource-group "MyResourceGroup"
Required Parameters
The name of the CommunicationService resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Connection string for the notification hub.
The resource ID of the notification hub.
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 list
Handles requests to list all resources in a resource group. And Handles requests to list all resources in a subscription.
az communication list [--resource-group]
Examples
List by resource group
az communication list --resource-group "MyResourceGroup"
List by subscription
az communication list
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 list-key
Get the access keys of the CommunicationService resource.
az communication list-key --name
--resource-group
Examples
List keys
az communication list-key --name "MyCommunicationResource" --resource-group "MyResourceGroup"
Required Parameters
The name of the CommunicationService resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 regenerate-key
Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
az communication regenerate-key --name
--resource-group
[--key-type {Primary, Secondary}]
Examples
Regenerate key
az communication regenerate-key --name "MyCommunicationResource" --key-type "Primary" --resource-group "MyResourceGroup"
Required Parameters
The name of the CommunicationService resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive).
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 show
Get the CommunicationService and its properties.
az communication show --name
--resource-group
Examples
Get resource
az communication show --name "MyCommunicationResource" --resource-group "MyResourceGroup"
Required Parameters
The name of the CommunicationService resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 update
Operation to update an existing CommunicationService.
az communication update --name
--resource-group
[--data-location]
[--location]
[--tags]
Examples
Update resource
az communication update --name "MyCommunicationResource" --tags newTag="newVal" --resource-group "MyResourceGroup"
Required Parameters
The name of the CommunicationService resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The location where the communication service stores its data at rest.
Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
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 wait
Place the CLI in a waiting state until a condition of the communication is met.
az communication wait --name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Examples
Pause executing next line of CLI script until the communication is successfully created.
az communication wait --name "MyCommunicationResource" --resource-group "MyResourceGroup" --created
Pause executing next line of CLI script until the communication is successfully deleted.
az communication wait --name "MyCommunicationResource" --resource-group "MyResourceGroup" --deleted
Required Parameters
The name of the CommunicationService resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
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.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ