Share via


az communication phonenumbers

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 phonenumbers command. Learn more about extensions.

This command group has been deprecated and will be removed in a future release. Use 'phonenumber' instead.

Commands to manage phone numbers for a Communication Service resource.

Commands

Name Description Type Status
az communication phonenumbers list-phonenumbers

Lists all phone numbers associated with the Communication Service resource.

Extension Deprecated
az communication phonenumbers show-phonenumber

Shows the details for a phone number associated with the Communication Service resource.

Extension Deprecated

az communication phonenumbers list-phonenumbers

Deprecated

This command is implicitly deprecated because command group 'communication phonenumbers' is deprecated and will be removed in a future release. Use 'phonenumber' instead.

Lists all phone numbers associated with the Communication Service resource.

az communication phonenumbers list-phonenumbers [--connection-string]

Examples

List phonenumbers

az communication phonenumbers list-phonenumbers

Optional Parameters

--connection-string

Communication connection string. Environment variable: AZURE_COMMUNICATION_CONNECTION_STRING.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az communication phonenumbers show-phonenumber

Deprecated

This command is implicitly deprecated because command group 'communication phonenumbers' is deprecated and will be removed in a future release. Use 'phonenumber' instead.

Shows the details for a phone number associated with the Communication Service resource.

az communication phonenumbers show-phonenumber --phonenumber
                                               [--connection-string]

Examples

Show phonenumber

az communication phonenumbers show-phonenumber --phonenumber "+1833xxxxxxx"

Required Parameters

--phonenumber -p

Phone number to get information about.

Optional Parameters

--connection-string

Communication connection string. Environment variable: AZURE_COMMUNICATION_CONNECTION_STRING.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.