Skip to content

Commit

Permalink
Fix ARM template for textanalytics (#9661)
Browse files Browse the repository at this point in the history
Fix ARM template for textanalytics
  • Loading branch information
AlexanderSher authored Jan 28, 2020
1 parent 8d5028b commit bce1ab2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sdk/textanalytics/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@
"endpointPrefix": {
"defaultValue": "textanalytics",
"type": "string"
},
"endpointSuffix": {
"defaultValue": ".cognitiveservices.azure.com",
"type": "string"
}
},
"variables": {
"uniqueSubDomainName": "[format('{0}-{1}', parameters('baseName'), parameters('endpointPrefix'))]"
"uniqueSubDomainName": "[format('{0}-{1}', parameters('baseName'), parameters('endpointPrefix'))]",
"endpointValue": "[format('https://{0}-{1}{2}', parameters('baseName'), parameters('endpointPrefix'), parameters('endpointSuffix'))]"
},
"resources": [
{
Expand Down Expand Up @@ -78,7 +83,7 @@
},
"TEXT_ANALYTICS_SUBSCRIPTION_KEY": {
"type": "string",
"value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts',variables('uniqueSubDomainName')), '2017-04-18').value[0].key1]"
"value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts',variables('uniqueSubDomainName')), '2017-04-18').key1]"
},
"TEXT_ANALYTICS_ENDPOINT": {
"type": "string",
Expand Down

0 comments on commit bce1ab2

Please sign in to comment.