How to deploy ASP.Net Core app using Azure Pipeline (Classic Interface) on Azure App Service and Virtual Machine

Amr Younis
3 min readOct 31, 2020

--

In this article, we will cover how to deploy a web app on a Virtual machine and Azure App Service

Prerequisites

  • Azure App Service
  • Azure DevOps Account

Deploy .Net Core App

  • Go to you DevOps and create a new project enter the project name, description and choose the visibility then click create
  • Push your code to the created project
  • From the Build tab select Pipeline then click on create a Pipeline of type classic editor and select your project and target branch and click continue.
  • From the template page select, ASP.Net Core template click apply at tasks tab review all tasks (Restore, Build, Test, Publish, Publish Artifacts) and disable Test if you don’t have test projects, form triggers tab enable continuous integration, add master branch into branch filter this option allows the build pipeline to run automatically when any pull-request created on the master branch now click save and lets goto next step.
  • From the release, tab create a new release add release name, and select Azure App Service deployment as a template then select the previously created build as build artifacts then click on the created deployment trigger button and enable pull request trigger, and select target branch if needed.
  • Click on the Tasks tab select the deployment process add stage name and select subscription add app type then select app service name finally click save.
  • Now create a new branch and the create pull-request to be merged on the master to test the build automated running and release creation
  • after the publish successes goto azure app-service deployment URL and check your app

--

--

Amr Younis
Amr Younis

Written by Amr Younis

0 Followers

Software Engineer

No responses yet