Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Knowledgebase is not getting created through Virtual Assistant template PowerShell script #3848

@pravinambekar

Description

@pravinambekar

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.
image

What are the steps to reproduce this issue?

  1. Getting the VA template provided by Microsoft Bot framework
  2. Customizing and configuring resources and template in the solution
  3. Logging to Azure account through PowerShell
  4. 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

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Needs TriageNeeds to be triaged for assignmentType: BugSomething isn't workingcustomer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions