From a9b3e995ac486ddf9be057e940c116e7d1c97384 Mon Sep 17 00:00:00 2001 From: Mariana Rios Flores Date: Thu, 19 Nov 2020 14:02:22 -0800 Subject: [PATCH] enable ci in westus2 and new SKU (#17061) --- sdk/textanalytics/test-resources.json | 15 +++++++++++++-- sdk/textanalytics/tests.yml | 5 ++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/sdk/textanalytics/test-resources.json b/sdk/textanalytics/test-resources.json index 5a6954c8928d..33021bb39c81 100644 --- a/sdk/textanalytics/test-resources.json +++ b/sdk/textanalytics/test-resources.json @@ -51,6 +51,7 @@ }, "variables": { "uniqueSubDomainName": "[format('{0}-{1}', parameters('baseName'), parameters('endpointPrefix'))]", + "endpointValue": "[format('https://{0}-{1}{2}', parameters('baseName'), parameters('endpointPrefix'), parameters('endpointSuffix'))]" }, "resources": [ { @@ -59,12 +60,22 @@ "name": "[variables('uniqueSubDomainName')]", "location":"[parameters('location')]", "sku": { - "name": "S0" + "name": "S" }, "kind": "TextAnalytics", "properties": { "customSubDomainName": "[variables('uniqueSubDomainName')]" } } - ] + ], + "outputs": { + "TEXT_ANALYTICS_API_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts',variables('uniqueSubDomainName')), '2017-04-18').key1]" + }, + "TEXT_ANALYTICS_ENDPOINT": { + "type": "string", + "value": "[variables('endpointValue')]" + } + } } diff --git a/sdk/textanalytics/tests.yml b/sdk/textanalytics/tests.yml index 323b26e8fc3f..c244958906d6 100644 --- a/sdk/textanalytics/tests.yml +++ b/sdk/textanalytics/tests.yml @@ -4,6 +4,5 @@ extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: ServiceDirectory: textanalytics - EnvVars: - TEXT_ANALYTICS_API_KEY: $(net-textanalytics-test-api-key) - TEXT_ANALYTICS_ENDPOINT: $(net-textanalytics-test-ppe-endpoint-string) + Clouds: 'Preview' + UnsupportedClouds: 'China'