Azure runtime features RoleEnvironment.IsEmulated
property that is meant to tell whether the code is running in Azure Compute Emulator or in real Azure cloud.
Yet the usual approach seems to be obtaining RoleEnvironment.DeploymentId
and checking whether it looks like a GUID representation. This approach is suggested as an answer to this and this questions.
Why is RoleEnvironment.IsEmulated
not used? Was it just introduced in later versions of the runtime or is there anything wrong with it?