Skip to content

Commit 970f521

Browse files
authored
Merge pull request microsoft#3834 from SharmaHarsh7/patch-1
Adding QnAEndpointURL to dispatch commands.
2 parents 55f9edd + afea9d9 commit 970f521

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

samples/csharp/assistants/virtual-assistant/VirtualAssistantSample/Deployment/Scripts/update_cognitive_models.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ foreach ($langCode in $languageMap.Keys) {
119119
--key $kb.subscriptionKey `
120120
--intentName "q_$($kb.id)" `
121121
--dispatch $dispatchFile `
122+
--endpointUrl $qnaEndpoint `
122123
--dataFolder $(Join-Path $dispatchFolder $langCode) 2>> $logFile | Out-Null
123124
Write-Host "Done." -ForegroundColor Green
124125
}
@@ -217,6 +218,7 @@ foreach ($langCode in $languageMap.Keys) {
217218
--id $kb.kbId `
218219
--key $kb.subscriptionKey `
219220
--intentName "q_$($kb.id)" `
221+
--endpointUrl $qnaEndpoint `
220222
--dispatch $(Join-Path $dispatchFolder $langCode "$($dispatch.name).dispatch") `
221223
--dataFolder $(Join-Path $dispatchFolder $langCode)) 2>> $logFile | Out-Null
222224
Write-Host "Done." -ForegroundColor Green
@@ -284,4 +286,4 @@ foreach ($langCode in $languageMap.Keys) {
284286
}
285287
}
286288

287-
Write-Host "> Update complete." -ForegroundColor Green
289+
Write-Host "> Update complete." -ForegroundColor Green

0 commit comments

Comments
 (0)