Skip to content

Commit

Permalink
Policies should be global, remove location parameter and default it (A…
Browse files Browse the repository at this point in the history
  • Loading branch information
digavino authored and tamirkamara committed May 3, 2019
1 parent 859275d commit 11e1faf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/front-door/azext_front_door/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,12 @@ def update_fd_routing_rules(instance, frontend_endpoints=None, accepted_protocol

# region WafPolicy
def create_waf_policy(cmd, resource_group_name, policy_name,
disabled=False, mode=None, location=None, tags=None):
disabled=False, mode=None, tags=None):
client = cf_waf_policies(cmd.cli_ctx, None)
from azext_front_door.vendored_sdks.models import (
WebApplicationFirewallPolicy1, ManagedRuleSets, PolicySettings, CustomRules)
policy = WebApplicationFirewallPolicy1(
location=location,
location='global',
tags=tags,
policy_settings=PolicySettings(
enabled_state='Enabled' if not disabled else 'Disabled',
Expand Down

0 comments on commit 11e1faf

Please sign in to comment.