I'm just starting my first steps on the subject and I need help please. My application runs with Docker. I have a Azure Virtual Machine also with Docker installed, and the source code repository in DevOps. It is taking me a while to configure the CI/CD to deploy my application.
How to configure CI/CD for Azure Virtual Machine?
375 Views Asked by ldiaz997 At
2
There are 2 best solutions below
2

You must add a self-hosted build agent to your VM and register it on your Azure DevOps project: Self-hosted Linux agents. Then you may run your pipelines on the VM (use the correct pool value). Here you may find a similar question: Create docker image using azure build pipeline, self-hosted agent and docker-desktop
I'm creating again and answering my own question because when I created it another time, it turned out to be "too big, and no one was going to give me a 10-page answer." Now after a lot of effort I achieved the goal and I want to share the knowledge acquired.
What I did was:
Pipeline:
I hope it is helpful to someone else