I am using Azure web jobs to schedule certain tasks. The web job get deploy successfully in an Azure web app, but I am not able to relatively determine the path to the app_data folder where to log files should be stored. (web job is located in d:\home\site\wwwroot\App_Data\jobs\triggered\webjobname)
The following (absolute) path works:
<file value="d:\\home\\site\\wwwroot\\App_Data\\Logs\\WebJobLog.txt" />
The following paths do not work:
<file value="../../App_Data/Logs/WebJobLog.txt" />
<file value="/App_Data/Logs/WebJobLog.txt" />
<file value="~/App_Data/Logs/WebJobLog.txt" />
Anyone knows how to set the file path relatively?