title: Azure cloud service - Does VIP swap cause OnStop() to be invoked?
body: <p>I have an Azure cloud service with a web and a worker role. When an Azure cloud service is stopped, the OnStop() method is invoked. </p>
  
  <p>On a VIP swap, does it call the same OnStop() method on the outgoing service deployment as soon as the VIP swap is requested? 
  <a href="http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleentrypoint.onstop.aspx">http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleentrypoint.onstop.aspx</a></p>
  
  <p>Also, what is the order of events during the VIP swap? Presumably, the worker OnStart() method of the new deployment is run at some point, but is this before the OnStop() of the outgoing deployment? I am trying to understand whether the two worker role versions (incoming and outgoing deployment) will be running concurrently, or whether there will be a short gap in worker role service. </p>