Microsoft Azure Web sites Application and practice "2"--remote management of Microsoft Azure Web Site via local IIS

Source: Internet
Author: User
<span id="Label3"></p>Microsoft Azure Web Sites app and practice Series:<p><p>"1"--build your first Microsoft Azure Website</p></p><p><p>"2"--remote administration of Microsoft Azure Web Site via local IIS</p></p><p><p>"3"-online editing of the Microsoft Azure Web site through visual Studio online</p></p>Remote administration of Microsoft Azure Web Site via local IIS<p><p>In the previous blog post, we described the rapid build of Microsoft Azure Web Site. If you have previously contacted or used iis, I believe you will remember its simple and convenient management interface. Sign in to the Microsoft Azure Portal Administration site we can observe that the features listed here are not as rich as the IIS Admin Interface. Does this mean that our control of the site is only as much as it appears on the management portal? Not at All. Microsoft Azure Web site provides very flexible ways and means to manage all aspects. This article will then cover a combination of it with Iis.</p></p><p><p><strong>Local Environment preparation</strong></p></p><p><p>We need to install IIS locally and an IIS extension that can allow remote administration</p></p><p><p><span style="text-decoration: underline;">Windows</span> <span style="text-decoration: underline;">client operating system</span></p></p><p><p>For installation of iis, please refer to: http://www.iis.net/learn/install/installing-iis-7/installing-iis-on-windows-vista-and-windows-7</p></p><p><p>IIS Remote Management extension: Http://www.iis.net/downloads/microsoft/iis-manager</p></p><p><p><span style="text-decoration: underline;">Windows servers:</span></p></p><p><p>http://www.iis.net/learn/install/installing-iis-7/ Installing-iis-7-and-above-on-windows-server-2008-or-windows-server-2008-r2</p></p><p><p>You do not need to download additional extensions, but remember to load your own IIS management Console.</p></p><p><p><strong>Get Connection account information</strong></p></p><p><p>The user name and password required to download a file from the management portal to obtain a connection before the first Connection. The steps are as Follows:</p></p><p><p>1. Sign in to the Microsoft Azure Portal site;</p></p><p><p>2. Select the site you want to connect to from the list of Web sites;</p></p><p><p>3. Select Download Release file (Download The Publish Profile) in the Quick browse (quick Glance) in the lower right corner of the dashboard (Dashboard) of the site</p></p><p style="text-align: center;"><p style="text-align: center;"></p></p><p><p>4. Save the file locally and open it (you can use Notepad) to find the following information you need to use next</p></p> <ul> <ul> <li style="list-style-type: none;"> <ul> <li>PublishURL</li> <li>Msdeploysite</li> <li>Username</li> <li>Userpwd</li> </ul></li> </ul> </ul><p><p><strong>Connect to Microsoft Azure Web Site</strong></p></p><p><p>1. Open the IIS Admin interface and select the link section of the connection to the site (connect to a sites ...)</p></p><p style="text-align: center;"><p style="text-align: center;"></p></p><p><p>2. Enter the publishurl we received from the previous step as the server name, Msdeploysite as the site name, click Next</p></p><p style="text-align: center;"><p style="text-align: center;"></p></p><p><p>3. Enter the user name and password that you received from the previous Step. Click Finish. We can see the site of Azure Web site from the local IIS connections Section.</p></p><p style="text-align: center;"><p style="text-align: center;"></p></p><p><p>4. Select to see the features we can control locally (need to be installed locally, see the IIS Installation section at the beginning of this article for specific installation).</p></p><p style="text-align: center;"><p style="text-align: center;"></p></p><p><p></p></p><p><p><strong>from the IIS</strong> <strong>Interface Change Configuration</strong></p></p><p><p>For example, we will now generate the failed request trace log for all requests over 10 seconds (Wei Zhao in this log refer to the method of directly changing the configuration file and some related Investigations)</p></p><p><p>Double-click failed request tracking from the features view (Feature View) in the middle section of IIS (Failed request tracing Rules)</p></p><p><p></p></p><p><p>We can see that there is already a rule listed. This is because once the azure Web site has turned on failed record tracking from the management Portal's management interface, The record with the return code of 400-600 is tracked by Default.</p></p><p><p></p></p><p><p>Select the existing rule, Click Edit (edit.), Select time taken on the tracking condition page, change to 5, change the status code to 200-600;</p></p><p><p></p></p><p><p>Point to the End.</p></p><p><p><strong>Verifying changes</strong></p></p><p><p>The FTP information in the lower right corner of the Site's dashboard (Dashboard) (quick Glance) allows us to connect to the FTP space corresponding to the Azure Web site Content.</p></p><p><p>Under The/site/wwwroot Path of the remote FTP space, we can see a Web. config File. To download and view the file, we can see the following content included in the <configuration><system.webserver>. </system.webServer></Configuration> is the embodiment of the changes we have made to IIS Locally.</p></p><pre><span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">Tracing</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">tracefailedrequests</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">Remove</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">Path</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">="*"</span></span> <span style="color: #0000ff;"><span style="color: #0000ff;">/></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">Add</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">Path</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">="*"</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">Traceareas</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">Add</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">provider</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "ASP"</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">verbosity</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "Verbose"</span></span> <span style="color: #0000ff;"><span style="color: #0000ff;">/></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">Add</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">provider</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "ASPNET"</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">areas</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "infrastructure,module,page,appservices"</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">verbosity</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "Verbose"</span></span> <span style="color: #0000ff;"><span style="color: #0000ff;">/></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">Add</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">provider</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "ISAPI Extension"</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">verbosity</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "Verbose"</span></span> <span style="color: #0000ff;"><span style="color: #0000ff;">/></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">Add</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">provider</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "WWW Server"</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">areas</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "authentication,security,filter,staticfile,cgi,compression,cache,requestnotifications,module,rewrite" </span></span><span style="color: #ff0000;"><span style="color: #ff0000;">verbosity</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "Verbose"</span></span> <span style="color: #0000ff;"><span style="color: #0000ff;">/></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"></</span></span><span style="color: #800000;"><span style="color: #800000;">Traceareas</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">failuredefinitions</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">Timetaken</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "00:00:05"</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">Statuscodes</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "200-600"</span></span> <span style="color: #0000ff;"><span style="color: #0000ff;">/></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"></</span></span><span style="color: #800000;"><span style="color: #800000;">Add</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"></</span></span><span style="color: #800000;"><span style="color: #800000;">tracefailedrequests</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span><span style="color: #0000ff;"><span style="color: #0000ff;"></</span></span><span style="color: #800000;"><span style="color: #800000;">Tracing</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span></pre><p><p></p></p><p><p><strong>Note</strong></p></p><p><p>Notice that we just set the rules for failed tracking records to determine what will be Generated. Whether or not the failure tracking to generate this type of record is enabled or needs to be managed via the portal on the Configure (Configure) page of the Site.</p></p><p><p></p></p><p><p></p></p><p><p>Microsoft Azure Web sites Application and practice "2"--remote management of Microsoft Azure Web Site via local IIS</p></p></span>

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.