Each night, we issue a Stop-AzureVM PowerShell command, and each morning we start them with Start-AzureVM. When stopping, we pass the -Force (and, more importantly, we do not pass the -StayProvisioned) flag to completely deallocate that VM. This releases the IP address and we are no longer charged. As a side-note, I can replicate this behavior just using the "Stop" and "Start" controls from the Azure Portal (web) Virtual Machine management console, so PowerShell is not a likely culprit.
I enabled logging on the Grid server and executed a Start/Stop on the VM. The only entry in the log is:
Quote:[16:31:07.8722-?-4] Node server started - listening on port 41141
If I restart the Grid service (from inside the VM) - and remove my IP addresses - the log looks like:
Quote:[16:24:32.2103-?-4] Node server started - listening on port 41141
[16:24:33.226-Core-4] Client connection accepted from [ip removed]:39794
[16:24:33.226-Core-4] Creating server-side handler for [ip removed]:39794
[16:24:33.226-Core-4] Describing self to [ip removed]:39794
[16:25:14.6009-Core-13] Client connection accepted from [ip removed]:65096
[16:25:14.6009-Core-13] Creating server-side handler for [ip removed]:65096
[16:25:14.6009-Core-13] Describing self to [ip removed]:65096
We have had similar issues with IIS availability immediately after a VM start-up. Azure will report that the VM is in a "Started" state, but the internal components haven't settled quite yet. I would not be surprised if something similar is happening here.
Let me know if I can test anything out for you. Thanks for your help.
-Seth