use the ContainerBinding.IsDeployedToCloud property, which handles exception when Azure SDK is not installed.