How to set up quota by subscription in Azure API portal

NICOLE LEUNG (BA-ISD-OOCLL/HKG) 151 Reputation points

How to set up quota by subscription in Azure API portal ?

When adding this policy to the API,
<quota calls="10000" bandwidth="40000" renewal-period="3600" />

The below warning would be shown.
Error in element 'quota' on line 18, column 9: Policy is not allowed in the specified scope

If i set up quota limitation by key, then its fine. However, the email notification only works for the quota limit set up by subscription
<quota-by-key calls="10" bandwidth="1000" renewal-period="700000" counter-key="@(context.Request.IpAddress)" />

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,651 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 66,421 Reputation points


    Apology for the delay as there was no "azure-api-management" tags added to your question. I have added the tag now and for APIM related issues you can always use this tag so the right team can assist you.

    I have looked into the screenshot you have shared and it looks like you are adding the policy to "All Operations"
    As per the quota policy usage the policy scopes is only at the product level.



    Feel free to get back to me if you have any queries or concerns.

0 additional answers

Sort by: Most helpful