Share via

Cannot set quote policy in API Management Standard v2

Krzysztof Madej 66 Reputation points
2024-07-30T09:22:08.1066667+00:00

In the documentation, we have an example:

<policies>
    <inbound>
        <base />
        <quota calls="10000" bandwidth="40000" renewal-period="3600" />
    </inbound>
    <outbound>
        <base />
    </outbound>
</policies>

There is also note that it applies to All API Management tiers

However, when I try to create that policy I got an error:

Error in element 'quota' on line 4, column 6: Policy is not allowed in the specified scope

How to properly setup quote policy in Azure API Management Standard v2

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

0 comments No comments
{count} votes

Answer accepted by question author
  1. JananiRamesh-MSFT 29,446 Reputation points Moderator
    2024-07-30T11:09:06.3+00:00

    @Krzysztof Madej Thanks for reaching out. As mentioned in the doc quota policy applies to all APIM tiers but it must be applied at product scope. You will get this error if you try applying it on API or operation scope

    User's image

    do let me know incase of further queries, I would be happy to assist you.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.