Update Function to set variable to mandatory
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user