Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Migration Azure web site practice (2), basic use of Azure web site

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

To sum up, Azure web app has the following major advantages:

1. Managed services, no need to care about the maintenance of the underlying hardware and OS

two。 There are many languages supported, and the mainstream languages basically support it.

3. Can be combined with platforms such as Git,Github,VSTS for continuity and deployment

4. Can be scaled automatically according to the load

5. You can use different slot to switch between Prod and test environment

Having said that, let's take a look at how to create Azure web app.

The way to create an Azure web app is very simple. Log in to Azure Portal first.

Please log on to the following address for the Century Internet version.

Portal.azure.cn

For the international version, please log on to the following address

Portal.azure.com

Find the application service after logging in

Then click add and select web App. Generally speaking, we can choose web App if we want to host the website.

You can enter the application name here. The application name is the domain name of your website. The domain name in azure web app is fixed, and the Century Internet version is chinacloudsites.cn. What we can choose is to configure a second-level domain name that we need. When the website is deployed, we can access the website through this second-level domain name.

Of course, this does not mean that we have to use this domain name. In general, we use our own domain name to visit the website. We can also add our own domain name to Azure web app, set the corresponding CNAME record, and then use our own domain name to access azure web app.

Resource group is a logical concept of Azure. Resources can be put into the same resource group according to their own needs. For example, the resources of an application can be placed in the same resource group.

The final application plan needs to be explained again.

The application plan determines the performance and functionality of this webapp. There are currently five different levels of azure webapp, including

Free of charge

Share

Basic

Standard

Advanced

The corresponding functions of each level are different.

For details, please refer to the following web page

Https://www.azure.cn/zh-cn/pricing/details/app-service/

After creating the Azure web app, you will see the following interface in portal

So how do we deploy the code to azure web site?

In fact, Microsoft provides us with several methods. The simplest way is that we can upload the code to the storage space of azure web site through FTP. In addition, we can also deploy code from local Git or GitHub. At present, this function has been changed from the previous deployment option to the deployment center.

Take the simplest FTP as an example, after selecting FTP, click on the dashboard

You can see that the relevant information about FTP is displayed here, and then you can connect to FTP through this information, either Filezilla or windows's built-in file manager.

If you want to add your own domain name, you can add the hostname to the custom domain

If you want to upload SSL certificates, you can upload pfx or cer certificates in the SSL settings. Azure web app will automatically help you complete the background configuration, eliminating the previous process of importing certificates and configuring IIS in VM.

In addition, if you want to add a test environment, it is very simple to directly select the deployment slot and add a deployment slot. The newly added deployment slot can directly clone the settings of the original deployment slot.

After the addition is completed, you can see that there are two deployment slots with a status of running, but the production traffic can be seen to be 100%, indicating that this slot is currently carrying traffic.

After clicking the switch, the two slot can be switched, and then another slot can be used to carry the traffic. To some extent, the seamless switching between Prod and Non Prod can also be realized.

If you want to change the running environment of the application, or adjust some parameters, you can adjust them directly in the application settings, such as index, connection string, virtual directory, etc.

In addition, you can also set up an automatic backup in the backup, so that when something goes wrong, we can restore it directly from the backup.

That's all the basic use is. Let's take a look at how to migrate Azure web app.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report