0

I want to configure Azure DevOps to deploy code (website) from git repository to my on premise server.

Dale K
  • 25,246
  • 15
  • 42
  • 71

1 Answers1

0

For ASP.NET Website you should first pushed the entire code from local to Azure DevOps.

Then create a Build Definition in Azure DevOps to build your project.

Some steps for your reference:

  1. Install IIS Web App Deployment Using WinRM extension since you want to deploy app to your web server

2 . Add Windows Machine File Copy step to copy files to your web server

enter image description here

  1. Add WinRM-IIS Web App Management step to create or update web site in IIS

enter image description here

  1. Add WinRM-IIS Web App Deployment step to deploy app to web site (step 4)

enter image description here

You could also take a look at this thread: Automated Deployement of ASP.Net MVC Website In IIS server with a Continuous Deployment

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62