Building off of this question/answer on StackOverflow, I'm looking to make a single Azure instance run certain code at one time rather than have every instance run the code.
However, what I can't seem to find is how to determine if roles that are still in RoleEnvironment.CurrentRoleInstance.Role.Instances
are busy and/or healing. I would need this to hand over control over running my code to another instance if one is failing.
RoleInstance
doesn't seem to have any properties to determine current role status.