Determine if app is running in azure or not.

Posted by longday on Stack Overflow See other posts from Stack Overflow or by longday
Published on 2009-05-17T04:29:38Z Indexed on 2010/06/08 14:32 UTC
Read the original article Hit count: 128

Filed under:
|

I have an asp.net mvc app that is built to run as standard web app in iis or in the cloud.

I need to be able to determine if the app is being hosted in azure(dev fabric or cloud) or if it is being run as standard web app under iis.

How can I tell if it is running in cloud?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about Azure