Hello everyone! Been trying to add a new waf polic...
# getting-started
b
Hello everyone! Been trying to add a new waf policy to the already existing app gateway using StackRefence but it keeps giving me this error:
a
You seem to be passing strings to .get instead of using the input parameters
Copy code
def update_waf_policy_association(app_gateway: str, resource_group: str, waf_policy_id: str):
    # Get the existing Application Gateway
    app_gateway = azure_native.network.ApplicationGateway.get("appGateway", "appGatewayRG") # <--- strings
Also you should probably be using network.get_application_gateway_output to get the app gateway