Unable to create knowledgebase for azure cognitive service (Error: “No Endpoint keys found.”)

≡放荡痞女 提交于 2020-05-13 14:31:07

问题


I am creating a new knowledge base connecting it to an already existing Azure Cognitive Service. But I am getting error: "No Endpoint keys found." when i click "Create KB".

See capture of the error:

My QnAMaker cognitive service has the endpoint


回答1:


It seems that there is sometimes the problem that the endpoint keys can only be found, if the Resource Group holding all resources for the QnA Maker Service (like App Service, Application Insights, Search Service and the Application Service Plan) is hosted in the same region as the QnA Maker Service itself.

Since the QnA Maker service can only be hosted in West US (as far a I know and was able to find: https://westus.dev.cognitive.microsoft.com/docs/services?page=2), the current workaround for this case is to create a new QnA Maker service with the resource group being hosted in the West US region. Then the creation of a knowledge base should work as always.

PS: seems like this issues was already reported, but the problem still occurs for me from time to time (https://github.com/OfficeDev/microsoft-teams-faqplusplus-app/issues/71)




回答2:


My resources and resource group were all in West US but I still got the same "No Endpoint keys found." error.

Eventually I figured out that the issue was related to my subscription levels. Make sure that they are all the same for all your created resources.

If you are using the deploy.ps1 script in the Virtual Assistant VS template, open the file at .\Deployment\Resources\template.json

That is a template for the resource creation. You can look through it to see exactly which resources will be created and what parameters are sent to Azure for each of the resources.

I am using a My Visual Studio subscription so it is registered as a free tier in Azure. What worked for me, is that I had to update all the "standard" subscriptions to free in the Parameters JSON array. I didn't update anything lower down for fear that it might interfere with the creation process too much.

An example is the appServicePlanSku parameter. It was set to

"appServicePlanSku": {
  "type": "object",
  "defaultValue": {
    "tier": "Standard",
    "name": "S1"
  }
}

I updated it to

"appServicePlanSku": {
  "type": "object",
  "defaultValue": {
    "tier": "Free",
    "name": "F0"
  }
}

I made multiple of these updates in the parameters array. After those changes, deleting the resource group for the 100th time and running the deployment script again, it worked.



来源:https://stackoverflow.com/questions/58230789/unable-to-create-knowledgebase-for-azure-cognitive-service-error-no-endpoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!