diff --git a/sdk/communication/azure-communication-administration/README.md b/sdk/communication/azure-communication-administration/README.md index 665ccf65f3a2..10bc2d9c65be 100644 --- a/sdk/communication/azure-communication-administration/README.md +++ b/sdk/communication/azure-communication-administration/README.md @@ -26,17 +26,26 @@ import os from azure.communication.administration import PhoneNumberAdministrationClient from azure.identity import DefaultAzureCredential -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') endpoint = os.getenv('AZURE_COMMUNICATION_SERVICE_ENDPOINT') -# To use Azure Active Directory Authentication (DefaultAzureCredential) make sure to have +# To use Azure Active Directory Authentication (DefaultAzureCredential) make sure to have your # AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET as env variables. phone_number_administration_client = PhoneNumberAdministrationClient(endpoint, DefaultAzureCredential()) -# You can also authenticate using your connection string +``` +### Initializing Phone Number Client Using Connection String +Connection string authentication is also available for Phone Number Client. + +```python +# You can find your endpoint and access token from your resource in the Azure Portal +import os +from azure.communication.administration import PhoneNumberAdministrationClient + +connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') phone_number_administration_client = PhoneNumberAdministrationClient.from_connection_string(connection_str) ``` + ### Phone plans overview Phone plans come in two types; Geographic and Toll-Free. Geographic phone plans are phone plans associated with a location, whose phone numbers' area codes are associated with the area code of a geographic location. Toll-Free phone plans are phone plans not associated location. For example, in the US, toll-free numbers can come with area codes such as 800 or 888.