0

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.

Daniel
  • 148
  • 1
  • 12

2 Answers2

1

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!

Daniel
  • 148
  • 1
  • 12
  • Great to see your issue is solved. Please [Accept it as an Answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) once you can, this can be beneficial to other community members reading this thread. – Cece Dong - MSFT Oct 08 '20 at 01:23
  • I am also trying the same. But for me, once job is done, agent is not visible in the DevOps portal as expected. But in azure portal, container instance is still available, not yet deleted automatically though it's stopped. Any idea on this? – jrh May 23 '23 at 20:37
0

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

Cece Dong - MSFT
  • 29,631
  • 1
  • 24
  • 39
  • My Azure DevOps instance is in East US 2 and my Virtual Network is in West Europe. Maybe it is the problem. I am going to check. – Daniel Oct 07 '20 at 11:10