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.