0
votes

Our scenario, we currently have bamboo set up with remote agents on each of them. We want to go to azure, where we can automatically ramp up only the servers we need.

I set up vmss to boot up another server with the remote agent using auto-scaling, but every time the server fires up, it can create a new/different server name, and creates a new Agent ID. which needs human interaction/approval. Which doesn't really help the hands off approach.

I was thinking of using Availability Sets, where I can have it set up to have say five servers in waiting, and only boot one up, if the auto-scaling says so. I figure I would only have to boot up once to approve the agents, but then they would boot up without any user interaction. I do not see anything through google, etc, to make this happen. Any ideas? Solutions?

1

1 Answers

-1
votes

I would only have to boot up once to approve the agents, but then they would boot up without any user interaction.

I guess you want to use Azure create VMs automatically, without user interaction, if I understand it correctly, I think we should use Azure VMSS to achieve that.

In Azure, we can use your image to create VMSS in same availability set, Azure will scale VMSS instance in or out automatically, without user interaction.

Azure VMSS use autoscale rule to scale in or scale out, we can according CPU percentage threshold or other metrics to scale VMSS in or out. Like this:

enter image description here

More information about VMSS, please refer to this official article.


Update:

Sorry for my misunderstand.
In your scenario, I think we can create VMs and configure IP addresses as static, and copy the IP address and agent ID to your Bamboo settings.

we can create 5 VMs in the same Vnet, and use automation runbook to start or shutdown VM. enter image description here

More information about use automation to start or shutdown VM, please refer to this link.