0
votes

I am trying to configure an Ephemeral agent in Azure DevOps (https://github.com/microsoft/azure-pipelines-ephemeral-agents) but it does not work :(

I created the Azure services: A container registry, one VNET with one subnet and one NGS asociated to it, and finaly one storage connected with the VNET.

List of Azure resources List of Azure resources

Then I created a reposotory in the container registry from the official GitHub proyect (https://github.com/microsoft/azure-pipelines-ephemeral-agents/tree/master/AgentImages/Basic/Ubuntu)

enter image description here

In Azure DevOps I created an agent pool and a personal token with required permissions to read and manage agent pools. Finaly I configured the task:

enter image description here

When I launch my pipepline, the container instance is created, but it seems it cant't create the agent, cause is always waiting and finaly the pipeline fails.

enter image description here enter image description here enter image description here enter image description here

I have try a lot of configurations and variations, but allways same behaibor. I don't have more ideas. Anyone are running ephemeral? What's is my mistake? any idea?

Thanks.

2

2 Answers

0
votes

You need to notice the following items:

  1. You have to have a dedicated subnet in your virtual network just to run the ephemeral agents.

  2. The agent must be running in the same Azure location as the virtual network.

  3. Azure Resource Manager Service service connections that use certificates are not supported.

Also, check the sample pipeline to see whether it helps you:

https://github.com/microsoft/azure-pipelines-ephemeral-agents#sample-pipeline

0
votes

finally I solved my problem. My fault was I used the base OS docker image, not the ephemeral image :( When I have created the image correctly in the repository, it works!