Shoaib Akhtar, Apologies for the delayed response.
To better assist you on this, are you leveraging Azure App Service Node Blessed Images or custom Docker Images? Does it work locally?
--Are you deploying separately from the ZIP package of your app? -if yes, since the usual deployment path \site\wwwroot\app_data\jobs\...
is read-only, you can't deploy WebJob files there. Instead, deploy WebJob files to \site\jobs\...
, which is not read only. WebJobs deployed to \site\wwwroot\app_data\jobs\...
and \site\jobs\...
both run.
- Running directly from a package makes
wwwroot
read-only. Your app will receive an error if it tries to write files to this directory. - TAR and GZIP formats are not supported.
--Nodejs on App Service Linux and why to avoid installing packages in startup scripts. If possible, move the logic contained in this, to more appropriate parts of development. Such as into the build itself, or into a post or pre deployment script.
--If you haven't done, you may leverage App Service diagnostics from Azure Portal> Navigate to your App Service app in the Azure Portal. (screenshot below)
Kindly let us know, I'll follow-up with you further.
--------
If the answer helped (pointed, you in the right direction) > please click Accept Answer