Deploy Web App In Microsoft Azure

For deploying an Asp.Net Core Web App in Microsoft Azure below are the prerequisites.

Prerequisites

  • Microsoft Azure Account
  • IDE, VS 2019
  • Basic knowledge of ASP.Next web application development

Introduction

Microsoft Azure is cloud computing service, as we know it provides service for PSI, where PSI stands for:

  • P: Platform
  • S: Software
  • I: Infrastructure

Traditionally, when we want to deploy a web app, we need to take care of security, scalability, and performance in the production server.

Now developers can hand over these responsibilities to cloud computing service(s); in our case Microsoft Azure.

For this, we will make use of “App Services”.

Log in to your Azure account and click on “App Services” on the dashboard.

Click on Create a resource

Create a resource

Click on “Web App”

Web App

Fill in the Project details

Project details

Click on “Next: Monitoring” which will redirect to the monitoring page.

Monitoring page

Click “Next: Tags” which will redirect Tag page. You will find information about the tag/value on the same page.

Tag page

After this click on “Next: Review + Create”. Review the summary and click on Create.

Review + Create

Click on “Create.” Space for deploying your app will be ready for you in the cloud with 1 GB space for a free account.

Create

Now switch to VS 2019. In VS 2019: Click on Create a new project.

Create new project

Select ASP .NET Core Web Application and create “Next”.

Web Application

After clicking Next, click on Create.

Click on Create

Check the below things and click on “Create.”

Check

After that, a web application will be created for you. Go to the index.html page and edit the content if you want. For instance, I changed “Welcome to my First Cloud APP”

First Cloud APP

After that sign in to VS 2019 to connect to your Azure Account. After signing in you will see your name on the top right corner of IDE.

Azure Account

Build and run the application.

Run application

Right-click on Project and click on “Publish.”

Publish

After that click Select “Azure”, click on “Next” and so on.

Azure

Publish Azure

After this click on “+” as shown below.

Ms account

Select from the dropdown that you already defined as ResourceGroup and Hosting Plan while creating a web app service in Azure cloud. Click on Create.

ResourceGroup

After clicking on “Create” wait for some time, you will see the below window and click on Finish. 

Finish

After that Click on Publish. Your app will be deployed in the cloud at “Site Url”

Site URL

At the site URL, you can see the deployed web APP

Deployed web APP

Summary

I tried to explain deploying the web app in Azure in the cloud as simply as possible. I hope it helps


Similar Articles