Add parameter validation

This commit is contained in:
Wes Carroll
2020-04-02 17:44:00 -04:00
parent 646476e74e
commit f299aecb9b
@@ -12,6 +12,7 @@ function Get-ZAProtectedVm {
Mandatory, Mandatory,
HelpMessage = "A list of VM identifiers to query" HelpMessage = "A list of VM identifiers to query"
)] )]
[ValidateNotNullOrEmpty()]
[string[]]$VMIdentifier, [string[]]$VMIdentifier,
[Parameter( [Parameter(
ParameterSetName = "IndividualVMs", ParameterSetName = "IndividualVMs",