What project is affected?
The QnAMaker based azure chatbot.
What language is this in?
Code for web app bot is written in c# and deployment is done using PowerShell script
What happens?
I am trying to deploy resources for Azure Web App bot, this is being done with help of Virtual Assistant Template,
The issue is when i am trying to execute PowerShell script (deploy.ps1) is does not create knowledgebase.
I can see related services are being created in azure (f.x Azure Cognitive service, search service, app service), but it is failing in PowerShell when it comes to creating knowledgebase.
Surprisingly similar set up successfully ran last time a few months ago, under different resource group, but now it is throwing error as shown in below screen shot.

What are the steps to reproduce this issue?
- Getting the VA template provided by Microsoft Bot framework
- Customizing and configuring resources and template in the solution
- Logging to Azure account through PowerShell
- Setting up correct subscription and then executing deploy.ps1 script for provisioning resources
What were you expecting to happen?
That all the mentioned services get created and knowledgebase also get created with help of .qna files defined during execution.
Can you share any logs, error output, etc.?
As shared above the PowerShell console throws error while creating KB and the log file from cognitivemodel.ps1 says :
Error: Cannot find module 'C:\Program Files\nodejs\node_modules@microsoft\botframework-cli\bin\run'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
Even after installing BotFramework-cli and the error in cognitive log file says:
Cannot find module 'C:\Users\XXX\AppData\Roaming\npm\node_modules@microsoft\botframework-cli\bin\run
Any screenshots or additional context?
Additional context would be that, the BotFramework module is already installed and i am afraid that either bot framework cli is not correctly working or have some issue in creating kb during script execution
Hello @lauren-mills Any suggestion greatly appreciated
as surprisingly for earlier it worked without any error, the procedure for provisioning resources through VA template is same.
#3779 is for reference
What project is affected?
The QnAMaker based azure chatbot.
What language is this in?
Code for web app bot is written in c# and deployment is done using PowerShell script
What happens?
I am trying to deploy resources for Azure Web App bot, this is being done with help of Virtual Assistant Template,

The issue is when i am trying to execute PowerShell script (deploy.ps1) is does not create knowledgebase.
I can see related services are being created in azure (f.x Azure Cognitive service, search service, app service), but it is failing in PowerShell when it comes to creating knowledgebase.
Surprisingly similar set up successfully ran last time a few months ago, under different resource group, but now it is throwing error as shown in below screen shot.
What are the steps to reproduce this issue?
What were you expecting to happen?
That all the mentioned services get created and knowledgebase also get created with help of .qna files defined during execution.
Can you share any logs, error output, etc.?
As shared above the PowerShell console throws error while creating KB and the log file from cognitivemodel.ps1 says :
Error: Cannot find module 'C:\Program Files\nodejs\node_modules@microsoft\botframework-cli\bin\run'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
Even after installing BotFramework-cli and the error in cognitive log file says:
Cannot find module 'C:\Users\XXX\AppData\Roaming\npm\node_modules@microsoft\botframework-cli\bin\run
Any screenshots or additional context?
Additional context would be that, the BotFramework module is already installed and i am afraid that either bot framework cli is not correctly working or have some issue in creating kb during script execution
Hello @lauren-mills Any suggestion greatly appreciated
as surprisingly for earlier it worked without any error, the procedure for provisioning resources through VA template is same.
#3779 is for reference