Closed
Conversation
VeryEarly
reviewed
Dec 6, 2019
wyunchi-ms
reviewed
Dec 6, 2019
src/Network/Network/AzureFirewall/ApplicationRule/NewAzureFirewallApplicationRuleCommand.cs
Show resolved
Hide resolved
src/Network/Network/AzureFirewall/ApplicationRule/NewAzureFirewallApplicationRuleCommand.cs
Show resolved
Hide resolved
src/Network/Network/AzureFirewall/ApplicationRule/NewAzureFirewallApplicationRuleCommand.cs
Show resolved
Hide resolved
src/Network/Network/AzureFirewall/ApplicationRule/NewAzureFirewallApplicationRuleCommand.cs
Show resolved
Hide resolved
|
|
||
| public const string FqdnTag = @"FqdnTag"; | ||
|
|
||
| public const string BySourceAddress = @"SourceAddress"; |
Contributor
There was a problem hiding this comment.
This parameter set name is never used.
src/Network/Network/AzureFirewall/NetworkRule/NewAzureFirewallNetworkRuleCommand.cs
Outdated
Show resolved
Hide resolved
src/Network/Network/AzureFirewall/NetworkRule/NewAzureFirewallNetworkRuleCommand.cs
Show resolved
Hide resolved
src/Network/Network/AzureFirewall/NetworkRule/NewAzureFirewallNetworkRuleCommand.cs
Show resolved
Hide resolved
| namespace Microsoft.Azure.Commands.Network | ||
| { | ||
| [Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FirewallApplicationRule", SupportsShouldProcess = true, DefaultParameterSetName = AzureFirewallApplicationRuleParameterSets.TargetFqdn), OutputType(typeof(PSAzureFirewallApplicationRule))] | ||
| [Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FirewallApplicationRule", SupportsShouldProcess = true, DefaultParameterSetName = AzureFirewallApplicationRuleParameterSets.Default), OutputType(typeof(PSAzureFirewallApplicationRule))] |
Contributor
There was a problem hiding this comment.
Change default parameter set may cause breaking change. Is this you want?
Contributor
Author
There was a problem hiding this comment.
Yes, this is required.
Default (Default)
New-AzFirewallApplicationRule -Name <String> [-Description <String>] -SourceAddress <String[]>
[-TargetFqdn <String[]>] [-FqdnTag <String[]>]
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
SourceIpGroup
New-AzFirewallApplicationRule -Name <String> [-Description <String>]
-SourceIpGroup <String[]> [-TargetFqdn <String[]>] [-FqdnTag <String[]>]
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
TargetFqdn
New-AzFirewallApplicationRule -Name <String> [-Description <String>] [-SourceAddress <String[]>]
[-SourceIpGroup <String[]>] -TargetFqdn <String[]> -Protocol <String[]>
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
FqdnTag
New-AzFirewallApplicationRule -Name <String> [-Description <String>] [-SourceAddress <String[]>]
[-SourceIpGroup <String[]>] [-FqdnTag <String[]>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
[-Confirm] [<CommonParameters>]
Ideally, we desire atleast one source and one destination
Contributor
|
Hi @ssripadham could you please take a look at these comments? |
Contributor
Author
|
I am simplifying the Pull Request wrt Option Sets. The latest PR is here: https://github.com/Azure/azure-powershell/pull/10674/files. Let us close this one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
1. Azure Firewall Application Rules
2. Azure Firewall NAT Rules
3. Azure Firewall Network Rules
Checklist
CONTRIBUTING.mdChangeLog.mdfile(s) has been updated:ChangeLog.mdfile can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md## Upcoming Releaseheader -- no new version header should be addedREFERENCE: #10647