forked from negativeeddy/VADeployer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.ps1
More file actions
43 lines (41 loc) · 1.57 KB
/
Copy pathdeploy.ps1
File metadata and controls
43 lines (41 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#Requires -Version 6
Param(
[string] $botName,
[string] $resourceGroup,
[string] $location = "westus2",
[string] $botAppId,
[string] $botAppPassword,
[string] $luisAuthoringKey,
[string] $luisAuthoringRegion = "westus",
[string] $parametersFile,
[string] $languages = "en-us",
[string] $projDir = "./MyAssistant/MyAssistant",
[string] $logFile = $(Join-Path $PSScriptRoot .. "deploy_log.txt"),
[switch] $minimalCost
)
if ($minimalCost) {
Write-Host ("Deploying minimal cost template.`nWARNING Some resource types, e.g. QnA Maker, only allow one free SKU per subscription. If you already have one of these the deployment will fail")
./MyAssistant/MyAssistant/Deployment/Scripts/deploy.ps1 -name $botName `
-resourceGroup $resourceGroup `
-location $location `
-botAppId $botAppId `
-appPassword $botAppPassword `
-luisAuthoringKey $luisAuthoringKey `
-luisAuthoringRegion $luisAuthoringRegion `
-parametersFile ./scripts/minimalcost.parameters.template.json `
-languages $languages `
-projDir $projDir `
-logFile $logFile}
else {
./MyAssistant/MyAssistant/Deployment/Scripts/deploy.ps1 -name $botName `
-resourceGroup $resourceGroup `
-location $location `
-botAppId $botAppId `
-appPassword $botAppPassword `
-luisAuthoringKey $luisAuthoringKey `
-luisAuthoringRegion $luisAuthoringRegion `
-parametersFile $parametersFile `
-languages $languages `
-projDir $projDir `
-logFile $logFile
}