Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixes various issue in the web app deployment script #4050

Merged
merged 3 commits into from
Sep 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions runtime/dotnet/azurewebapp/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
## Bot Project

Bot project is the launcher project for the bots written in declarative form (JSON), using the Composer, for the Bot Framework SDK.

## Instructions for setting up the Bot Project runtime
The Bot Project is a regular Bot Framework SDK V4 project. Before you can launch it from the emulator, you need to make sure you can run the bot.
### CI/CD Deployment

You can deploy your bot to an Azure Web App with the following script from an Azure pipeline or GitHub workflow using an [Azure CLI task](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-cli).

### Prerequisite:
* Install .Netcore 3.1
```bash
./scripts/deploy.ps1 -name my-bot -environment prod -luisAuthoringKey XXXXXXXXX -luisAuthoringRegion westeurope
```

### Commands:
The Azure CLI task needs contribution permission to the corresponding resource group. Follow this [article](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/connect-to-azure) to setup a service connection between Azure DevOps and your Azure Subscription.

* from root folder
* cd templates/dotnet/Microsoft.BotFramework.Composer.WebAppTemplate
* dotnet user-secrets init // init the user secret id
* dotnet build // build
* dotnet run // start the bot
* It will start a web server and listening at http://localhost:3979.
Initially you can provision the resources with the provisionComposer.js script, which you can find in the boot root folder under scripts.

### Test bot
* You can set you emulator to connect to http://localhost:3979/api/messages.
The environment, bot name and authoring region must match the arguments, that you used for for the provisioning with the provisionComposer.js script.

For security reasons we don't deploy any settings or secrets from the bot project. Please ensure that required settings for your bit are configured in the [Azure Web App configuration](https://docs.microsoft.com/en-us/azure/app-service/configure-common), for example "MicrosoftAppPassword", "luis\_\_endpointKey", "cosmosDB\_\_authKey", ...
17 changes: 0 additions & 17 deletions runtime/dotnet/azurewebapp/Scripts/build_runtime.ps1

This file was deleted.

11 changes: 0 additions & 11 deletions runtime/dotnet/azurewebapp/Scripts/build_runtime.sh

This file was deleted.

211 changes: 0 additions & 211 deletions runtime/dotnet/azurewebapp/Scripts/create.ps1

This file was deleted.

Loading