Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

Consumption plan is almost useless without dedicated IP

Open MhAllan opened this issue 2 years ago • 8 comments

In Microservices on Azure most people us CosmosDB heavily and it's firewall requires whitelisting IPs.

It is totally not acceptable from security point of view to whitelist all datacentre IPs. That makes azure function consumption plan almost a useless plan. And if we want to put each function in premium plan then:

  1. we are not serverless, that premium instance is a server. similar to having an app service running all time and pay for it
  2. expensive. and in that case I use AppService instead of azure function!!

MhAllan avatar Mar 22 '22 11:03 MhAllan

Hi @MhAllan Thank you for your feedback, let us check this internally and we will let you know about the findings!

Ved2806 avatar Mar 22 '22 13:03 Ved2806

Hi @ealsur Could you please help with this issue?

Ved2806 avatar Apr 12 '22 13:04 Ved2806

@Ved2806 I cannot help here, there is nothing related to my involvement with Functions that applies.

Any user trying to connect from an Azure Function to Cosmos DB using any of the SDKs and APIs will run through networking limitations.

The only thing I can see on the Cosmos DB documentation is that you don't need to whitelist all the individual IPs, you can whitelist the Azure datacenters: https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-configure-firewall#allow-requests-from-global-azure-datacenters-or-other-sources-within-azure

ealsur avatar Apr 12 '22 21:04 ealsur

@ealsur Thanks for reply, whitelisting all DC is risky, virtual networks require premium, that doesn't much option for consumption plan, so I ended up putting all functions on premium plans.

MhAllan avatar Apr 13 '22 08:04 MhAllan

@MhAllan Does putting all the functions in premium plan solved it? Please let us know if you need anything else. Thanks

Ved2806 avatar Apr 19 '22 13:04 Ved2806

@Ved2806 yeah that solves my problems, But we still have the consumption plan very far from being practical as cosmos db is the favourite database for microservices in Azure and usually database should be restricted access by IP filtering and private networks which consumption plan is not able to satisfy.

MhAllan avatar May 05 '22 04:05 MhAllan

Hi @ealsur Could you please look into this issue?

Ved2806 avatar Jul 12 '22 14:07 Ved2806

@Ved2806 - I already replied on this issue

ealsur avatar Jul 12 '22 15:07 ealsur

Hi @MhAllan Closing this issue as resolved. Thanks.

Ved2806 avatar Oct 04 '22 13:10 Ved2806