I have a worker role that installs a legacy Windows service. If more than one instance of the service ever runs at the same time it would be problematic. So I'm trying to understand if this can ever happen (note we are only running 1 medium instance).

I've noticed with our Azure cloud service that the actual VM our site runs on gets switched/reimaged every week or so. I *assume* the way that Azure does this is that it builds a new VM with our web and worker roles then does a VIP switch from the old VM to the new VM when the new VM is ready. My question is, during this period of switching could the service be running on both the old and new VMs at the same time? Or does Azure not start the worker role until after the VIP switch?

Lots of assumptions there that I could be way off on, but hopefully you get the basic idea of the question. Any thoughts? Thanks in advance!