title: How to access Elasticsearch with Azure Functions?
body: <p>I have an Elasticsearch cluster that I need to access using an Azure Functions App. The current way to access it is via an IP whitelist. I've created my consumption plan Azure Functions and noticed that the IP address kept changing and after further research found that I'd need to whitelist the whole Azure Cloud which is not a secure option in our case. So I've upgraded Azure Functions to Premium plan and thus the VNet Integration appeared in the app settings allowing me to create a Virtual Network and a static Outbound IP Address.</p>
  <p>Now it is working.</p>
  <p>But since I'm using the Premium plan and the other mentioned services, the cost went up.</p>
  <p>I've experimented with Azure Data Factory in the past and there was an option to install a local Integration Runtime so when ADF was accessing Elasticsearch via the Local Integration Runtime, it worked. Is there something similar I can use with Azure Functions? Like a Data Gateway I can install on a local server that is already whitelisted on Elasticsearch and all I'd need to do is connect from Azure Functions through it?</p>
  <p>I guess the ideal scenario I'm looking for is to be able to use a Consumption Plan on Azure Functions.</p>
  <p>Kind Regards,
  Andrei</p>