title: How to Start/Stop IIS on the target Windows server before deployment in Azure Devops Pipeline
body: <p>I created the step in Azure Devops to Start and Stop IIS Website but it is failing with below error message:</p>
  
  <p>**2020-05-23T10:28:04.7393424Z ##[section]Starting: Start
  2020-05-23T10:28:04.7659676Z </p>
  
  <p>2020-05-23T10:28:06.5436980Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" start site /site.name:"taxrpt-deva"
  2020-05-23T10:28:06.6132349Z ERROR ( message:The W3SVC service is not available - try starting the service first. )
  2020-05-23T10:28:06.7434786Z ##[error]Process 'appcmd.exe' exited with code '50'.
  2020-05-23T10:28:06.7680874Z ##[section]Finishing: Start
  **</p>
  
  <p><a href="https://i.stack.imgur.com/0N3IQ.png" rel="nofollow noreferrer">Azure IIS Web App Manage Screen Shot</a></p>