question

NICOLELEUNGBAISDOOCLLHKG-4873 avatar image
0 Votes"
NICOLELEUNGBAISDOOCLLHKG-4873 asked MayankBargali-MSFT commented

How to set up quota by subscription in Azure API portal

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
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @NICOLELEUNGBAISDOOCLLHKG-4873 Thank you for posting your question. We are looking into this and will get back shortly

Regards,
Oury.

1 Vote 1 ·

Hello @NICOLELEUNGBAISDOOCLLHKG-4873 Can you give some more details on where you doing this and how did you get to the error message. Please share some screen shot.

Regards,
Oury

1 Vote 1 ·

Hi Qury. Please kindly refer to the screen capture attached. Thank you! 96118-quota-problem.png


1 Vote 1 ·
quota-problem.png (94.1 KiB)
Show more comments

Hello @NICOLELEUNGBAISDOOCLLHKG-4873 The issue looks more likely an API Management issue nor an FHIR issue. I am working with the correct team to get some assistance on your issue. Thank you for your patience.
Regards,
Oury

0 Votes 0 ·

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT commented

Hi @NICOLELEUNGBAISDOOCLLHKG-4873

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.

98944-image.png

98896-image.png

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


image.png (25.6 KiB)
image.png (49.2 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MayankBargali-MSFT . Thanks a lot for your answer. It solved my problem!!

1 Vote 1 ·
MayankBargali-MSFT avatar image MayankBargali-MSFT NICOLELEUNGBAISDOOCLLHKG-4873 ·

@NICOLELEUNGBAISDOOCLLHKG-4873 Thanks for your response and glad to know that it has helped you to resolve your issue. Feel free to get back to us on Microsoft Q&A if you need any assistance in the future.

1 Vote 1 ·