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

Commit

Permalink
Updated pom.xml to use parameters (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeParrishMSFT authored Oct 30, 2020
1 parent aa307c5 commit 59a7ae7
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 77 deletions.
13 changes: 4 additions & 9 deletions samples/02.echo-bot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
#### To an existing Resource Group
`az group deployment create --name "echoBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`

### 5. Update the pom.xml
In pom.xml update the following nodes under azure-webapp-maven-plugin
- `resourceGroup` using the `<groupname>` used above
- `appName` using the `<botname>` used above

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

### 7. Deploy the code
### 6. Deploy the code
- Execute `mvn clean package`
- Execute `mvn azure-webapp:deploy`
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`

If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.

After the bot is deployed, you only need to execute #7 if you make changes to the bot.
After the bot is deployed, you only need to execute #6 if you make changes to the bot.


## Further reading
Expand Down
4 changes: 2 additions & 2 deletions samples/02.echo-bot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
<version>1.7.0</version>
<configuration>
<schemaVersion>V2</schemaVersion>
<resourceGroup>{groupname}</resourceGroup>
<appName>{botname}</appName>
<resourceGroup>${groupname}</resourceGroup>
<appName>${botname}</appName>
<appSettings>
<property>
<name>JAVA_OPTS</name>
Expand Down
13 changes: 4 additions & 9 deletions samples/03.welcome-user/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
#### To an existing Resource Group
`az group deployment create --name "stateBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`

### 5. Update the pom.xml
In pom.xml update the following nodes under azure-webapp-maven-plugin
- `resourceGroup` using the `<groupname>` used above
- `appName` using the `<botname>` used above

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

### 7. Deploy the code
### 6. Deploy the code
- Execute `mvn clean package`
- Execute `mvn azure-webapp:deploy`
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`

If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.

After the bot is deployed, you only need to execute #7 if you make changes to the bot.
After the bot is deployed, you only need to execute #6 if you make changes to the bot.


## Further reading
Expand Down
4 changes: 2 additions & 2 deletions samples/03.welcome-user/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
<version>1.7.0</version>
<configuration>
<schemaVersion>V2</schemaVersion>
<resourceGroup>{groupname}</resourceGroup>
<appName>{botname}</appName>
<resourceGroup>${groupname}</resourceGroup>
<appName>${botname}</appName>
<appSettings>
<property>
<name>JAVA_OPTS</name>
Expand Down
13 changes: 4 additions & 9 deletions samples/08.suggested-actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
#### To an existing Resource Group
`az group deployment create --name "echoBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`

### 5. Update the pom.xml
In pom.xml update the following nodes under azure-webapp-maven-plugin
- `resourceGroup` using the `<groupname>` used above
- `appName` using the `<botname>` used above

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

### 7. Deploy the code
### 6. Deploy the code
- Execute `mvn clean package`
- Execute `mvn azure-webapp:deploy`
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`

If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.

After the bot is deployed, you only need to execute #7 if you make changes to the bot.
After the bot is deployed, you only need to execute #6 if you make changes to the bot.


## Further reading
Expand Down
4 changes: 2 additions & 2 deletions samples/08.suggested-actions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
<version>1.7.0</version>
<configuration>
<schemaVersion>V2</schemaVersion>
<resourceGroup>{groupname}</resourceGroup>
<appName>{botname}</appName>
<resourceGroup>${groupname}</resourceGroup>
<appName>${botname}</appName>
<appSettings>
<property>
<name>JAVA_OPTS</name>
Expand Down
13 changes: 4 additions & 9 deletions samples/16.proactive-messages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
#### To an existing Resource Group
`az group deployment create --name "echoBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`

### 5. Update the pom.xml
In pom.xml update the following nodes under azure-webapp-maven-plugin
- `resourceGroup` using the `<groupname>` used above
- `appName` using the `<botname>` used above

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

### 7. Deploy the code
### 6. Deploy the code
- Execute `mvn clean package`
- Execute `mvn azure-webapp:deploy`
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`

If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.

After the bot is deployed, you only need to execute #7 if you make changes to the bot.
After the bot is deployed, you only need to execute #6 if you make changes to the bot.


## Further reading
Expand Down
4 changes: 2 additions & 2 deletions samples/16.proactive-messages/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
<version>1.7.0</version>
<configuration>
<schemaVersion>V2</schemaVersion>
<resourceGroup>{groupname}</resourceGroup>
<appName>{botname}</appName>
<resourceGroup>${groupname}</resourceGroup>
<appName>${botname}</appName>
<appSettings>
<property>
<name>JAVA_OPTS</name>
Expand Down
13 changes: 4 additions & 9 deletions samples/45.state-management/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
#### To an existing Resource Group
`az group deployment create --name "stateBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`

### 5. Update the pom.xml
In pom.xml update the following nodes under azure-webapp-maven-plugin
- `resourceGroup` using the `<groupname>` used above
- `appName` using the `<botname>` used above

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

### 7. Deploy the code
### 6. Deploy the code
- Execute `mvn clean package`
- Execute `mvn azure-webapp:deploy`
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`

If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.

After the bot is deployed, you only need to execute #7 if you make changes to the bot.
After the bot is deployed, you only need to execute #6 if you make changes to the bot.


## Further reading
Expand Down
4 changes: 2 additions & 2 deletions samples/45.state-management/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@
<version>1.7.0</version>
<configuration>
<schemaVersion>V2</schemaVersion>
<resourceGroup>{groupname}</resourceGroup>
<appName>{botname}</appName>
<resourceGroup>${groupname}</resourceGroup>
<appName>${botname}</appName>
<appSettings>
<property>
<name>JAVA_OPTS</name>
Expand Down
13 changes: 4 additions & 9 deletions samples/47.inspection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
#### To an existing Resource Group
`az group deployment create --name "echoBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`

### 5. Update the pom.xml
In pom.xml update the following nodes under azure-webapp-maven-plugin
- `resourceGroup` using the `<groupname>` used above
- `appName` using the `<botname>` used above

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

### 7. Deploy the code
### 6. Deploy the code
- Execute `mvn clean package`
- Execute `mvn azure-webapp:deploy`
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`

If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.

After the bot is deployed, you only need to execute #7 if you make changes to the bot.
After the bot is deployed, you only need to execute #6 if you make changes to the bot.


## Further reading
Expand Down
4 changes: 2 additions & 2 deletions samples/47.inspection/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
<version>1.7.0</version>
<configuration>
<schemaVersion>V2</schemaVersion>
<resourceGroup>{groupname}</resourceGroup>
<appName>{botname}</appName>
<resourceGroup>${groupname}</resourceGroup>
<appName>${botname}</appName>
<appSettings>
<property>
<name>JAVA_OPTS</name>
Expand Down
13 changes: 4 additions & 9 deletions samples/servlet-echo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
#### To an existing Resource Group
`az group deployment create --name "echoBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`

### 5. Update the pom.xml
In pom.xml update the following nodes under azure-webapp-maven-plugin
- `resourceGroup` using the `<groupname>` used above
- `appName` using the `<botname>` used above

### 6. Update app id and password
### 5. Update app id and password
In src/main/resources/application.properties update
- `MicrosoftAppPassword` with the appsecret value
- `MicrosoftAppId` with the appid from the first step

### 7. Deploy the code
### 6. Deploy the code
- Execute `mvn clean package`
- Execute `mvn azure-webapp:deploy`
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`

If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.

After the bot is deployed, you only need to execute #7 if you make changes to the bot.
After the bot is deployed, you only need to execute #6 if you make changes to the bot.


## Reference
Expand Down
4 changes: 2 additions & 2 deletions samples/servlet-echo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@
<version>1.7.0</version>
<configuration>
<schemaVersion>V2</schemaVersion>
<resourceGroup>{groupname}</resourceGroup>
<appName>{botname}</appName>
<resourceGroup>${groupname}</resourceGroup>
<appName>${botname}</appName>
<appSettings>
<property>
<name>JAVA_OPTS</name>
Expand Down

0 comments on commit 59a7ae7

Please sign in to comment.