Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

A simple Bot based on the Bot Framework translates English to Italian

Notifications You must be signed in to change notification settings

briandenicola/azure-bot-translator-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A simple Bot based on the Bot Framework translates English to Italian

Setup

Manual Steps

  • 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

ARM Template

  • 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

Deploy Bot Code

  • 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

About

A simple Bot based on the Bot Framework translates English to Italian

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published