-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#Issue155: Remove all unnecessary parametersets #179
Conversation
@wangshayu, |
Infrastructure/AzureStack.Infra.psm1
Outdated
[ValidateNotNullorEmpty()] | ||
[String] $tenantId, | ||
|
||
[Parameter(ParameterSetName='GetAlert')] | ||
[System.Management.Automation.PSCredential] $azureStackCredentials, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still need [Parameter(Mandatory=$true)]. And add "[ValidateNotNull()]" for consistency with other functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@wangshayu, |
[string] $EnvironmentName, | ||
|
||
[Parameter(ParameterSetName='closealert')] | ||
[Parameter(Mandatory=$false)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need it?
The Close-AzSAlert failed because of the parameter set is not written correctly, and actually all parameter set in this file are useless. Removed them to avoid similar errors in the future