Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit ca5d557

Browse files
authored
Updated generator Echo and Empty bots (#981)
1 parent 538a138 commit ca5d557

File tree

16 files changed

+1172
-962
lines changed

16 files changed

+1172
-962
lines changed

Generator/generator-botbuilder-java/generators/app/templates/echo/project/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This sample is a Spring Boot app and uses the Azure CLI and azure-webapp Maven p
3232
As described on [Deploy your bot](https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-deploy-az-cli), you will perform the first 4 steps to setup the Azure app, then deploy the code using the azure-webapp Maven plugin.
3333

3434
### 1. Login to Azure
35-
From a command (or PowerShell) prompt in the root of the bot folder, execute:
35+
From a command (or PowerShell) prompt in the root of the bot folder, execute:
3636
`az login`
3737

3838
### 2. Set the subscription
@@ -45,7 +45,7 @@ If you aren't sure which subscription to use for deploying the bot, you can view
4545

4646
Replace `<botname>` and `<appsecret>` with your own values.
4747

48-
`<botname>` is the unique name of your bot.
48+
`<botname>` is the unique name of your bot.
4949
`<appsecret>` is a minimum 16 character password for your bot.
5050

5151
Record the `appid` from the returned JSON
@@ -54,15 +54,15 @@ Record the `appid` from the returned JSON
5454
Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>` in the following commands:
5555

5656
#### To a new Resource Group
57-
`az deployment create --name "echoBotDeploy" --location "westus" --template-file ".\deploymentTemplates\template-with-new-rg.json" --parameters groupName="<groupname>" botId="<botname>" appId="<appid>" appSecret="<appsecret>"`
57+
`az deployment sub create --name "echoBotDeploy" --location "westus" --template-file ".\deploymentTemplates\template-with-new-rg.json" --parameters appId="<appid>" appSecret="<appsecret>" botId="<botname>" botSku=S1 newAppServicePlanName="echoBotPlan" newWebAppName="echoBot" groupLocation="westus" newAppServicePlanLocation="westus"`
5858

5959
#### To an existing Resource Group
60-
`az group deployment create --name "echoBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`
60+
`az deployment group create --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters appId="<appid>" appSecret="<appsecret>" botId="<botname>" newWebAppName="echoBot" newAppServicePlanName="echoBotPlan" appServicePlanLocation="westus" --name "echoBot"`
6161

6262
### 5. Update app id and password
6363
In src/main/resources/application.properties update
64-
- `MicrosoftAppPassword` with the botsecret value
65-
- `MicrosoftAppId` with the appid from the first step
64+
- `MicrosoftAppPassword` with the botsecret value
65+
- `MicrosoftAppId` with the appid from the first step
6666

6767
### 6. Deploy the code
6868
- Execute `mvn clean package`

Generator/generator-botbuilder-java/generators/app/templates/echo/project/deploymentTemplates/new-rg-parameters.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

Generator/generator-botbuilder-java/generators/app/templates/echo/project/deploymentTemplates/preexisting-rg-parameters.json

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)