.Net6 + Azure + Azure DevOps

Deploy .net 6 App to Azure from Azure DevOps using Pipelines

Sibeesh Venu
4 min readDec 15, 2021

Working with both Azure and Azure DevOps is always fun, and the possibilities of automation are endless. I have written many articles on these topics and you can read them here. As you all know that the .net6 is been a talk in the market and I can’t wait to try out things there. Here in this post, we will see how to use the Azure DevOps pipeline to build, restore and deploy the .net6 application to Azure Web App Service. Let’s get started.

At this point, I will assume that you have a .net6 application, Azure Web App Service, and Azure DevOps project with permission to configure the Pipeline and to add a new service connection to the Azure Resource Group. If you are not sure about how to configure the Service Connection to the Azure Resource Group, this post will help you.

Create the YAML files needed

We will be creating 3 YAML files as listed below.

  1. A template file with all the tasks, so that we can reuse them for the environment-specific pipelines
  2. A pipeline for Test environment
  3. A pipeline for the production environment

Template file



Sibeesh Venu

An engineer by profession and writer by passion. Author at Sibeesh Passion, Microsoft MVP (2016–2022). Software Engineer @ Microsoft