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.
JavaScript/TypeScript

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
To successfully deploy the chatbot on Azure
I'm running this code on a Mac OS Catalina 10.15.3
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 馃槉.

@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:
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):
.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-preview223botbuilder-solutions referencing it directly in the package.json with an absolute pathnpm pack [email protected] --registry https://botbuilder.myget.org/F/aitemplates/npm
Most helpful comment
Hi @igor17400, thanks for reporting this issue!
We will be reviewing it and we will back to you later 馃槉