I have installed and configured a VM on Azure with TeamCity Server and a VM image with a TeamCity Agent.
There appears to be an issue with (de)privisioning the agents.
It seems to work correctly on first run after saving the Agent Cloud Config:
- A new VM is provisioned as shown in the Agents / Cloud tab
- Queued builds are started and run
- The VM is deprovisioned and removed after 30 minutes
This is the point where it stops working. When going to the Agent / Cloud tab it shows a red exclamation mark with the following message:
No agents connected after instance start. Please check the image has TeamCity agent configured and it can connect to the server using http://10.x.x.x address. Start the instance manually to check for agent again.
If at this point I change 'Agent Cloud > Agent Images > Name Prefix' to some different value and save this everything start over from #1.
What could be going wrong?