Is there a way to add rate limiting to azure VM? We have a VM that generates images dynamically and a few users are abusing it by hitting the server hundreds of times at once. I implemented an application level check that stores the user's IP address along with the time and if the same IP made a request more than 5 times in the last minute, it will block the request.

It's helping but I don't like this solution and would prefer something that would block the user from even reaching the server to save resources.

Cloudflare has this feature but would prefer to just use azure instead and take advantage of the benefits Azure is currently offering us.

  • It may be possible with Azure Web Application Firewall, but I'm not sure if you can customise a rule exactly the way that you need. give it a try and let us know the result. :) Jul 20, 2017 at 9:23

2 Answers 2


You do not say what platform your image generation service uses. That would help guide answers.

For example, if you're running ASP.NET, request throttling was added in version 4.7.


You might use Azure Network Access Control List. Check - https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-acl

  • I don't see any option to do rate limiting. Only option to block ips permanently.
    – Bruno
    Jul 20, 2017 at 3:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .