Deploying a Simple App

Introduction

In this day and age it’s absolutely essential to have experience with cloud-computing. The “cloud” allows us to access software and data from anywhere at any time, powered by the internet. These technologies have spread very fast amongst big companies since the mid-2000s and now they’re ubiquitous in organizations of all sizes. That means experience with cloud-computing is a requirement in the majority of programming jobs ads. The biggest player in cloud-computing is AWS (from Amazon), with 32% of market share (as of 2020), against Azure’s 20%. And it’s totally ok to choose AWS as your cloud-provider, but we’re sticking to Azure since it’s Microsoft’s solution and it integrates seamlessly with .NET’s tools.

The amount of services offered by cloud companies is enormous and ever-growing. It’s easy to get lost. The good news is that we don’t need to know too much to declare we “have experience with it”. Basically we need to be able to deploy static websites and full stack apps connected to a database and handle authentication.

In the C# Academy, the cloud area is initially split in four projects. In the first we will learn how to deploy a simple app with no database back-end, just to get familiar with Azure Dashboard and integration with VS2022. In the second, we will expand on this knowledge by adding a SQL Server, which can be slightly more complexity. And on the third we will deploy a .NET Web API along with a React front-end, a very common stack in enterprise. As a bonus, we will learn the basics of Azure Functions, “a serverless solution that allows you to write less code, maintain less infrastructure, and save on costs”. So let’s jump into it!

Requirements

  • This project has only one requirement: To publish a .NET Web App To Azure.
  • You can choose any type of .NET app: Razor Pages, MVC or Blazor.
  • You can use an existing app, provided it doesn't need a database connection.
  • You won't need authentication or authorization.
  • You should publish your app to an 'Azure App Service'.

Resources

There’s a lot to learn in Azure and it’s easy to get lost. At this stage we suggest you read about Azure to get some context and then get into the specifics of how to deploy an app:

Video Tutorial

Provided you have a Microsoft and and Azure accounts (see links above in case you don’t), you can follow this super quick tutorial where you’ll learn how to deploy to Azure using Visual Studio 2022:

Log in to mark this article as read and save your progress.
An unhandled error has occurred. Reload 🗙