From f299aecb9b6e548944be74a639d822c5d54e276f Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Thu, 2 Apr 2020 17:44:00 -0400 Subject: [PATCH] Add parameter validation --- ZertoApiWrapper/Public/Get-ZAProtectedVm.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/ZertoApiWrapper/Public/Get-ZAProtectedVm.ps1 b/ZertoApiWrapper/Public/Get-ZAProtectedVm.ps1 index 8340275..86299ba 100644 --- a/ZertoApiWrapper/Public/Get-ZAProtectedVm.ps1 +++ b/ZertoApiWrapper/Public/Get-ZAProtectedVm.ps1 @@ -12,6 +12,7 @@ function Get-ZAProtectedVm { Mandatory, HelpMessage = "A list of VM identifiers to query" )] + [ValidateNotNullOrEmpty()] [string[]]$VMIdentifier, [Parameter( ParameterSetName = "IndividualVMs",