Skip to content
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

Merged
merged 2 commits into from
May 4, 2017
Merged

Conversation

wangshayu
Copy link
Contributor

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

@msftclas
Copy link

@wangshayu,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

[ValidateNotNullorEmpty()]
[String] $tenantId,

[Parameter(ParameterSetName='GetAlert')]
[System.Management.Automation.PSCredential] $azureStackCredentials,
Copy link
Contributor

@RobinBao RobinBao Apr 27, 2017

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@wangshayu wangshayu closed this May 2, 2017
@wangshayu wangshayu reopened this May 2, 2017
@msftclas
Copy link

msftclas commented May 2, 2017

@wangshayu,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

[string] $EnvironmentName,

[Parameter(ParameterSetName='closealert')]
[Parameter(Mandatory=$false)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need it?

@wangshayu wangshayu merged commit 8cea0d4 into vnext May 4, 2017
@wangshayu wangshayu deleted the wangshayu branch May 16, 2017 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants