Error "Policy not allowed in this sku 'Consumption'" RRS feed

  • Question

  • I am attempting to put a rate limit for my Azure Function App using the Consumption tier. I'm not sure why I keep getting the error "Error in element 'rate-limit-by-key' on line 5, column 10: Policy is not allowed in this sku 'Consumption'".

    From what I've seen online, I should be able to apply a rate limit to my function. Location is Central US. Is this a bug or an actual limitation?

            <base />
            <set-backend-service id="apim-generated-policy" backend-id="wtestlauncher" />
            <rate-limit-by-key calls="10" renewal-period="60" counter-key="@(context.Subscription?.Key ?? "anonymous")" />
            <base />
            <base />
            <base />

    Monday, April 6, 2020 10:41 PM

All replies