|
4 | 4 | $CrankAgentVm,
|
5 | 5 |
|
6 | 6 | [string]
|
7 |
| - $FunctionsHostBranchOrCommit = 'dev', |
| 7 | + $BranchOrCommit = 'dev', |
| 8 | + |
| 9 | + [string] |
| 10 | + $Scenario = 'http', |
8 | 11 |
|
9 | 12 | [string]
|
10 | 13 | $FunctionApp = 'HelloApp',
|
@@ -59,18 +62,22 @@ $crankConfigPath = Join-Path `
|
59 | 62 | $isLinuxApp = $CrankAgentVm -match '\blinux\b'
|
60 | 63 |
|
61 | 64 | $functionAppRootPath = if ($isLinuxApp) { "/home/$UserName/FunctionApps" } else { 'C:\FunctionApps' }
|
62 |
| - |
63 | 65 | $functionAppPath = Join-Path `
|
64 | 66 | -Path $functionAppRootPath `
|
65 | 67 | -ChildPath $FunctionApp
|
66 | 68 |
|
| 69 | +$tmpPath = if ($isLinuxApp) { "/tmp" } else { 'C:\Temp' } |
| 70 | +$tmpLogPath = if ($isLinuxApp) { "/tmp/functions/log" } else { 'C:\Temp\Functions\Log' } |
| 71 | + |
67 | 72 | $crankArgs =
|
68 | 73 | '--config', $crankConfigPath,
|
69 |
| - '--scenario', 'functionApp', |
| 74 | + '--scenario', $Scenario, |
70 | 75 | '--profile', 'local',
|
71 | 76 | '--variable', "CrankAgentVm=$CrankAgentVm",
|
72 | 77 | '--variable', "FunctionAppPath=`"$functionAppPath`"",
|
73 |
| - '--variable', "FunctionsHostBranchOrCommit=$FunctionsHostBranchOrCommit" |
| 78 | + '--variable', "TempPath=`"$tmpPath`"", |
| 79 | + '--variable', "TempLogPath=`"$tmpLogPath`"", |
| 80 | + '--variable', "BranchOrCommit=$BranchOrCommit" |
74 | 81 |
|
75 | 82 | if ($WriteResultsToDatabase) {
|
76 | 83 | Set-AzContext -Subscription 'Antares-Demo' > $null
|
|
0 commit comments