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
Click on “Web App”
Fill in the Project details
Click on “Next: Monitoring” which will redirect to the monitoring page.
Click “Next: Tags” which will redirect Tag page. You will find information about the tag/value on the same page.
After this click on “Next: Review + Create”. Review the summary and click on 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.
Now switch to VS 2019. In VS 2019: Click on Create a new project.
Select ASP .NET Core Web Application and create “Next”.
After clicking Next, click on Create.
Check the below things and click on “Create.”
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”
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.
Build and run the application.
Right-click on Project and click on “Publish.”
After that click Select “Azure”, click on “Next” and so on.
After this click on “+” as shown below.
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.
After clicking on “Create” wait for some time, you will see the below window and click on Finish.
After that Click on Publish. Your app will be deployed in the cloud at “Site Url”
At the site URL, you can see the 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