Post

Azure DevOps: ASP.Net CI/CD to Azure Web Apps

I was looking for a quick, screenshot-based, step-by-step guide on how to deploy ASP.Net sites to an existing Azure App Service instance using an Azure DevOps pipeline. Maybe it’s my search keywords, but bottom line is that I couldn’t find any. I guess it’s because this is so easy to do.

I did find this, this and this, but not exactly what I was looking for. These 3 links are still good though, but not for total beginners.

Anyway, here’s the quick step-by-step guide:

Pre-requisites:

  1. An Azure DevOps account
  2. An Azure account
  3. An Azure App Service instance
  4. An ASP.Net source code, pushed in your Azure DevOps repository

Step-by-Step:

  1. Login to your Azure DevOps account
  2. Go to Project –> Pipelines –> Builds
  3. Create a “New Build Pipeline” devops-aspnet-newbuild

  4. Click on the “use visual designer” link. (Note: Now, you can try creating a build pipeline using YAML, but since this blog is supposed to be like a “dummies” guide, I am using the visual designer). devops-aspnet-newbuild-1-visualdesigner

  5. Select your repository (you can get your repo from other sources if it’s not in Azure DevOps) devops-aspnet-newbuild-2-selectrepository

  6. Select the ASP Web App for ASP.Net template devops-aspnet-newbuild-3-template

  7. Populate the Azure Subscription and App Service fields devops-aspnet-newbuild-4-saveandqueue.png

  8. Save and Queue, and wait for your build to complete! devops-aspnet-newbuild-5-queued.png

devops-aspnet-newbuild-6-buildprogress.png

  1. Visit your app service URL and check if it deployed correctly.

devops-aspnet-deployedsite

That’s it!

This post is licensed under CC BY 4.0 by the author.

© Rafferty Uy. Some rights reserved.

Using the Chirpy theme for Jekyll.

The views and opinions on this blog are my own and do not represent those of my employer. Many of the articles here are proof-read and edited with generative AI, following my own system prompts and writing style. Everything published has been reviewed by me.