Skip to content

How to use Update-NWFWFirewallPolicy (always get error 'parameter is invalid') #301

Answered by azbpa
azbpa asked this question in Q&A
Discussion options

You must be logged in to vote

After more trial and error I came up with this working example:

$Params = @{
        FirewallPolicyArn = $Firewall.Firewall.FirewallPolicyArn
        FirewallPolicy_StatefulEngineOptions_RuleOrder = $FirewallPolicy.FirewallPolicy.StatefulEngineOptions.RuleOrder
        FirewallPolicy_StatefulDefaultActions = $FirewallPolicy.FirewallPolicy.StatefulDefaultActions
        FirewallPolicy_StatefulRuleGroupReferences = $FirewallPolicy.FirewallPolicy.StatefulRuleGroupReferences
        FirewallPolicy_StatelessCustomActions = $FirewallPolicy.FirewallPolicy.StatelessCustomActions
        FirewallPolicy_StatelessDefaultActions = $FirewallPolicy.FirewallPolicy.StatelessDefaultActions
        Firewal…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by azbpa
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant