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

Cannot deploy a new assistant #1448

Closed
e-gonzalez opened this issue May 29, 2019 · 19 comments · Fixed by #1476
Closed

Cannot deploy a new assistant #1448

e-gonzalez opened this issue May 29, 2019 · 19 comments · Fixed by #1476
Assignees
Labels
Support Requesting assistance from the Support Team Type: Bug Something isn't working

Comments

@e-gonzalez
Copy link

Project

Name: Virtual Assistant Deloyment

Language: Typescript and C#

Description

The template "Quickstart: Create your first Virtual Assistant" is the one that correspond to this issue. I am trying to create and deploy an assistant.
The problem arrives at the 'deply your assistant'. I have just created a a new assistant and the deployment section prompt an error.

To Reproduce

To reproduce the issue, you should:
1. Verify all prerequisites are installed.
2. Creat a new assistant according to the instrucctions:
npm install -g generator-botbuilder-assistant
yo botbuilder-assistant
3. Deploy the assistant according to the instruccion:
.\Deployment\Scripts\deploy.ps1

Expected behavior

I have fill all the information and the error prompted in this last step.

Screenshots

image

@e-gonzalez e-gonzalez added the Type: Bug Something isn't working label May 29, 2019
@darrenj
Copy link
Contributor

darrenj commented May 29, 2019

Looks like QnAMaker isn't available in the Azure region you've provided. See https://github.com/microsoft/botframework-solutions/blob/master/docs/howto/assistant/customizedeployment.md for how to customise deployment for the region your using.

@e-gonzalez
Copy link
Author

Following the link given, I am trying to deploy with westeurope region, which is available in he Azure region. However, the error persists.

@darrenj darrenj added the Support Requesting assistance from the Support Team label May 30, 2019
@aschemel
Copy link

Hi! I'm getting the same error, any idea what can be happening? I'm also getting the InvalidApiSetId

@darrenj
Copy link
Contributor

darrenj commented May 30, 2019

Can you both confirm the region you are trying to deploy your assistant into and share the parameters file you are using to override region?

@e-gonzalez
Copy link
Author

e-gonzalez commented May 31, 2019

The parameters file I would like to use is :
image

The regions I am trying to deploy are

  • Resource group region: northeurope
  • LUIS Authoring region: westeurope

On the other hand, I had also tried with the default values before changing them.

@darrenj
Copy link
Contributor

darrenj commented May 31, 2019

I can repro the issue with the above parameters file, what's odd is you can create qnamaker with those combinations in the azure portal but we are using the same ARM template approach

Support Team - can you take a look? @lauren-mills FYI in case you have any ideas. Validation passes and it's almost as if the parameters file is being ignored.

@lauren-mills
Copy link
Contributor

I tried the ARM deployment directly in the portal (to verify its not an issue in the scripts) and it is consistent with these errors. My best guess is that westeurope is not being supported by the ARM validation process, even though it is supported in the portal. Probably best to raise this with the QnAMaker team.

@aschemel
Copy link

aschemel commented Jun 1, 2019

Hi @lauren-mills thanks for taking a look at this, who/how can we get support from the QnA Team?

Thanks

@guru98
Copy link

guru98 commented Jun 2, 2019

I have the same problem. using Westus as region the script continue without error until it switch to the deploy_cognitive_models where it stop with an error like it take wrong paremeters. My question is have you work to some tests before release it.

@aschemel
Copy link

aschemel commented Jun 3, 2019

Hi, the same from our side, it keeps failing even when deploying in USA Regions.

@lauren-mills
Copy link
Contributor

lauren-mills commented Jun 3, 2019

@guru98 and @aschemel can you please supply screenshots of your errors and/or your deploy_cognitive_models_log.txt files? If you made it to the deploy_cognitive_models script then your Azure deployment succeeded so it is a different issue.

@guru98
Copy link

guru98 commented Jun 3, 2019

I found the issue: in the file path, in Windows, there is name+space+surname of the user. the space broke the command. I'm not a powershell expert so if someone provide a solution is really apreciate. the issue is when the deploy script call the deploy:cognitivr_model.ps1

@guru98
Copy link

guru98 commented Jun 3, 2019

ttt

@guru98
Copy link

guru98 commented Jun 4, 2019

deploy_cognitive_log is not generated becouse it crash eariler (line1 char1). im the screen shot after upating appsetting.json (that works succesfully) i had a write-host to see what you call ….

@aschemel
Copy link

aschemel commented Jun 4, 2019

@lauren-mills In our case, we ended up creating a new RG in West US, and deploying (per defaults) everything in it. We are Europe based, so it's not a solutions for us. We'll keep testing like this for the moment. Also I think guru98 case is a bit different.

@darrenj
Copy link
Contributor

darrenj commented Jun 4, 2019

@aschemel - Thanks for confirming. We are working with the qnamaker team on why the ARM template deployment isn't working in the european regions. #1473 to track. I've validate the "workaround" in that item.

@darrenj
Copy link
Contributor

darrenj commented Jun 4, 2019

@guru98 Please see #1474 - if you update your deploy.ps1 script to add single quotes around the outdir parameter I think that will fix. If you can confirm, we'll make the change.

@darrenj
Copy link
Contributor

darrenj commented Jun 4, 2019

@aschemel PR #1476 updates the template.json file to reflect the latest from the QnAMaker team that the core engine of QnAMaker can only be created in westus, all other bits (that hold your kb data) can be in other regions.

@darrenj
Copy link
Contributor

darrenj commented Jun 4, 2019

@guru98 PR #1476 has a proposed fix for your path issue.

@lauren-mills lauren-mills removed Status: Backlog This will go in the product backlog Help Wanted Available for community contribution. labels Jul 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Support Requesting assistance from the Support Team Type: Bug Something isn't working
Projects
None yet
5 participants