I followed step-by-step this article https://video2.skills-academy.com/en-us/azure/bot-service/bot-builder-tutorial-basic-deploy?view=azure-bot-service-4.0&tabs=csharp%2Cvs
I created test Echo Bot just using C# VS template for .Net Core 3, changed nothing and decided to test deployment to Azure.
Everything worked fine until I tried to perform this step https://video2.skills-academy.com/en-us/azure/bot-service/bot-builder-tutorial-basic-deploy?view=azure-bot-service-4.0&tabs=csharp%2Cvs#deploy-via-arm-template-with-new-resource-group
It failed with error Deployment template validation failed: 'The resource 'Microsoft.Web/serverfarms/TestEchoBotPlan' is not defined in the template.
The issue seems to be known: https://stackoverflow.com/questions/63332059/deployment-template-validation-failed-the-resource-microsoft-web-serverfarms
So I decided to do as it suggested and created new resource group manually.
After that I tried to perform this step https://video2.skills-academy.com/en-us/azure/bot-service/bot-builder-tutorial-basic-deploy?view=azure-bot-service-4.0&tabs=csharp%2Cvs#deploy-via-arm-template-with-existing-resource-group
It failed with message Bot is not valid. Errors: The bot name is already registered to another bot application..
The issue also seems to be known: https://github.com/MicrosoftDocs/bot-docs/issues/1324
But in that case problem was apparently related to same names in the parameters botId
, newWebAppName
and display-name
and fixed by changing them. In my case all these values are already different but issue is the same. Deployment fails in every combination.
Examining the deployment itself I see that fail occurs on the last step, when first ones are fine and web site is perfectly working
Wasted half a day in attempts to fix it I decided to perform last steps from the initial article and it succeeded. Deployment preparation passed and zip-file was uploaded.
Though, step 5 from here couldn't be reproduced since there is no such option https://video2.skills-academy.com/en-us/azure/bot-service/bot-builder-tutorial-basic-deploy?view=azure-bot-service-4.0&tabs=csharp%2Cvs#test-in-web-chat
So now I don't know what was wrong and how to fix it. I just can't deploy my bot normally and don't know how to test it. Azure support was also unable to help and addressed me to this forum.
Any ideas?