TC and boot/shutdown cloud-based VMs

Hi all,

I am new in TC world so have really a basic knowledge about it. Our infrastructure is running on Azure (but my question is very generic and refers to other cloud providers as well). Our TC agents are also running on Azure but for most of a day those VMs are idle. From cost point of view it is bad and we would like to try to save a bit and optimize it. Is there any "native" way in TC to boot/shutdown cloud based VM based on some conditions (like before build job or after it has finished ?

0
7 comments
Avatar
Permanently deleted user

Any help with it please ?

0
Avatar
Permanently deleted user

Any help ?

0

Hi, sorry for the delay. In TeamCity we have the possibility of using Agent Cloud Profiles for when you are using Cloud providers for your agents: https://confluence.jetbrains.com/display/TCD10/TeamCity+Integration+with+Cloud+Solutions#TeamCityIntegrationwithCloudSolutions-TeamCitySetupforCloudIntegration

It should work with Azure, but as mentioned in that same article, you would need a non-bundled plugin linked there.

Please give it a try.

0
Avatar
Permanently deleted user

Hi, thanks for the URL. Where is the part of the configuration about starting / shutting down VMs with TC agents ?

0

Hi,

The section "preparing the virtual machine" finishes with the following sentence: "If you want TeamCity to start an existing virtual machine and stop it after the build is finished or an idle timeout elapses, the setup above is all you need." Please check that part

0
Avatar
Permanently deleted user

Hi,

I know this is an old post, but it looks to be the same issue I am having at my company. We can stop an agent using cloud profiles, but cannot start the agents? We've followed the guide and are using existing VMs but cannot get them to start and stop automatically.

0

Hi Andy,

please make sure to review the information in the docs linked above, as that's all that should be needed. If that doesn't work, please share a screenshot of your cloud configuration and expand on what exactly is the issue. Is TeamCity trying to start the agents but they won't start or does TeamCity not even try to? Which version are you running?

0

Please sign in to leave a comment.