Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
479 stars 306 forks source link

rate-limit-by-key #2319

Closed Yavari closed 8 months ago

Yavari commented 8 months ago

Rate limit is not working as expected and I have tested it several times now. It is only taking the first number in calls into account. So the rate limit below is limiting the calls to 1 per 300 seconds, same for calls="111", while calls="21" is limiting it to 2. How do I get in contact with someone at Azure troubleshoot this?


<policies>
    <inbound>
        <base />
        <rate-limit-by-key calls="11" renewal-period="300" counter-key="@(context.Subscription?.Key ?? "anonymous")" />
    </inbound>
    <backend>
        <base />
    </backend>
    <outbound>
        <base />
    </outbound>
    <on-error>
        <base />
    </on-error>
</policies>
`
malincrist commented 8 months ago

Hello @Yavari , please contact Azure support for assistance with this issue. You can do so by navigating to you APIM instance and go under Help -> Support + Troubleshooting image

Yavari commented 8 months ago

Thanks