- Yes for the consumption/premium tiers. If your function app is deployed into a VNET, then you could leverage the
AzureFrontDoor.Backend
service tag instead. - This is something you will have to check in your code (in most frameworks, this would be a simple middleware)
Another way to protect your function apps that you could consider would be to use Azure API Management. Depending on the tier of APIM you choose, your setup will vary
- For Premium Tier, you could deploy it into multiple regions and set each regional gateways IP in your function apps access restriction settings. Configuration for your APIs is synchronized by default.
- For Basic/Standard Tier, you would have to manually deploy multiple APIM instances to each region and set each instances IP in your function apps access restriction settings. You could then set them up as backends in Front Door or Traffic Manager. Configuration for your APIs would have to be manually synchronized as well.
- For Consumption Tier, you would have to manually deploy multiple APIM instances to each region but the IP of each instance isn't static, so you will have to rely on other means to protect your function apps like OAuth or the function key itself. You could then set them up as backends in Front Door or Traffic Manager. Configuration for your APIs would have to be manually synchronized as well.