Skip to content

Commit c6aa5d8

Browse files
authored
Rename to AZURE_PHONE_NUMBER (#18760)
1 parent c859158 commit c6aa5d8

16 files changed

+28
-28
lines changed

sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to get its information
18+
2) AZURE_PHONE_NUMBER - The phone number you want to get its information
1919
"""
2020

2121
import os
@@ -24,7 +24,7 @@
2424
)
2525

2626
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
27-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") # e.g. "+18001234567"
27+
phone_number = os.getenv("AZURE_PHONE_NUMBER") # e.g. "+18001234567"
2828
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
2929

3030
def get_purchased_phone_number_information():

sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to get its information
18+
2) AZURE_PHONE_NUMBER - The phone number you want to get its information
1919
"""
2020

2121
import asyncio
@@ -25,7 +25,7 @@
2525
)
2626

2727
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
28-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") # e.g. "+18001234567"
28+
phone_number = os.getenv("AZURE_PHONE_NUMBER") # e.g. "+18001234567"
2929
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
3030

3131
async def get_purchased_phone_number_information():

sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release
18+
2) AZURE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release
1919
"""
2020

2121
import os
@@ -25,7 +25,7 @@
2525

2626
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
2727
phone_number_to_release = os.getenv(
28-
"AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567"
28+
"AZURE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567"
2929
)
3030
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
3131

sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release
18+
2) AZURE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release
1919
"""
2020

2121
import asyncio
@@ -26,7 +26,7 @@
2626

2727
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
2828
phone_number_to_release = os.getenv(
29-
"AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567"
29+
"AZURE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567"
3030
)
3131
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
3232

sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to update
18+
2) AZURE_PHONE_NUMBER - The phone number you want to update
1919
"""
2020

2121
import os
@@ -26,7 +26,7 @@
2626

2727
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
2828
phone_number_to_update = os.getenv(
29-
"AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER" # e.g. "+15551234567"
29+
"AZURE_PHONE_NUMBER" # e.g. "+15551234567"
3030
)
3131
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
3232

sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to update
18+
2) AZURE_PHONE_NUMBER - The phone number you want to update
1919
"""
2020

2121
import asyncio
@@ -25,7 +25,7 @@
2525

2626
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
2727
phone_number_to_update = os.getenv(
28-
"AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER" # e.g. "+15551234567"
28+
"AZURE_PHONE_NUMBER" # e.g. "+15551234567"
2929
)
3030
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
3131

sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def setUp(self):
2727
self.phone_number = "sanitized"
2828
self.country_code = "US"
2929
else:
30-
self.phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
30+
self.phone_number = os.getenv("AZURE_PHONE_NUMBER")
3131
self.country_code = os.getenv("AZURE_COMMUNICATION_SERVICE_COUNTRY_CODE", "US")
3232
self.phone_number_client = PhoneNumbersClient.from_connection_string(
3333
self.connection_str,

sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def setUp(self):
2828
self.phone_number = "sanitized"
2929
self.country_code = "US"
3030
else:
31-
self.phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
31+
self.phone_number = os.getenv("AZURE_PHONE_NUMBER")
3232
self.country_code = os.getenv("AZURE_COMMUNICATION_SERVICE_COUNTRY_CODE", "US")
3333
self.phone_number_client = PhoneNumbersClient.from_connection_string(
3434
self.connection_str,

sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
python send_sms_to_multiple_recipients_sample.py
1616
Set the environment variable with your own value before running the sample:
1717
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
18+
2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
1919
"""
2020

2121
import os
@@ -27,7 +27,7 @@
2727
class SmsMultipleRecipientsSample(object):
2828

2929
connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING")
30-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
30+
phone_number = os.getenv("AZURE_PHONE_NUMBER")
3131

3232
def send_sms_to_multiple_recipients(self):
3333
sms_client = SmsClient.from_connection_string(self.connection_string)

sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
python send_sms_to_multiple_recipients_sample_async.py
1616
Set the environment variable with your own value before running the sample:
1717
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
18+
2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
1919
"""
2020

2121
import os
@@ -28,7 +28,7 @@
2828
class SmsMultipleRecipientsSampleAsync(object):
2929

3030
connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING")
31-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
31+
phone_number = os.getenv("AZURE_PHONE_NUMBER")
3232

3333
async def send_sms_to_multiple_recipients_async(self):
3434
sms_client = SmsClient.from_connection_string(self.connection_string)

sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
python send_sms_to_single_recipient_sample.py
1616
Set the environment variable with your own value before running the sample:
1717
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
18+
2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
1919
"""
2020

2121
import os
@@ -27,7 +27,7 @@
2727
class SmsSingleRecipientSample(object):
2828

2929
connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING")
30-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
30+
phone_number = os.getenv("AZURE_PHONE_NUMBER")
3131

3232
def send_sms_to_single_recipient(self):
3333
sms_client = SmsClient.from_connection_string(self.connection_string)

sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
python send_sms_to_single_recipient_sample_async.py
1616
Set the environment variable with your own value before running the sample:
1717
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
18+
2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
1919
"""
2020

2121
import os
@@ -28,7 +28,7 @@
2828
class SmsSingleRecipientSampleAsync(object):
2929

3030
connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING")
31-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
31+
phone_number = os.getenv("AZURE_PHONE_NUMBER")
3232

3333
async def send_sms_to_single_recipient_async(self):
3434
sms_client = SmsClient.from_connection_string(self.connection_string)

sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
python sms_token_credential_auth_sample.py
1616
Set the environment variable with your own value before running the sample:
1717
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
18+
2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
1919
"""
2020

2121
import os
@@ -29,7 +29,7 @@
2929
class SmsTokenCredentialAuthSample(object):
3030

3131
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
32-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
32+
phone_number = os.getenv("AZURE_PHONE_NUMBER")
3333

3434
def sms_token_credential_auth(self):
3535
# To use Azure Active Directory Authentication (DefaultAzureCredential) make sure to have

sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
python sms_token_credential_auth_sample_async.py
1616
Set the environment variable with your own value before running the sample:
1717
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
18+
2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
1919
"""
2020

2121
import os
@@ -30,7 +30,7 @@
3030
class SmsTokenCredentialAuthSampleAsync(object):
3131

3232
connection_string = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
33-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
33+
phone_number = os.getenv("AZURE_PHONE_NUMBER")
3434

3535
async def sms_token_credential_auth_async(self):
3636
# To use Azure Active Directory Authentication (DefaultAzureCredential) make sure to have

sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def setUp(self):
3737
self.recording_processors.extend([
3838
BodyReplacerProcessor(keys=["to", "from", "messageId", "repeatabilityRequestId", "repeatabilityFirstSent"])])
3939
else:
40-
self.phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
40+
self.phone_number = os.getenv("AZURE_PHONE_NUMBER")
4141
self.recording_processors.extend([
4242
BodyReplacerProcessor(keys=["to", "from", "messageId", "repeatabilityRequestId", "repeatabilityFirstSent"]),
4343
ResponseReplacerProcessor(keys=[self._resource_name])])

sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def setUp(self):
3636
self.recording_processors.extend([
3737
BodyReplacerProcessor(keys=["to", "from", "messageId", "repeatabilityRequestId", "repeatabilityFirstSent"])])
3838
else:
39-
self.phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
39+
self.phone_number = os.getenv("AZURE_PHONE_NUMBER")
4040
self.recording_processors.extend([
4141
BodyReplacerProcessor(keys=["to", "from", "messageId", "repeatabilityRequestId", "repeatabilityFirstSent"]),
4242
ResponseReplacerProcessor(keys=[self._resource_name])])

0 commit comments

Comments
 (0)