File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ param (
2828 [parameter (HelpMessage = " Local path where the windows ISO is stored" )]
2929 [Parameter (ParameterSetName = " default" , Mandatory = $false )]
3030 [Parameter (ParameterSetName = " tenant" , Mandatory = $false )]
31- [ValidateNotNullOrEmpty ( )]
31+ [ValidateScript ({ Test-Path - Path $_ } )]
3232 [string ]$WindowsISOPath ,
3333 [parameter (HelpMessage = " Fully qualified domain name of the azure stack environment. Ex: contoso.com" )]
3434 [Parameter (ParameterSetName = " default" , Mandatory = $false )]
@@ -150,7 +150,7 @@ while ($runCount -le $NumberOfIterations)
150150 }
151151 }
152152
153- if ($WindowsISOPath -and ( Test-Path - Path $WindowsISOPath ) )
153+ if ($WindowsISOPath )
154154 {
155155 Invoke-Usecase - Name ' UploadWindows2016ImageToPIR' - Description " Uploads a windows server 2016 image to the PIR" - UsecaseBlock `
156156 {
You can’t perform that action at this time.
0 commit comments