power on agent when necessary

Answered

I have build agents setup in Azure.   They are not "Cloud Agents", so to speak, as they are always available when necessary.   I would like to setup a shutdown schedule for them, but I don't know how I could tell TeamCity to start them up when needed.   

Is this possible?   Say I configure them to shut down at 7pm.  The next time someone runs a build, it would be great if the machine would boot first and get ready, and then run the job.   

0
4 comments
Avatar
Permanently deleted user

Hello Chris,

 

Could you please explore and reply if TeamCity Integration with Cloud Solutions and Microsoft Azure cloud Plugin is the solution you are looking for?

There are two variants of the plugin:

and 

 

0
Avatar
Permanently deleted user

Hello Chris,

 

Please prepare your ARM machines as discribed in the blog.

0
Avatar
Permanently deleted user

I don't think I'm clear.   My machines are currently running and are ARM-based machines.   All I'm looking to do is stop and start them, not recreate them every time.

Recreating them every time might be an option if I could connect the machines to a static public IP address every time.   There's an option to "create public ip address" which would work, but I require the agents to have the same address every time due to some firewall policies that are in place.  Even just stopping and starting the machines, though, would save me some Azure spend.

0
Avatar
Permanently deleted user

Chris,

You can try to reuse allocated virtual machines, please find more details: Reuse allocated vms in clone behaviour.

And you may want to vote for the [Feature] Start/stop with resource manager as well.

0

Please sign in to leave a comment.