Finding QnAKnowledgebaseId and QnASubscriptionKey to configure the new Azure Bot Service

Bot Service went through an overhaul again; the configuration to connect your Bot Service to QnAMaker is different now. I am not sure for how long the information here will stay relevant but it is how you configure your Azure Bot Service to talk to at the time of writing this post.

When you use the new Bot Service template in Azure to deploy your QnAMaker bot, there are 2 settings you need to configure in App Settings - QnAKnowledgebaseId QnASubscriptionKey.

Here's where you can find them:

Go to click on your bot's "View Code"

The first string right after "knowledgebases" is your QnAKnowledgebaseId, whereas the one right after Ocp-Apim-Subscription-Key is your QnASubscriptionKey


Hope that helps.

Comments (0)

Skip to main content
The information in this weblog is provided “AS IS” with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the author’s discretion. All code samples are provided “AS IS” without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The inclusion of any link does not imply endorsement by Microsoft of the linked site.