Skip to content

Commit

Permalink
add luis authoring region in deployment script (#2229)
Browse files Browse the repository at this point in the history
Co-authored-by: Qi Kang <qika@microsoft.com>
  • Loading branch information
Qi Kang and Qi Kang authored Mar 11, 2020
1 parent bd5402b commit ffc4d80
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion BotProject/Templates/CSharp/Scripts/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ if ($luisAuthoringKey -and $luisAuthoringRegion) {
if (Get-Command bf -errorAction SilentlyContinue) {
$customizedSettings = Get-Content $(Join-Path $remoteBotPath settings appsettings.json) | ConvertFrom-Json
$customizedEnv = $customizedSettings.luis.environment
bf luis:build --in .\ --botName $name --authoringKey $luisAuthoringKey --dialog --out .\generated --suffix $customizedEnv -f

# create generated folder if not exists
if (!(Test-Path generated)) {
New-Item -ItemType Directory -Force -Path generated
}

bf luis:build --in .\ --botName $name --authoringKey $luisAuthoringKey --dialog --out .\generated --suffix $customizedEnv -f --region $luisAuthoringRegion
}
else {
Write-Host "bf luis:build does not exist, use the following command to install:"
Expand Down

0 comments on commit ffc4d80

Please sign in to comment.