Skip to content

Commit

Permalink
101-cognitive-services-transalate
Browse files Browse the repository at this point in the history
Update template for Azure4student and matched azuredeploy to other cognitive services
  • Loading branch information
leestott committed Nov 10, 2019
1 parent 4a9b441 commit 0e1275f
Showing 1 changed file with 40 additions and 33 deletions.
73 changes: 40 additions & 33 deletions 101-cognitive-services-translate/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,46 @@
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"AccountsName": {
"defaultValue": "translate",
"metadata": {
"description": "Display name of Text Translation API account"
"accountName": {
"defaultValue": "translate",
"metadata": {
"description": "Display name of Text Translation API account"
},
"type": "string"
},
"type": "string"
},
"SKU": {
"type": "string",
"metadata": {
"description": "SKU for TextTranslation API"
"SKU": {
"type": "string",
"metadata": {
"description": "SKU for Computer Vision API"
},
"defaultValue": "F0",
"allowedValues": [
"F0",
"S1",
"S2",
"S3",
"S4"
]
},
"defaultValue": "F0",
"allowedValues": [
"F0",
"S1",
"S2",
"S3",
"S4"
]
}
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for all resources."
}
}
},
"resources": [
{
"type": "Microsoft.CognitiveServices/accounts",
"sku": {
"name": "[parameters('SKU')]"
},
"kind": "TextTranslation",
"name": "[parameters('AccountsName')]",
"apiVersion": "2017-04-18",
"location": "global",
"properties": {}
}
]
}
"resources": [
{
"type": "Microsoft.CognitiveServices/accounts",
"sku": {
"name": "[parameters('SKU')]"
},
"kind": "TextTranslation",
"name": "[parameters('accountName')]",
"apiVersion": "2016-02-01-preview",
"location": "[parameters('Location')]",
"properties": {},
}
]
}

0 comments on commit 0e1275f

Please sign in to comment.