If the CloudClient looses the instance, it can run forever consuming money. Which is undesirable. Here's what can be done to avoid this (this feature requires reading CloudInstanceUserData mentioned above):
https://github.com/JetBrains/teamcity-azure-plugin/blob/master/teamcity-azure-plugin-agent/src/main/java/jetbrains/buildServer/clouds/azure/IdleShutdown.java
If the CloudClient looses the instance, it can run forever consuming money. Which is undesirable. Here's what can be done to avoid this (this feature requires reading CloudInstanceUserData mentioned above):
https://github.com/JetBrains/teamcity-azure-plugin/blob/master/teamcity-azure-plugin-agent/src/main/java/jetbrains/buildServer/clouds/azure/IdleShutdown.java