Is there a way to stop an Azure site from WebJob?
I have an Azure site using Ghost that runs on Node. I am trying to schedule a backup of a Ghost database file, which ideally should be executed before the site is started. I can temporarily stop the site by ending the Node.exe process using the Kudu PowerShell console.
If I try to do the same from WebJob, the process will not end - presumably because WebJob works in a different context and does not see the Node.exe process.
Is there a way to stop / start a site from WebJob?
source
share