Deploy a Dotvvm/Asp.Net Core Application to an Azure Web App using just Git

Vincent Nwonah
DotVVM
Published in
2 min readJun 7, 2020
Dotvvm Logo

Introduction

There are several ways to deploy your applications nowadays, with advanced automation, CI/CD platform offerings, and much more. However, sometimes you really just need to quickly manually deploy a small application without all the bell or whistles, this article shows you how to deploy a DotVVM application to an Azure Web Application.

Prerequisites

To follow this article, you should already have the following

· A Dotvvm/Asp.Net Core Application ready for deployment and using git for source control

· An Azure account with a valid subscription

Creating an Azure Web App

Log into your Azure Account and create a new Web App, on the configuration form set publish to code, runtime stack should be .Net Core 3.1 (LTS) and Operating System should be Linux. Remember to use to set an App Service Plan to avoid unnecessary charges.

When done, click review and create and wait a few minutes for the web app to be provisioned.

Deploying the Web App

When the provisioning finishes:

· Click on Go to resource, next, find Deployment Center

· Click Local Git then select App Service build service, Click continue

· Click finish

· Click on Deployment Credentials

· Copy the Git Clone URL and add it to your local git repo using the command git remote add azure <copied url here>

· Run the command git push azure and copy the username and password from the azure portal when prompted for a username and password.

· Let the deployment complete and browse to your web app URL after a few minutes to see your newly deployed app

Conclusion

And there we have it, each time you make changes to your app you can just commit your changes and push to azure with git push azure and a deployment is triggered. Thanks for reading.

--

--