diff --git a/sdk/communication/azure-communication-chat/samples/chat_client_sample.py b/sdk/communication/azure-communication-chat/samples/chat_client_sample.py index 43aa91217056..050e12f8a8c5 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_client_sample.py +++ b/sdk/communication/azure-communication-chat/samples/chat_client_sample.py @@ -28,9 +28,9 @@ class ChatClientSamples(object): from azure.communication.identity import CommunicationIdentityClient - connection_string = os.environ.get("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING", None) + connection_string = os.environ.get("COMMUNICATION_SAMPLES_CONNECTION_STRING", None) if not connection_string: - raise ValueError("Set AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING env before run this sample.") + raise ValueError("Set COMMUNICATION_SAMPLES_CONNECTION_STRING env before run this sample.") identity_client = CommunicationIdentityClient.from_connection_string(connection_string) user = identity_client.create_user() diff --git a/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py b/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py index f13e96b78a7f..964d51241049 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py +++ b/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py @@ -28,9 +28,9 @@ class ChatClientSamplesAsync(object): from azure.communication.identity import CommunicationIdentityClient - connection_string = os.environ.get("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING", None) + connection_string = os.environ.get("COMMUNICATION_SAMPLES_CONNECTION_STRING", None) if not connection_string: - raise ValueError("Set AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING env before run this sample.") + raise ValueError("Set COMMUNICATION_SAMPLES_CONNECTION_STRING env before run this sample.") identity_client = CommunicationIdentityClient.from_connection_string(connection_string) user = identity_client.create_user() diff --git a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py index efffc268bc86..1d082a08426e 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py +++ b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py @@ -32,9 +32,9 @@ class ChatThreadClientSamples(object): ChatClient, CommunicationTokenCredential ) - connection_string = os.environ.get("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING", None) + connection_string = os.environ.get("COMMUNICATION_SAMPLES_CONNECTION_STRING", None) if not connection_string: - raise ValueError("Set AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING env before run this sample.") + raise ValueError("Set COMMUNICATION_SAMPLES_CONNECTION_STRING env before run this sample.") identity_client = CommunicationIdentityClient.from_connection_string(connection_string) user = identity_client.create_user() diff --git a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py index d2bdc60bcadb..2a2853adba4d 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py +++ b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py @@ -31,9 +31,9 @@ class ChatThreadClientSamplesAsync(object): from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential from azure.communication.identity import CommunicationIdentityClient - connection_string = os.environ.get("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING", None) + connection_string = os.environ.get("COMMUNICATION_SAMPLES_CONNECTION_STRING", None) if not connection_string: - raise ValueError("Set AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING env before run this sample.") + raise ValueError("Set COMMUNICATION_SAMPLES_CONNECTION_STRING env before run this sample.") identity_client = CommunicationIdentityClient.from_connection_string(connection_string) user = identity_client.create_user() diff --git a/sdk/communication/azure-communication-chat/tests/_shared/testcase.py b/sdk/communication/azure-communication-chat/tests/_shared/testcase.py index 74b38b63a494..82b95493cc58 100644 --- a/sdk/communication/azure-communication-chat/tests/_shared/testcase.py +++ b/sdk/communication/azure-communication-chat/tests/_shared/testcase.py @@ -75,7 +75,7 @@ def setUp(self): if self.is_playback(): self.connection_str = "endpoint=https://sanitized/;accesskey=fake===" else: - self.connection_str = os.getenv('COMMUNICATION_CONNECTION_STRING') + self.connection_str = os.getenv('COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING') endpoint, _ = parse_connection_str(self.connection_str) self._resource_name = endpoint.split(".")[0] self.scrubber.register_name_pair(self._resource_name, "sanitized") diff --git a/sdk/communication/azure-communication-identity/samples/identity_samples.py b/sdk/communication/azure-communication-identity/samples/identity_samples.py index 9f32150bf0d2..991535a0d8bc 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples.py @@ -14,7 +14,7 @@ USAGE: python identity_samples.py Set the environment variables with your own values before running the sample: - 2) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - the connection string in your ACS account + 2) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS account 3) AZURE_CLIENT_ID - the client ID of your active directory application 4) AZURE_CLIENT_SECRET - the secret of your active directory application 5) AZURE_TENANT_ID - the tenant ID of your active directory application @@ -25,7 +25,7 @@ class CommunicationIdentityClientSamples(object): def __init__(self): - self.connection_string = os.getenv('COMMUNICATION_CONNECTION_STRING') + self.connection_string = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') self.client_id = os.getenv('AZURE_CLIENT_ID') self.client_secret = os.getenv('AZURE_CLIENT_SECRET') self.tenant_id = os.getenv('AZURE_TENANT_ID') diff --git a/sdk/communication/azure-communication-identity/samples/identity_samples_async.py b/sdk/communication/azure-communication-identity/samples/identity_samples_async.py index dd5abbb6e132..03cb88768f0e 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples_async.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples_async.py @@ -15,7 +15,7 @@ python identity_samples_async.py Set the environment variables with your own values before running the sample: 1) AZURE_COMMUNICATION_SERVICE_ENDPOINT - Communication Service endpoint url - 2) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - the connection string in your ACS account + 2) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS account 3) AZURE_CLIENT_ID - the client ID of your active directory application 4) AZURE_CLIENT_SECRET - the secret of your active directory application 5) AZURE_TENANT_ID - the tenant ID of your active directory application @@ -28,7 +28,7 @@ class CommunicationIdentityClientSamples(object): def __init__(self): - self.connection_string = os.getenv('COMMUNICATION_CONNECTION_STRING') + self.connection_string = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') self.endpoint = os.getenv('AZURE_COMMUNICATION_SERVICE_ENDPOINT') self.client_id = os.getenv('AZURE_CLIENT_ID') self.client_secret = os.getenv('AZURE_CLIENT_SECRET') diff --git a/sdk/communication/azure-communication-identity/tests/_shared/communication_service_preparer.py b/sdk/communication/azure-communication-identity/tests/_shared/communication_service_preparer.py index 5fedd006201d..4f8eccb5d19f 100644 --- a/sdk/communication/azure-communication-identity/tests/_shared/communication_service_preparer.py +++ b/sdk/communication/azure-communication-identity/tests/_shared/communication_service_preparer.py @@ -8,5 +8,5 @@ CommunicationPreparer = functools.partial( PowerShellPreparer, "communication", - communication_connection_string="endpoint=https://sanitized.communication.azure.com/;accesskey=fake===" + communication_livetest_dynamic_connection_string="endpoint=https://sanitized.communication.azure.com/;accesskey=fake===" ) diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py index a01a44c28e35..d1df7304fbf3 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py @@ -34,8 +34,8 @@ def setUp(self): URIIdentityReplacer()]) @CommunicationPreparer() - def test_create_user_from_managed_identity(self, communication_connection_string): - endpoint, access_key = parse_connection_str(communication_connection_string) + def test_create_user_from_managed_identity(self, communication_livetest_dynamic_connection_string): + endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -51,17 +51,17 @@ def test_create_user_from_managed_identity(self, communication_connection_string assert user.properties.get('id') is not None @CommunicationPreparer() - def test_create_user(self, communication_connection_string): + def test_create_user(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) user = identity_client.create_user() @CommunicationPreparer() - def test_create_user_and_token(self, communication_connection_string): + def test_create_user_and_token(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT]) @@ -70,8 +70,8 @@ def test_create_user_and_token(self, communication_connection_string): assert token_response.token is not None @CommunicationPreparer() - def test_get_token_from_managed_identity(self, communication_connection_string): - endpoint, access_key = parse_connection_str(communication_connection_string) + def test_get_token_from_managed_identity(self, communication_livetest_dynamic_connection_string): + endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -90,9 +90,9 @@ def test_get_token_from_managed_identity(self, communication_connection_string): assert token_response.token is not None @CommunicationPreparer() - def test_get_token(self, communication_connection_string): + def test_get_token(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) user = identity_client.create_user() @@ -103,8 +103,8 @@ def test_get_token(self, communication_connection_string): assert token_response.token is not None @CommunicationPreparer() - def test_revoke_tokens_from_managed_identity(self, communication_connection_string): - endpoint, access_key = parse_connection_str(communication_connection_string) + def test_revoke_tokens_from_managed_identity(self, communication_livetest_dynamic_connection_string): + endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -124,9 +124,9 @@ def test_revoke_tokens_from_managed_identity(self, communication_connection_stri assert token_response.token is not None @CommunicationPreparer() - def test_revoke_tokens(self, communication_connection_string): + def test_revoke_tokens(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) user = identity_client.create_user() @@ -138,8 +138,8 @@ def test_revoke_tokens(self, communication_connection_string): assert token_response.token is not None @CommunicationPreparer() - def test_delete_user_from_managed_identity(self, communication_connection_string): - endpoint, access_key = parse_connection_str(communication_connection_string) + def test_delete_user_from_managed_identity(self, communication_livetest_dynamic_connection_string): + endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -157,9 +157,9 @@ def test_delete_user_from_managed_identity(self, communication_connection_string assert user.properties.get('id') is not None @CommunicationPreparer() - def test_delete_user(self, communication_connection_string): + def test_delete_user(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) user = identity_client.create_user() @@ -169,9 +169,9 @@ def test_delete_user(self, communication_connection_string): assert user.properties.get('id') is not None @CommunicationPreparer() - def test_create_user_and_token_with_no_scopes(self, communication_connection_string): + def test_create_user_and_token_with_no_scopes(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) @@ -179,9 +179,9 @@ def test_create_user_and_token_with_no_scopes(self, communication_connection_str user, token_response = identity_client.create_user_and_token(scopes=None) @CommunicationPreparer() - def test_delete_user_with_no_user(self, communication_connection_string): + def test_delete_user_with_no_user(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) @@ -189,9 +189,9 @@ def test_delete_user_with_no_user(self, communication_connection_string): identity_client.delete_user(user=None) @CommunicationPreparer() - def test_revoke_tokens_with_no_user(self, communication_connection_string): + def test_revoke_tokens_with_no_user(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) @@ -199,9 +199,9 @@ def test_revoke_tokens_with_no_user(self, communication_connection_string): identity_client.revoke_tokens(user=None) @CommunicationPreparer() - def test_get_token_with_no_user(self, communication_connection_string): + def test_get_token_with_no_user(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) @@ -209,9 +209,9 @@ def test_get_token_with_no_user(self, communication_connection_string): token_response = identity_client.get_token(user=None, scopes=[CommunicationTokenScope.CHAT]) @CommunicationPreparer() - def test_get_token_with_no_scopes(self, communication_connection_string): + def test_get_token_with_no_scopes(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) user = identity_client.create_user() diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py index 8a71fc945070..75f73061a89a 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py @@ -33,8 +33,8 @@ def setUp(self): URIIdentityReplacer()]) @CommunicationPreparer() - async def test_create_user_from_managed_identity(self, communication_connection_string): - endpoint, access_key = parse_connection_str(communication_connection_string) + async def test_create_user_from_managed_identity(self, communication_livetest_dynamic_connection_string): + endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -51,9 +51,9 @@ async def test_create_user_from_managed_identity(self, communication_connection_ assert user.properties.get('id') is not None @CommunicationPreparer() - async def test_create_user(self, communication_connection_string): + async def test_create_user(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) async with identity_client: @@ -62,9 +62,9 @@ async def test_create_user(self, communication_connection_string): assert user.properties.get('id') is not None @CommunicationPreparer() - async def test_create_user_and_token(self, communication_connection_string): + async def test_create_user_and_token(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) async with identity_client: @@ -74,8 +74,8 @@ async def test_create_user_and_token(self, communication_connection_string): assert token_response.token is not None @CommunicationPreparer() - async def test_get_token_from_managed_identity(self, communication_connection_string): - endpoint, access_key = parse_connection_str(communication_connection_string) + async def test_get_token_from_managed_identity(self, communication_livetest_dynamic_connection_string): + endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -94,9 +94,9 @@ async def test_get_token_from_managed_identity(self, communication_connection_st assert token_response.token is not None @CommunicationPreparer() - async def test_get_token(self, communication_connection_string): + async def test_get_token(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) async with identity_client: @@ -107,8 +107,8 @@ async def test_get_token(self, communication_connection_string): assert token_response.token is not None @CommunicationPreparer() - async def test_revoke_tokens_from_managed_identity(self, communication_connection_string): - endpoint, access_key = parse_connection_str(communication_connection_string) + async def test_revoke_tokens_from_managed_identity(self, communication_livetest_dynamic_connection_string): + endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -128,9 +128,9 @@ async def test_revoke_tokens_from_managed_identity(self, communication_connectio assert token_response.token is not None @CommunicationPreparer() - async def test_revoke_tokens(self, communication_connection_string): + async def test_revoke_tokens(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) async with identity_client: @@ -142,8 +142,8 @@ async def test_revoke_tokens(self, communication_connection_string): assert token_response.token is not None @CommunicationPreparer() - async def test_delete_user_from_managed_identity(self, communication_connection_string): - endpoint, access_key = parse_connection_str(communication_connection_string) + async def test_delete_user_from_managed_identity(self, communication_livetest_dynamic_connection_string): + endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -161,9 +161,9 @@ async def test_delete_user_from_managed_identity(self, communication_connection_ assert user.properties.get('id') is not None @CommunicationPreparer() - async def test_delete_user(self, communication_connection_string): + async def test_delete_user(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) async with identity_client: @@ -173,9 +173,9 @@ async def test_delete_user(self, communication_connection_string): assert user.properties.get('id') is not None @CommunicationPreparer() - async def test_create_user_and_token_with_no_scopes(self, communication_connection_string): + async def test_create_user_and_token_with_no_scopes(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) @@ -184,9 +184,9 @@ async def test_create_user_and_token_with_no_scopes(self, communication_connecti user, token_response = await identity_client.create_user_and_token(scopes=None) @CommunicationPreparer() - async def test_delete_user_with_no_user(self, communication_connection_string): + async def test_delete_user_with_no_user(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) @@ -195,9 +195,9 @@ async def test_delete_user_with_no_user(self, communication_connection_string): await identity_client.delete_user(user=None) @CommunicationPreparer() - async def test_revoke_tokens_with_no_user(self, communication_connection_string): + async def test_revoke_tokens_with_no_user(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) @@ -206,9 +206,9 @@ async def test_revoke_tokens_with_no_user(self, communication_connection_string) await identity_client.revoke_tokens(user=None) @CommunicationPreparer() - async def test_get_token_with_no_user(self, communication_connection_string): + async def test_get_token_with_no_user(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) @@ -217,9 +217,9 @@ async def test_get_token_with_no_user(self, communication_connection_string): token_response = await identity_client.get_token(user=None, scopes=[CommunicationTokenScope.CHAT]) @CommunicationPreparer() - async def test_get_token_with_no_scopes(self, communication_connection_string): + async def test_get_token_with_no_scopes(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - communication_connection_string, + communication_livetest_dynamic_connection_string, http_logging_policy=get_http_logging_policy() ) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample.py b/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample.py index 235b59ac7edc..c6a94e5b3b90 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample.py @@ -13,7 +13,7 @@ USAGE: python get_purchased_phone_number_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to get its information """ @@ -23,7 +23,7 @@ PhoneNumbersClient ) -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") # e.g. "+18001234567" phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample_async.py b/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample_async.py index 95622720a50c..2baeb4f8dff8 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample_async.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample_async.py @@ -13,7 +13,7 @@ USAGE: python get_purchased_phone_number_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to get its information """ @@ -24,7 +24,7 @@ PhoneNumbersClient ) -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") # e.g. "+18001234567" phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/list_purchased_phone_numbers_sample.py b/sdk/communication/azure-communication-phonenumbers/samples/list_purchased_phone_numbers_sample.py index e66fc74a3451..a4b1bacce68c 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/list_purchased_phone_numbers_sample.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/list_purchased_phone_numbers_sample.py @@ -13,7 +13,7 @@ USAGE: python list_purchased_phone_numbers_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service """ @@ -22,7 +22,7 @@ PhoneNumbersClient ) -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) def list_purchased_phone_numbers(): diff --git a/sdk/communication/azure-communication-phonenumbers/samples/list_purchased_phone_numbers_sample_async.py b/sdk/communication/azure-communication-phonenumbers/samples/list_purchased_phone_numbers_sample_async.py index 55699ec65d5e..fe063d4f4402 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/list_purchased_phone_numbers_sample_async.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/list_purchased_phone_numbers_sample_async.py @@ -13,7 +13,7 @@ USAGE: python list_purchased_phone_numbers_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service """ @@ -23,7 +23,7 @@ PhoneNumbersClient ) -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) async def list_purchased_phone_numbers(): diff --git a/sdk/communication/azure-communication-phonenumbers/samples/managed_identity_authentication_sample.py b/sdk/communication/azure-communication-phonenumbers/samples/managed_identity_authentication_sample.py index 80a43ea61e12..e61ef7469769 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/managed_identity_authentication_sample.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/managed_identity_authentication_sample.py @@ -13,7 +13,7 @@ USAGE: python managed_identity_authentication_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string of your Azure Communication Service resource + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string of your Azure Communication Service resource 2) AZURE_CLIENT_ID - The id of your registered Azure Active Directory application 3) AZURE_CLIENT_SECRET - A client secret created for your registered AAD aplication 4) AZURE_TENANT_ID - The tenant in which this application can be found @@ -24,7 +24,7 @@ from azure.communication.phonenumbers._shared.utils import parse_connection_str from azure.identity import DefaultAzureCredential -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') endpoint, _ = parse_connection_str(connection_str) phone_numbers_client = PhoneNumbersClient(endpoint, DefaultAzureCredential()) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/purchase_phone_number_sample.py b/sdk/communication/azure-communication-phonenumbers/samples/purchase_phone_number_sample.py index ec16e3913222..96a06f9b4089 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/purchase_phone_number_sample.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/purchase_phone_number_sample.py @@ -13,7 +13,7 @@ USAGE: python purchase_phone_number_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service 2) AZURE_COMMUNICATION_SERVICE_SEARCH_ID_TO_PURCHASE - The search id for the phone number you reserved and want to purchase """ @@ -22,7 +22,7 @@ PhoneNumbersClient ) -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') search_id = os.getenv("AZURE_COMMUNICATION_SERVICE_SEARCH_ID_TO_PURCHASE") phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/purchase_phone_number_sample_async.py b/sdk/communication/azure-communication-phonenumbers/samples/purchase_phone_number_sample_async.py index fa562d0538ce..59fb5dff340d 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/purchase_phone_number_sample_async.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/purchase_phone_number_sample_async.py @@ -13,7 +13,7 @@ USAGE: python purchase_phone_number_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service 2) AZURE_COMMUNICATION_SERVICE_SEARCH_ID_TO_PURCHASE - The search id for the phone number you reserved and want to purchase @@ -25,7 +25,7 @@ PhoneNumbersClient ) -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') search_id = os.getenv("AZURE_COMMUNICATION_SERVICE_SEARCH_ID_TO_PURCHASE") phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample.py b/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample.py index a06804445d34..d782b13a8ca9 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample.py @@ -13,7 +13,7 @@ USAGE: python release_phone_number_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release """ @@ -23,7 +23,7 @@ PhoneNumbersClient ) -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_number_to_release = os.getenv( "AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567" ) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample_async.py b/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample_async.py index ac882f265fe2..f3d71f375102 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample_async.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample_async.py @@ -13,7 +13,7 @@ USAGE: python release_phone_number_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release """ @@ -24,7 +24,7 @@ PhoneNumbersClient ) -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_number_to_release = os.getenv( "AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567" ) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/search_available_phone_numbers_sample.py b/sdk/communication/azure-communication-phonenumbers/samples/search_available_phone_numbers_sample.py index 6c87415fc72e..0488fb58d8f4 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/search_available_phone_numbers_sample.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/search_available_phone_numbers_sample.py @@ -13,7 +13,7 @@ USAGE: python search_available_phone_numbers_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service """ @@ -26,7 +26,7 @@ PhoneNumberCapabilityType ) -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) def search_available_phone_numbers(): diff --git a/sdk/communication/azure-communication-phonenumbers/samples/search_available_phone_numbers_sample_async.py b/sdk/communication/azure-communication-phonenumbers/samples/search_available_phone_numbers_sample_async.py index 1024ef71fcb9..a5416f0e1d14 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/search_available_phone_numbers_sample_async.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/search_available_phone_numbers_sample_async.py @@ -13,7 +13,7 @@ USAGE: python search_available_phone_numbers_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service """ @@ -27,7 +27,7 @@ PhoneNumberCapabilityType ) -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) async def search_available_phone_numbers(): diff --git a/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample.py b/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample.py index a64cd5f86def..dd9e671fc1d8 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample.py @@ -13,7 +13,7 @@ USAGE: python update_phone_number_capabilities_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to update """ @@ -24,7 +24,7 @@ PhoneNumberCapabilityType ) -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_number_to_update = os.getenv( "AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER" # e.g. "+15551234567" ) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample_async.py b/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample_async.py index da51b48c6218..d32971e4bf33 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample_async.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample_async.py @@ -13,7 +13,7 @@ USAGE: python update_phone_number_capabilities_sample.py Set the environment variables with your own values before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - The connection string including your endpoint and + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to update """ @@ -23,7 +23,7 @@ from azure.communication.phonenumbers.aio import PhoneNumbersClient from azure.communication.phonenumbers import PhoneNumberCapabilityType -connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') +connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_number_to_update = os.getenv( "AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER" # e.g. "+15551234567" ) diff --git a/sdk/communication/azure-communication-phonenumbers/test/_shared/testcase.py b/sdk/communication/azure-communication-phonenumbers/test/_shared/testcase.py index fa09dc67deb0..5902ddd6e1ea 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/_shared/testcase.py +++ b/sdk/communication/azure-communication-phonenumbers/test/_shared/testcase.py @@ -78,7 +78,7 @@ def setUp(self): if self.is_playback(): self.connection_str = "endpoint=https://sanitized.communication.azure.com/;accesskey=fake===" else: - self.connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') + self.connection_str = os.getenv('COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING') endpoint, _ = parse_connection_str(self.connection_str) self._resource_name = endpoint.split(".")[0] self.scrubber.register_name_pair(self._resource_name, "sanitized") \ No newline at end of file diff --git a/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample.py b/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample.py index 6254d388103c..8f9a3fd64ff2 100644 --- a/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample.py +++ b/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample.py @@ -14,7 +14,7 @@ USAGE: python send_sms_to_multiple_recipients_sample.py Set the environment variable with your own value before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - the connection string in your ACS account + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS account """ import os @@ -25,7 +25,7 @@ class SmsMultipleRecipientsSample(object): - connection_string = os.getenv("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING") + connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING") phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") def send_sms_to_multiple_recipients(self): diff --git a/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample_async.py b/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample_async.py index 5c94627e2207..0b511493664c 100644 --- a/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample_async.py +++ b/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample_async.py @@ -14,7 +14,7 @@ USAGE: python send_sms_to_multiple_recipients_sample_async.py Set the environment variable with your own value before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - the connection string in your ACS account + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS account """ import os @@ -26,7 +26,7 @@ class SmsMultipleRecipientsSampleAsync(object): - connection_string = os.getenv("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING") + connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING") phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") async def send_sms_to_multiple_recipients_async(self): diff --git a/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample.py b/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample.py index 64acd72c6ada..f7b6520ac86b 100644 --- a/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample.py +++ b/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample.py @@ -14,7 +14,7 @@ USAGE: python send_sms_to_single_recipient_sample.py Set the environment variable with your own value before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - the connection string in your ACS account + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS account """ import os @@ -25,7 +25,7 @@ class SmsSingleRecipientSample(object): - connection_string = os.getenv("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING") + connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING") phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") def send_sms_to_single_recipient(self): diff --git a/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample_async.py b/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample_async.py index ca723e130fe8..353ffe80a211 100644 --- a/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample_async.py +++ b/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample_async.py @@ -14,7 +14,7 @@ USAGE: python send_sms_to_single_recipient_sample_async.py Set the environment variable with your own value before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING - the connection string in your ACS account + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS account """ import os @@ -26,7 +26,7 @@ class SmsSingleRecipientSampleAsync(object): - connection_string = os.getenv("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING") + connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING") phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") async def send_sms_to_single_recipient_async(self): diff --git a/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample_async.py b/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample_async.py index 22585c039faf..aa60d746bcb9 100644 --- a/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample_async.py +++ b/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample_async.py @@ -14,7 +14,7 @@ USAGE: python sms_token_credential_auth_sample_async.py Set the environment variable with your own value before running the sample: - 1) AZURE_COMMUNICATION_SERVICE_ENDPOINT - the endpoint in your ACS account + 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS account """ import os @@ -28,7 +28,7 @@ class SmsTokenCredentialAuthSampleAsync(object): - connection_string = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') + connection_string = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") async def sms_token_credential_auth_async(self): diff --git a/sdk/communication/azure-communication-sms/tests/_shared/testcase.py b/sdk/communication/azure-communication-sms/tests/_shared/testcase.py index 871a367650db..f8b278e11fd0 100644 --- a/sdk/communication/azure-communication-sms/tests/_shared/testcase.py +++ b/sdk/communication/azure-communication-sms/tests/_shared/testcase.py @@ -85,7 +85,7 @@ def setUp(self): if self.is_playback(): self.connection_str = "endpoint=https://sanitized.communication.azure.com/;accesskey=fake===" else: - self.connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') + self.connection_str = os.getenv('COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING') endpoint, _ = parse_connection_str(self.connection_str) self._resource_name = endpoint.split(".")[0] self.scrubber.register_name_pair(self._resource_name, "sanitized") diff --git a/sdk/communication/test-resources.json b/sdk/communication/test-resources.json index bb6f0c2173d3..c73132248c39 100644 --- a/sdk/communication/test-resources.json +++ b/sdk/communication/test-resources.json @@ -76,7 +76,7 @@ "type": "string", "value": "[parameters('testApplicationSecret')]" }, - "COMMUNICATION_CONNECTION_STRING": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": { "type": "string", "value": "[listKeys(resourceId('Microsoft.Communication/CommunicationServices',variables('uniqueSubDomainName')), '2020-08-20-preview').primaryConnectionString]" }