Update Function to set variable to mandatory

This commit is contained in:
Wes Carroll
2019-06-06 11:48:49 -04:00
parent a3fd87f933
commit ebc86c5e71
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ function Get-ZAAlert {
[int]$limitTo,
[Parameter(
HelpMessage = "The VPG Idnetifier",
ParameterSetName = "alertId"
ParameterSetName = "alertId",
Mandatory = $true
)]
[ValidateNotNullOrEmpty()]
[string]$alertIdentifier
+2 -2
View File
@@ -19,7 +19,7 @@ Get-ZAAlert [-zOrgIdentifier <String>] [-limitTo <Int32>] [<CommonParameters>]
### alertId
```
Get-ZAAlert [-alertIdentifier <String>] [<CommonParameters>]
Get-ZAAlert -alertIdentifier <String> [<CommonParameters>]
```
## DESCRIPTION
@@ -72,7 +72,7 @@ Type: String
Parameter Sets: alertId
Aliases:
Required: False
Required: True
Position: Named
Default value: None
Accept pipeline input: False