We have a single multi-stage Azure Pipeline that builds our solution and deploys various services to Azure VMs in multiple enviroments (dev, test, etc.).
One of the services we need to deploy is a Windows service (built as a console application). Since there does not seem to be a specific task available for this, we figure that we need to copy files manually and install the Windows service with PowerShell.
Creating a task to install the service with PowerShell should be fairly trivial, but we wonder what the best/easiest way to copy files from the build agent to the VMs might be?
Note that VMs are set up as resources under our Azure environments, and that we do not have admin credentials we can use with the “Windows machine file copy” task.