-
Notifications
You must be signed in to change notification settings - Fork 4k
Support ResourceGroupNameEquals and ResourceNameEquals as parameters in Find-AzureRmResource #3257
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
Conversation
…in Find-AzureRmResource.
/// <param name="resourceGroup">The name of the resource group/</param> | ||
/// <param name="resourceType">The resource type.</param> | ||
/// <param name="resourceName">The resource name.</param> | ||
/// <param name="tagName">The tag name.</param> | ||
/// <param name="tagValue">The tag value.</param> | ||
/// <param name="filter">The filter.</param> | ||
public static string CreateFilter( | ||
Guid[] subscriptionIds, |
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.
Why are we removing the support for multiple subIds?
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.
we don't have any scenario that has mutiple subsIds in our repo now.
/// </summary> | ||
private bool ResourceGroupNameAvailable() | ||
{ | ||
return this.ResourceGroupNameContains != null || this.ResourceGroupNameEquals != null; |
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.
string.IsNullOrEmpty is better here, no?
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.
Seems we have been doing null check for all parameters. I think we can keep it consistent.
LGTM thanks! @markcowl @cormacpayne |
LGTM |
Description
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThrough
parameter.Cmdlet Parameter Guidelines
…in Find-AzureRmResource.