A simple Bot based on the Bot Framework translates English to Italian
- Create Azure AD Service Principal for Bot
- $botPass = New-Password -Length 25 -ExcludeSpecialCharacters (Function from bjd.Common.Functions)
- $botAppId = az ad app create --display-name bjdBotApp01 --password $botPass --available-to-other-tenants --query 'appId' -o tsv
- cd infrastructure
- az group create --name BOT_RG --location southcentralus
- az group deployment create --name bot -g BOT_RG --parameters `@azuredeploy.parameters.json --template-file .\azuredeploy.json --parameters botApplicationId=$botAppId botApplicationSecret=$botPass --verbose
-
Command Line
- cd src
- Change {{REPLACEME}} in azurewebapp\ComposerDialog\translator.dialog with Translator API Key
- TBD to automate this with a App Settings variable
- dotnet build azurewebapp
- dotnet publish azurewebapp -o publish
- Compress-Archive -Path .\publish* -DestinationPath bot.zip
- az webapp deployment source config-zip --resource-group BOT_RG --name bjdtranslator --src .\bot.zip
-
Azure DevOps Pipeline
- Create new pipeline from deploy\azure-pipeline.yaml
- Update Variables for Service Connection and Azure App Service Name