Microsoft Azure – Websites

There is a detailed description of how to create websites on Azure in the “Compute Module” chapter. The Azure Websites service is called “Web Apps” throughout the admin portal, so don’t be confused. This chapter will look at some more terms associated with Azure websites. In a normal hosting environment, developers often encounter problems when deploying their websites to production. The Azure Websites service ensures that developers have fewer problems when deploying their websites. Also, the Azure website service is included in PaaS (Platform as a Service). This means that websites can be deployed without having a complete infrastructure.

Create a website in the Azure Management Portal

Just to get back on track with website creation, let’s take Take a look at these steps on how to create a website in the Azure Management Portal.

Step 1 − Sign in to your management portal.

Step 2 − Click ‘New’ in the bottom left corner of the screen → Calculate → Web Apps → Quick Create.

Create AMP Website

Step 3 − Enter the details as shown in the image above and click ‘Create Web Application ‘.

Step 4 − Go back to the websites in your admin portal and you will see it listed. Click the URL.

Web Apps

You will be taken to the website that you just created.

Successful web apps

Azure website deployment from Visual Studio

We are going to publish our website from Visual Studio on the domain name we just created. After creating a website or web application in Visual Studio.

See Also:  How to Create an App from Scratch in 2023 [Follow These 8 Steps]

Step 1 − Go to Solution Explorer and right-click the name of the website/ web application.

Step 2 − Choose ‘publish’.

Visual Studio website

Step 3 – In this step, you need to connect to the Azure subscription account in order. Click ‘Import’.

Publish web

Step 4 − Click ‘Add Azure Subscription’.

Add Azure Subscription

Step 5 − For the first time, you will need to ‘Download Subscription File’.

Download Subscription File

Step 6 − The above step will download a file with a .publishsetting extension to your computer (if you are not logged in, you will be prompted to please log in before downloading).

Step 7 − Go back to the same pop-up window and browse to the file you just downloaded.

Visual Studio Website

Step 8 − Now expand e l drop down menu and you will see the websi tests available in your subscription. As in the image below you can see two websites. Let’s select ‘tutorialsPoint’.

Visual Studio website

Step 9 − On the next screen, leave the defaults on. There are many options for public methods. We need the ‘Web Deploy’ method here. Click ‘Validate connection’.

Step 10 − On the next screen, return to the default values.

Step 11 − Finally, on the last screen, click publish.

Visual website Studio

Step 12 − Go to the URL of the website and you will see its content.

Visual Studio Website

You can see how easy it is to deploy a website on Azure using Visual Studio. You can make changes in Visual Studio and publish them from there. This makes application testing very easy.

See Also:  Getting Started with Visual Studio Code and Building HTML Websites

Website Monitoring

In the admin portal, if you go into the website dashboard, you can see the figures related to the website. You can control many things related to your website from this section of your administration portal. You can view the website metrics, create a backup, configure settings and scale the website.

Step 1 − To view the website metrics, select monitor in the top menu and you will see the following screen.

Website Monitoring

Step 2 − Go to the website and select ‘Dashboard’ from the top menu.

Step 3 − Scroll down and you will see the following information.

Website monitoring

Publishing in stages

Windows Azure allows you to deploy a website in stages. deployment.

Staging publishing

Add a deployment slot for testing before from production

Basically, this feature allows you to deploy your website in a separate space for testing purposes and then change the space, if something goes wrong, you can simply go back to the previous version by changing the space. Sometimes applications do not perform well as expected on a large scale, this feature comes in handy in such situations.It makes deployment tasks very easy for developers and organizations.

.

Leave a Reply

Your email address will not be published. Required fields are marked *