I have written an Azure (with http trigger method) function and it is hosted in Azure. However when I develop client applications which target the azure function I don't want to call the hosted Azure function, instead I am running the function from Visual studio and redirect the calls to this local copy.
Is there any way to keep this local copy running outside Visual studio environment in local machine? Perhaps like a windows service?
Any reference to an article would be great. Let me know if the question is not clear.
As Kane says, if you dont want to based on Visual Studio, you can use azure function core tools.
After install function core tools, you can use command func host start
to run your function app.
Please note that you can only start one function app at a time locally, because the ports occupied by the azure function are all 7071 on local machine. The local is mainly used for testing.