File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,7 +91,12 @@ param (
9191 [Parameter (ParameterSetName = " default" , Mandatory = $false )]
9292 [Parameter (ParameterSetName = " tenant" , Mandatory = $false )]
9393 [ValidateNotNullOrEmpty ()]
94- [string ]$CanaryLogPath = $env: TMP + " \CanaryLogs$ ( (Get-Date ).ToString(" -yyMMdd-hhmmss" )) "
94+ [string ]$CanaryLogPath = $env: TMP + " \CanaryLogs$ ( (Get-Date ).ToString(" -yyMMdd-hhmmss" )) " ,
95+ [parameter (HelpMessage = " Specifies the file name for canary log file" )]
96+ [Parameter (ParameterSetName = " default" , Mandatory = $false )]
97+ [Parameter (ParameterSetName = " tenant" , Mandatory = $false )]
98+ [ValidateNotNullOrEmpty ()]
99+ [string ]$CanaryLogFileName = " Canary-Basic$ ( (Get-Date ).ToString(" -yyMMdd-hhmmss" )) .log"
95100)
96101
97102# Requires -Modules AzureRM
@@ -125,7 +130,7 @@ while ($runCount -le $NumberOfIterations)
125130 #
126131 # Start Canary
127132 #
128- $CanaryLogFile = $CanaryLogPath + " \Canary-Basic $ ( ( Get-Date ).ToString( " -yyMMdd-hhmmss " ) ) .log "
133+ $CanaryLogFile = $CanaryLogPath + " \$CanaryLogFileName "
129134
130135 Start-Scenario - Name ' Canary' - Type ' Basic' - LogFilename $CanaryLogFile - ContinueOnFailure $ContinueOnFailure
131136
You can’t perform that action at this time.
0 commit comments