I'm confused about deployment webjobs to azure.
I'm using .net core, so I manaully publish my webjobs in my deploy.cmd
file, for example like this:
call :ExecuteCmd dotnet publish "%DEPLOYMENT_SOURCE%\My.WebJobs\Mt.WebJobs.csproj" --output "%DEPLOYMENT_TEMP%\App_Data\Jobs\Continuous\MyWebJobs" --configuration Release
That then deploys the webjob to the deployment_temp
folder. After that, KuduSync kicks in and syncs to DEPLOYMENT_TARGET
which is d:\home\site\wwwroot
I can see in there if I look, that there is a App_Data\Jobs\Continuous\MyWebJobs
folder, and that ALL my files have been correctly deployed and sync-ed up to that folder.
However, when I run the webjob, it reports it's running from a totally different location (D:\local\Temp\jobs\continuous\MyCustomerIO\bp003r3f.h2g
). And when I look in that folder, I see most of my deployed webjob files, but some JSON configuration files that are in App_Data...
are missing from here.
So - why is my webjob running from here? And why are some of my deployed files missing?