-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update powershell script to support qna and corsstrain build (#4640
) * update powershell script to support qna and corsstrain * add more luis details * fix qna build and lubuild settings, add publishing profile retrieving * add more readme about publishing profile path param * add more error handling logic for script Co-authored-by: Lu Han <32191031+luhan2017@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
189 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# How to use deploy.ps1 to publish your bot to azure | ||
|
||
Ensure you have installed necessary dependencies: | ||
* azure cli (latest version) | ||
* dotnet core (version >= 3.0) | ||
* powershell (version >= 6.0) | ||
* bf command (npm i -g @microsoft/botframework-cli@next) | ||
* bf plugins (bf plugins:install @microsoft/bf-sampler-cli@beta) | ||
|
||
Then please refer to the following steps: | ||
|
||
1. Eject your own C# runtime in composer | ||
2. Navigate to your runtime azurewebapp folder, for example C:\user\test\ToDoBot\runtime\azurewebapp | ||
3. Execute this command under azurewebapp folder: | ||
``` | ||
\Scripts\deploy.ps1 -name <name of resource group> -hostName <hostname of azure webapp> -luisAuthoringKey <luis authoring key> -qnaSubscriptionKey <qna subscription key> -environment <environment > | ||
``` | ||
4. Or if you have saved your publishing profile to json format (profile.json), you can execute: | ||
``` | ||
\Scripts\deploy.ps1 -publishProfilePath < path to your publishing profile> | ||
``` | ||
parameters of deploy.ps1: | ||
| Param | | | ||
| ------------- |:-------------:| | ||
| name | name of your Bot Channels Registration| | ||
| environment | environment, same as composer | | ||
| hostName | hostname of your azure webapp instance | | ||
| luisAuthoringKey | luis authoring key, only needed in luis| | ||
| luisAuthoringRegion | luis authoring region, could be optional| | ||
| qnaSubscriptionKey | qna subscription key, only needed in qna feature| | ||
| language | language of yoru qna & luis, defaults to 'en-us' | | ||
| botPath | path to your bot assests, defaults to ../../ for ejected runtime | | ||
| logFile | path to save your log file, deafults to deploy_log.txt | | ||
| runtimeIdentifier | runtime identifier of your C# publishing targets, defaults to win-x64, please refer to this doc: https://docs.microsoft.com/en-us/dotnet/core/rid-catalog| | ||
| luisResource | the name of your luis prediction (not authoring) resource | | ||
| publishProfilePath | the path to your publishing profile (json formate) | |