Skip to content

What if support #7308

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

Merged
merged 9 commits into from
Sep 20, 2018
Merged

Conversation

wdehrich
Copy link
Member

Description

Checklist

@@ -19,6 +19,8 @@
--->

## Current Release
* Added WhatIf support to Get-AzureRmNetworkSecurityGroup
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not required. Should Process is only required for cmdlets that have server side effects. Gets do not do that and hence are not candidates for shouldprocess. Kindly revert this.

@@ -22,7 +22,7 @@

namespace Microsoft.Azure.Commands.Network
{
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "NetworkSecurityGroup"), OutputType(typeof(PSNetworkSecurityGroup))]
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "NetworkSecurityGroup", SupportsShouldProcess = true), OutputType(typeof(PSNetworkSecurityGroup))]
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not required. Should Process is only required for cmdlets that have server side effects. Gets do not do that and hence are not candidates for shouldprocess. Kindly revert this.

@@ -16,13 +16,13 @@ Gets a network security group.
### NoExpand
```
Get-AzureRmNetworkSecurityGroup [-Name <String>] [-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not required. Should Process is only required for cmdlets that have server side effects. Gets do not do that and hence are not candidates for shouldprocess. Kindly revert this.

```

### Expand
```
Get-AzureRmNetworkSecurityGroup -Name <String> -ResourceGroupName <String> -ExpandResource <String>
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not required. Should Process is only required for cmdlets that have server side effects. Gets do not do that and hence are not candidates for shouldprocess. Kindly revert this.

@@ -43,7 +43,7 @@ This command returns contents of Azure network security group "nsg1" in resource
The credentials, account, tenant, and subscription used for communication with azure.

```yaml
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Type: IAzureContextContainer
Copy link
Contributor

Choose a reason for hiding this comment

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

You'll need to regenerate the help files.

Remember to use the flag -UseFullTypeName when you generate the help files. instructions here.

@@ -37,7 +37,7 @@ The command persists the modified Azure network security group using **Set-Azure
Run cmdlet in the background

```yaml
Type: System.Management.Automation.SwitchParameter
Type: SwitchParameter
Copy link
Contributor

Choose a reason for hiding this comment

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

You'll need to regenerate the help files.

Remember to use the flag -UseFullTypeName when you generate the help files. instructions here.

@praries880
Copy link
Contributor

@wdehrich kindly take care of the review comments

Will Ehrich added 4 commits September 20, 2018 11:30
This reverts commit 8b18fce.

Revert changes to Get-AzureRmNetworkSecurityGroup cmdlet
This reverts commit 08c9eb5.

Revert changes to Get-AzureRmNetworkSecurityGroup help file
@cormacpayne cormacpayne merged commit 9b42fa4 into Azure:network-october-release Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants