I'm building a very lightweight API using Azure Functions, one thing I'm concerned about is abuse of the functions. What's to stop someone hammering a single method and causing my costs to escalate? Are there any ways I can blacklist IP address' if they start acting suspicious?
I have a last resort of looking up the IP in Table Storage, but I'd ideally like to block the IP before it even makes it to the function, is this possible? (Programatically)
Nick.
In the Consumption plan, you're only billed for the time your function code actually runs. For HTTP triggered functions (or WebHooks) that won't include any time taken to receive or authorize a request and dispatch it to your code.
Assuming your function is secured (i.e. authLevel
is not anonymous
) only authorized requests can invoke it, so unauthorized requests won't incur you any executions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With