I have an Azure web app that uses a startup task batch file (addtask.cmd) to install a small heartbeat utility into the scheduler.
If I'm testing locally or in the Azure staging environment, I dont want to install the heartbeat utility.
How can I prevent the startup task, or the batch file, from running in those environments?
I can probably detect local environment by checking for my machine name, but how would you detect running in the staging environment?