Search code examples
azureazure-devopsagentazure-container-instances

Azure DevOps Ephemeral agents not working


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.


Solution

  • 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!