I need to check what environment, local or Azure, Azure Functions is running on.
Below is the code based on this and this
var isLocal = string.IsNullOrEmpty(GetEnvironmentVariable("WEBSITE_INSTANCE_ID")
Is this a documented feature, or stable feature?
If not, is there an alternative?
Azure function 2.x
VS 2017