From 50ba14dea8d1d8aefe6e354a3155731d457922da Mon Sep 17 00:00:00 2001 From: Igor Sychev Date: Tue, 22 Aug 2017 16:27:26 +0300 Subject: [PATCH] Cognitve Services Translation API sample --- 101-cognitive-services-translate/README.md | 10 +++++ .../azuredeploy.json | 40 +++++++++++++++++++ .../azuredeploy.parameters.json | 6 +++ .../metadata.json | 7 ++++ 4 files changed, 63 insertions(+) create mode 100644 101-cognitive-services-translate/README.md create mode 100644 101-cognitive-services-translate/azuredeploy.json create mode 100644 101-cognitive-services-translate/azuredeploy.parameters.json create mode 100644 101-cognitive-services-translate/metadata.json diff --git a/101-cognitive-services-translate/README.md b/101-cognitive-services-translate/README.md new file mode 100644 index 000000000000..f33e49c7ec21 --- /dev/null +++ b/101-cognitive-services-translate/README.md @@ -0,0 +1,10 @@ +# Cognitve Services Translation API + + + + + + + + +This template deploys an Cognitve Services Translation API. \ No newline at end of file diff --git a/101-cognitive-services-translate/azuredeploy.json b/101-cognitive-services-translate/azuredeploy.json new file mode 100644 index 000000000000..8d8bd90a8e11 --- /dev/null +++ b/101-cognitive-services-translate/azuredeploy.json @@ -0,0 +1,40 @@ +{ + "$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" + }, + "type": "string" + }, + "SKU": { + "type": "string", + "metadata": { + "description": "SKU for TextTranslation API" + }, + "defaultValue": "F0", + "allowedValues": [ + "F0", + "S1", + "S2", + "S3", + "S4" + ] + } + }, + "resources": [ + { + "type": "Microsoft.CognitiveServices/accounts", + "sku": { + "name": "[parameters('SKU')]" + }, + "kind": "TextTranslation", + "name": "[parameters('AccountsName')]", + "apiVersion": "2016-02-01-preview", + "location": "global", + "properties": {} + } + ] +} \ No newline at end of file diff --git a/101-cognitive-services-translate/azuredeploy.parameters.json b/101-cognitive-services-translate/azuredeploy.parameters.json new file mode 100644 index 000000000000..de998a2955b9 --- /dev/null +++ b/101-cognitive-services-translate/azuredeploy.parameters.json @@ -0,0 +1,6 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + } +} \ No newline at end of file diff --git a/101-cognitive-services-translate/metadata.json b/101-cognitive-services-translate/metadata.json new file mode 100644 index 000000000000..7eda3e0c0380 --- /dev/null +++ b/101-cognitive-services-translate/metadata.json @@ -0,0 +1,7 @@ +{ + "itemDisplayName": "Cognitve Services Translation API", + "description": "A template for creating a new Cognitve Services Translation API", + "summary": "A template for creating a new Cognitve Services Translation API. Use this template as the framework for your custom deployment.", + "githubUsername": "sychevigor", + "dateUpdated": "2017-08-02" +} \ No newline at end of file