Windows Azure Web site Web site test environment

Source: Internet
Author: User

  Windows Azure Platform Family of articles Catalog

  

  We know that when using Azure Cloud service, there are 2 different environments, called the production environment and the staging environment.

Windows Azure Cloud Service (5) Transitions from a staging environment to a production environment

-production environment is the production environment, DNS address is the real DNS address

-Staging is the staging environment, and the DNS address is a random GUID address. We can test in the staging environment first, the test will be able to pass the staging environment through the swap VIP in the way of direct switching to the production environment.

- Note: Azure Cloud Service's production environment and staging environment are only for versions of Web applications deployed in Azure cloud service, not for Azure storage cloud storage versions and SQL Azure database version. If your production environment and test environment use different database connection strings, configure them in configuration pages such as Web. config.

In fact, there are similar features in Azure Web site, here is a brief introduction of the author.

  

1. First we create an empty Azure Web site project with the DNS information: http://leiwebsiteproduction.chinacloudsites.cn/

2. We click Create a successful Azure Web Site, then click on the options in the dashboard to add a new deployment slot. Such as:

  

  

3. In the popup window, enter the name of the new deployment slot leiwebsitestaging

  

Note the configuration source, if we have deployed the Web application in the production environment http://leiwebsiteproduction.chinacloudsites.cn/,

When you add a deployment slot, the code for the production environment is copied to the test environment.

4. At this point we have 2 sets of DNS information, as follows:

  

-The first line leiwebsiteproduction, is the production environment, the DNS information is http://leiwebsiteproduction.chinacloudsites.cn/

-Second behavior leiwebsiteproduction-leiwebsitestaging, is the test environment, the DNS information is:/HTTP leiwebsiteproduction-leiwebsitestaging.chinacloudsites.cn/

5. Then we follow the previous document content Windows Azure Web site (6) uses FTP to publish Azure Web siteand deploy the code to Azure Web site.

Note: Although the FTP publishing directory for both the production environment and the test environment is consistent, the FTP user name is not the same, such as:

The picture on the left is the production environment, and the picture on the right is the staging environment.

The code we release in production production is version 1.0, and the code released in the staging environment is version 2.0, such as:

  

6. Phased summary, we now have 2 different DNS addresses, corresponding to 2 sets of different Web application versions

Next, we assume that the staging transition environment has passed the QA test and can be migrated directly to the production environment, what should we do?

We selected staging transition environment, click the Swap icon, such as:

  

  

7. In the popup interface, the source selection staging

  

In other words, the transition environment staging the Web application code, migrated to the production production environment. This way the production Web application is upgraded to version 2.0. Such as:

  

  

Windows Azure Web site Web site test environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.