I am running my project, connected to a localhost database. Its required for me to create an azure function for continue my implementation. Is it anyhow possible to connect to the localhost db from azure function portal?
2
-
Not much specific to Azure Functions here. Your localhost has to be accessible from the internet to be accessible for Functions.Mikhail Shilkov– Mikhail Shilkov2017-10-30 07:01:02 +00:00Commented Oct 30, 2017 at 7:01
-
1Maybe stating out the obvious, but do keep in mind (depending on your selected plan) your functions aren't running on the same underlying server every time they are invoked.Jan_V– Jan_V2017-10-30 09:46:33 +00:00Commented Oct 30, 2017 at 9:46
Add a comment
|
1 Answer
If you want your azure resources to connect to your on-premise resources you can take a look at VNETs or Hybrid Connections
note: both are not supported in Consumption Plan functions, only dedicated plan functions.
If you are asking about local development of functions, then you can run functions locally on your machine while you are working on them and they will have connection to any thing on your local dev box. See this for how to develop Azure Functions locally