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, [int]$limitTo,
[Parameter( [Parameter(
HelpMessage = "The VPG Idnetifier", HelpMessage = "The VPG Idnetifier",
ParameterSetName = "alertId" ParameterSetName = "alertId",
Mandatory = $true
)] )]
[ValidateNotNullOrEmpty()] [ValidateNotNullOrEmpty()]
[string]$alertIdentifier [string]$alertIdentifier
+2 -2
View File
@@ -19,7 +19,7 @@ Get-ZAAlert [-zOrgIdentifier <String>] [-limitTo <Int32>] [<CommonParameters>]
### alertId ### alertId
``` ```
Get-ZAAlert [-alertIdentifier <String>] [<CommonParameters>] Get-ZAAlert -alertIdentifier <String> [<CommonParameters>]
``` ```
## DESCRIPTION ## DESCRIPTION
@@ -72,7 +72,7 @@ Type: String
Parameter Sets: alertId Parameter Sets: alertId
Aliases: Aliases:
Required: False Required: True
Position: Named Position: Named
Default value: None Default value: None
Accept pipeline input: False Accept pipeline input: False