Hi, wondering if anyone can help me with <native.f...
# azure
c
Hi, wondering if anyone can help me with native.frontdoor.Policy as I'm starting to go a little crazy. I've defined it simply as:
Copy code
const wafPolicy = new azure.frontdoor.Policy(`waf-policy-${appEnvironment}`, {
    resourceGroupName,
    policyName: `waf-policy-${appEnvironment}`,
    location: "global",
    sku: {
        name: azure.cdn.SkuName.Standard_AzureFrontDoor,
    },
    policySettings: {
        state: "Enabled",
        mode: "Prevention",
    },
});
But I just keep getting this error when running
pulumi up
Copy code
azure-native:frontdoor:Policy (waf-policy-prod):
    error: Status=400 Code="BadRequest" Message="WebApplicationFirewallPolicy validation failed. More information "Policy ArmResourceId has incorrect formatting"."
And I don't know how to fix it...
Figured it out -
policyName
can only be letters and numbers, so changing it to
${appEnvironment}WafPolicy
fixed the issue
I think the error message could probably be improved here