From da3898aa00bb9146044b4d3ee2caedea50794a13 Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Mon, 8 Aug 2022 10:19:04 +0800 Subject: [PATCH 1/2] [AzureFirewall] `az network firewall policy rule-collection-group collection add-filter-collection`: update help message --- src/azure-firewall/azext_firewall/_help.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/azure-firewall/azext_firewall/_help.py b/src/azure-firewall/azext_firewall/_help.py index 75bdf15def2..8a51e9d4e46 100644 --- a/src/azure-firewall/azext_firewall/_help.py +++ b/src/azure-firewall/azext_firewall/_help.py @@ -405,6 +405,11 @@ short-summary: Add a filter collection into an Azure firewall policy rule collection group. long-summary: | Common Rule Arguments are used for both Network rule and Application rule. If you want to add more rules into filter collection, please use "az network policy rule-collection-group collection rule add/remove" + parameters: + - name: --destination-ports + short-summary: "Space-separated list of destination ports. This argument is supported for Nat and Network Rule." + long-summary: | + Notice: When the parameter --rule-name is 'network_rule', --destination-ports is required. examples: - name: Add a filter collection with Network rule into the rule collection group text: az network firewall policy rule-collection-group collection add-filter-collection -g {rg} --policy-name {policy} --rule-collection-group-name {collectiongroup} From 6dd588217cdde2f4699627667d8abfa518b85107 Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Mon, 8 Aug 2022 10:49:26 +0800 Subject: [PATCH 2/2] Update _help.py --- src/azure-firewall/azext_firewall/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-firewall/azext_firewall/_help.py b/src/azure-firewall/azext_firewall/_help.py index 8a51e9d4e46..31b33fce2cf 100644 --- a/src/azure-firewall/azext_firewall/_help.py +++ b/src/azure-firewall/azext_firewall/_help.py @@ -407,7 +407,7 @@ Common Rule Arguments are used for both Network rule and Application rule. If you want to add more rules into filter collection, please use "az network policy rule-collection-group collection rule add/remove" parameters: - name: --destination-ports - short-summary: "Space-separated list of destination ports. This argument is supported for Nat and Network Rule." + short-summary: Space-separated list of destination ports. This argument is supported for Nat and Network Rule. long-summary: | Notice: When the parameter --rule-name is 'network_rule', --destination-ports is required. examples: