views:

70

answers:

1

Can an application recognize whether it runs in a cloud or on a normal server?

If that is possible, I could automatically let the application deside wehere to store f.e. user pictures: IO or blob storage.

+3  A: 

Check the RoleManager.IsRoleManagerRunning property. This will be true if your app is running under Azure Fabric. Note however, that this can be the development fabric (the fabric that is running on your development machine during your dev phase) or the actual Azure cloud fabric.

kwill
thanks! this works exactly as expected
n26