Botframework-solutions: Problem when deploying virtual assistant - JavaScript/TypeScript

Created on 7 Apr 2020  路  4Comments  路  Source: microsoft/botframework-solutions

What project is affected?

I have followed this tutorial https://microsoft.github.io/botframework-solutions/virtual-assistant/tutorials/create-assistant/typescript/4-provision-you-azure-resources/ and when I tried to execute the './Deployment/Scripts/deploy.ps1' file, it did not work due to some errors.

What language is this in?

JavaScript/TypeScript

What happens?

Screen Shot 2020-04-07 at 15 44 53

What are the steps to reproduce this issue?

Just follow the tutorial link above and the error will happen. No code change is needed.
1) yo botbuilder-assistant
2) az login
3) ./deployment/Scripts/deploy.ps1

What were you expecting to happen?

To successfully deploy the chatbot on Azure

Can you share any logs, error output, etc.?

Any screenshots or additional context?

I'm running this code on a Mac OS Catalina 10.15.3

Bot Services Bug customer-replied-to customer-reported

Most helpful comment

Hi @igor17400, thanks for reporting this issue!

We will be reviewing it and we will back to you later 馃槉

All 4 comments

Hi @igor17400, thanks for reporting this issue!

We will be reviewing it and we will back to you later 馃槉

Hi @igor17400, sorry for the delay. We successfully reproduced the issue using the steps you mentioned, we will be validating some workarounds and we will back to you later 馃槉.

image

@igor17400, this issue will be fixed in the next version of the generator-botbuilder-assistant in npmjs.

We identified some workarounds that will work for you:

  1. Use the sample-assistant instead of the one created by the generator.
  2. If you want to use the created by the generator, update this line in the template.json of your generated Virtual Assistant to this:
"serverFarmId": "[concat('/subscriptions/', Subscription().SubscriptionId,'/resourcegroups/', resourceGroup().name, '/providers/Microsoft.Web/serverfarms/', parameters('appServicePlanName'))]",

Please check the issue #2762, specifically this comment.

Let me know if it resolves your issue 馃槉.

Hi @igor17400, we are closing this issue as it will be fixed in the next release of TypeScript. Please, feel free to reopen it if you are still having the problem 馃槉.

Before they are published you can use the packages published in MyGet as daily builds:

To use the generator-botbuilder-assistant, you should uninstall it if you already have one and then install the one of MyGet:

npm uninstall -g generator-botbuilder-assistant
npm install -g [email protected] --registry https://botbuilder.myget.org/F/aitemplates/npm

To integrate botbuilder-solutions daily build you have two different options, we recommend the first option as it's the easiest one (take into account to remove the package-lock and node_modules of your bots):

  • Option 1: Add a .npmrc file pointing to the registry https://botbuilder.myget.org/F/aitemplates/npm, and updating the package.json to point the botbuilder-solutions version to 4.5.0-preview223
  • Option 2: Download the tgz of botbuilder-solutions referencing it directly in the package.json with an absolute path
npm pack [email protected] --registry https://botbuilder.myget.org/F/aitemplates/npm
Was this page helpful?
0 / 5 - 0 ratings