File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,11 @@ param (
4747 [parameter (HelpMessage = " Flag to cleanup resources after exception" )]
4848 [Parameter (ParameterSetName = " default" , Mandatory = $false )]
4949 [Parameter (ParameterSetName = " tenant" , Mandatory = $false )]
50- [bool ] $ContinueOnFailure = $false
50+ [bool ]$ContinueOnFailure = $false ,
51+ [parameter (HelpMessage = " Location where log files are stored" )]
52+ [Parameter (ParameterSetName = " default" , Mandatory = $false )]
53+ [Parameter (ParameterSetName = " tenant" , Mandatory = $false )]
54+ [string ]$CanaryLogPath = $env: TMP + " \CanaryLogs$ ( (Get-Date ).ToString(" -yyMMdd-hhmmss" )) "
5155)
5256
5357# Requires -Modules AzureRM
@@ -62,7 +66,6 @@ $kvSecretName = $keyvaultName.ToLowerInvariant() + "secret"
6266$VMAdminUserName = " CanaryAdmin"
6367$VMAdminUserPass = " CanaryAdmin@123"
6468$canaryUtilPath = Join-Path - Path $env: TEMP - ChildPath " CanaryUtilities"
65- $CanaryLogPath = $env: TMP + " \CanaryLogs$ ( (Get-Date ).ToString(" -yyMMdd-hhmmss" )) "
6669if (Test-Path - Path $canaryUtilPath )
6770{
6871 Remove-Item - Path $canaryUtilPath - Force - Recurse
You can’t perform that action at this time.
0 commit comments