Make it easy for an instance to get deployment details
It should be easy for a worker instance to find out if it's deployment is in a production or staging status. See the thread at the bottom on background for why this would be useful.
The easiest would be to have access to a new property in Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment that would tell me if the deployment is in a production or staging slot.
This may be hard since the deployment status is probably not available in the instance itself... so the next best thing would be to add the SubscriptionId and the ServiceName to the RoleEnvironment. That way at least I can just get the deployment status with just one call to the REST API.
This would really help us, we have a worker which reads messages from the Service Bus and we want to avoid that the staging instance picks up messages as well. The current solution takes a lot of calls and is causing a delay before every read.