Skip to content

Commit abb1fe3

Browse files
authored
Update text analytics to enable live testing in sovereign clouds for multiple services (Azure#26823)
* Sovereign clouds tests with Text Analytics * Update test-resources.json.disabled remove invalid changes * Update tests.yml Remove Canary cloud Co-authored-by: zedy <[email protected]>
1 parent b2be9f5 commit abb1fe3

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

sdk/textanalytics/test-resources.json.disabled

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,26 @@
4444
"defaultValue": "textanalytics",
4545
"type": "string"
4646
},
47-
"endpointSuffix": {
47+
"cognitiveServicesEndpointSuffix": {
4848
"defaultValue": ".cognitiveservices.azure.com",
4949
"type": "string"
50+
"type": "string",
51+
"metadata": {
52+
"description": "Endpoint suffix for sovereign clouds, requies the preceeding '.'. The default uses the public Azure Cloud (.cognitiveservices.azure.com)"
53+
}
54+
},
55+
"textAnalyticsSku": {
56+
"type": "string",
57+
"defaultValue": "S",
58+
"metadata": {
59+
"description": "Text Analytics SKU to deploy. The default is 'S'"
60+
}
5061
}
5162
},
5263
"variables": {
5364
"roleDefinitionId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/a97b65f3-24c7-4388-baec-2e87135dc908')]",
5465
"uniqueSubDomainName": "[format('{0}-{1}', parameters('baseName'), parameters('endpointPrefix'))]",
55-
"endpointValue": "[format('https://{0}-{1}{2}', parameters('baseName'), parameters('endpointPrefix'), parameters('endpointSuffix'))]"
66+
"endpointValue": "[format('https://{0}-{1}{2}', parameters('baseName'), parameters('endpointPrefix'), parameters('cognitiveServicesEndpointSuffix'))]"
5667
},
5768
"resources": [
5869
{
@@ -61,7 +72,7 @@
6172
"name": "[variables('uniqueSubDomainName')]",
6273
"location":"[parameters('location')]",
6374
"sku": {
64-
"name": "S"
75+
"name": "[parameters('textAnalyticsSku')]"
6576
},
6677
"kind": "TextAnalytics",
6778
"properties": {

sdk/textanalytics/tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ extends:
1010
Canary:
1111
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
1212
Location: 'centraluseuap'
13+
UsGov:
14+
SubscriptionConfiguration: $(sub-config-gov-test-resources)
15+
China:
16+
SubscriptionConfiguration: $(sub-config-cn-test-resources)
17+
SupportedClouds: 'Public,UsGov,China'
1318
# temporary env vars for custom text features
1419
EnvVars:
1520
AZURE_SUBSCRIPTION_ID: $(azure-subscription-id)

0 commit comments

Comments
 (0)