You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AzureWebJobsScriptRoot variable is not defined on Azure Functions. The code below returns no value. System.Environment.GetEnvironmentVariables(EnvironmentVariableTarget.Process)["AzureWebJobsScriptRoot"];
However, %HOME%\site\wwwroot will be returned based on below:
The path to the root directory where the host.json file and function folders are located. In a function app, the default is %HOME%\site\wwwroot.
Key Sample value
AzureWebJobsScriptRoot %HOME%\site\wwwroot
It returns correct value locally, not %HOME%\site\wwwroot
Update
Is this a bug with Azure Functions?
If so, what is an alternative solution?
Before the issue is fixed by Microsoft, can this variable, AzureWebJobsScriptRoot, be defined myself to "%HOME%\site\wwwroot" on Azure?
The text was updated successfully, but these errors were encountered:
PingPongSet
changed the title
AzureWebJobsScriptRoot variable has no value
AzureWebJobsScriptRoot variable has no value on Azure Functions
Mar 10, 2019
PingPongSet
changed the title
AzureWebJobsScriptRoot variable has no value on Azure Functions
AzureWebJobsScriptRoot variable is not defined on Azure Functions
Mar 11, 2019
AzureWebJobsScriptRoot variable is not defined on Azure Functions. The code below returns no value.
System.Environment.GetEnvironmentVariables(EnvironmentVariableTarget.Process)["AzureWebJobsScriptRoot"];
However,
%HOME%\site\wwwroot
will be returned based on below:AzureWebJobsScriptRoot
It returns correct value locally, not %HOME%\site\wwwroot
Update
Is this a bug with Azure Functions?
If so, what is an alternative solution?
Before the issue is fixed by Microsoft, can this variable, AzureWebJobsScriptRoot, be defined myself to "%HOME%\site\wwwroot" on Azure?
The text was updated successfully, but these errors were encountered: