question

EnzhouWang-4530 avatar image
0 Votes"
EnzhouWang-4530 asked EnzhouWang-4530 commented

Does QnA Maker need to update the Azure Resource Manager templates for Azure Cognitive Services to use the latest version of the resource provider API?

I received the following notice from Microsoft. We deployed QnA Maker based chatbots and didn't configure Cognitive Services directly. Do we need to take any action? If we do, how? Thanks in advance.

97593-image.png


azure-qna-maker
image.png (44.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

YutongTie-MSFT avatar image
0 Votes"
YutongTie-MSFT answered EnzhouWang-4530 commented

Hello,

Thanks for reaching out to us. This is related to cases which you want to use ARM template to manage your server. Since the ARM template has been updated and the old one will be retired soon, when you do something like, for example, you want to create new service by using ARM template, you need the use the new one below:

 {
   "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
   "contentVersion": "1.0.0.0",
   "parameters": {
     "cognitiveServiceName": {
       "type": "string",
       "defaultValue": "[concat('CognitiveService-', uniqueString(resourceGroup().id))]",
       "metadata": {
         "description": "That name is the name of our application. It has to be unique.Type a name followed by your resource group name. (<name>-<resourceGroupName>)"
       }
     },
     "location": {
       "type": "string",
       "defaultValue": "[resourceGroup().location]",
       "metadata": {
         "description": "Location for all resources."
       }
     },
     "sku": {
       "type": "string",
       "defaultValue": "S0",
       "allowedValues": [
         "S0"
       ]
     }
   },
   "resources": [
     {
       "type": "Microsoft.CognitiveServices/accounts",
       "apiVersion": "2017-04-18",
       "name": "[parameters('cognitiveServiceName')]",
       "location": "[parameters('location')]",
       "sku": {
         "name": "[parameters('sku')]"
       },
       "kind": "CognitiveServices",
       "properties": {
         "statisticsEnabled": false
       }
     }
   ]
 }

The API version has been update on above. If you are not on this kind of scenario, there is no action you need to take.


Regards,
Yutong

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you. This is helpful.

0 Votes 0 ·