diff --git a/sdk/communication/azure-communication-chat/tests/_shared/testcase.py b/sdk/communication/azure-communication-chat/tests/_shared/testcase.py index c35b897947c9..74b38b63a494 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('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') + self.connection_str = os.getenv('COMMUNICATION_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 b659c932fcb2..9f32150bf0d2 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples.py @@ -25,7 +25,7 @@ class CommunicationIdentityClientSamples(object): def __init__(self): - self.connection_string = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') + self.connection_string = os.getenv('COMMUNICATION_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 6e356f15d0c5..dd5abbb6e132 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples_async.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples_async.py @@ -28,7 +28,7 @@ class CommunicationIdentityClientSamples(object): def __init__(self): - self.connection_string = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') + self.connection_string = os.getenv('COMMUNICATION_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/test-resources.json b/sdk/communication/test-resources.json index b8553cb82f5e..bb6f0c2173d3 100644 --- a/sdk/communication/test-resources.json +++ b/sdk/communication/test-resources.json @@ -81,4 +81,4 @@ "value": "[listKeys(resourceId('Microsoft.Communication/CommunicationServices',variables('uniqueSubDomainName')), '2020-08-20-preview').primaryConnectionString]" } } -} \ No newline at end of file +}