Node.js app detecting running on Azure

I'm writing a node.js app that I would like to be easily deployed on Azure as well as other platforms. How can I detect if I am running under Azure?

The environment does not seem to have any special variables. process.env.port contains the pipe such as \\\\.\\pipe\\2f95e604-fc02-4365-acfc-010a26242d02 which is all I can think of so far.

Detailed environment data is available through the azure module, but I only want to pull that in if I am running on Azure.

I am not exactly sure but have you tried process.platform ?

@Dick are you looking to detect if you are running in an Azure Website, A cloud service or both?