Search code examples
azure-devopsazure-pipelineswindows-server-2019

Azure DevOps: how to install a windows feature which requires a restart?


Azure DevOps: how to install a windows feature which requires a restart?

I need to install this:

Install-WindowsFeature WebDAV-Redirector

But it needs a restart, I dont think thats possible on a pipeline agent

I need it to start: Set-Service WebClient -StartupType Automatic


Solution

  • As you agreed, if you indeed need start up, the solution should be use self host agent and then run pipeline based on it.