From 4297de20b664e79d6eb90d40c7f5745c84e7283a Mon Sep 17 00:00:00 2001 From: Orlando Watson Date: Fri, 22 Jan 2021 15:38:33 -0800 Subject: [PATCH] [communication] fix endpoint env var name (#18138) * fix endpoint env var name * add COMMUNICATION_ACCESS_KEY env var * change key1 to primaryKey --- sdk/communication/test-resources.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk/communication/test-resources.json b/sdk/communication/test-resources.json index ef93f4595148..e176cc028938 100644 --- a/sdk/communication/test-resources.json +++ b/sdk/communication/test-resources.json @@ -50,10 +50,14 @@ "type": "string", "value": "[listKeys(resourceId('Microsoft.Communication/CommunicationServices',variables('uniqueSubDomainName')), '2020-08-20-preview').primaryConnectionString]" }, - "COMMUNICATION_ENDPOINT_STRING": { + "COMMUNICATION_ENDPOINT": { "type": "string", "value": "[concat('https://', parameters('baseName'), '-', parameters('endpointPrefix'), '.communication.azure.com')]" }, + "COMMUNICATION_ACCESS_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.Communication/CommunicationServices',variables('uniqueSubDomainName')), '2020-08-20-preview').primaryKey]" + }, "RESOURCE_GROUP_NAME": { "type": "string", "value": "[resourceGroup().Name]"