I’m trying to setup a basic Azure Devops pipeline that will listen for commits on a repo then build an ASP.NET Core app and deploy it to a self-hosted Windows IIS server. I have already installed the Devops Pipeline agent on the IIS server and it appears to work as expected. However now I am trying to follow the steps to create an “Environment” and add the server to it in my project and in order to register it as a resource I am provided with a script that appears to be installing yet another identical agent on the machine.
Do I actually need to install another copy of the same agent just to register the server in my environment? Or is it possible to use the existing agent for that purpose?
I searched the Microsoft docs and the internet at large but I couldn’t find an answer. I did find something to the effect that it’s bad practice to have several Azure agents on a self-hosted server, hence my question.