<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Sumit M's Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/sumitm/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/sumitm/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:50:29 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Using the Portal: Auto-upgrade mode to manage the Windows Azure guest OS for your service</title>
      <link>https://docs.microsoft.com/archive/blogs/sumitm/using-the-portal-auto-upgrade-mode-to-manage-the-windows-azure-guest-os-for-your-service</link>
      <pubDate>Mon, 07 Jun 2010 07:00:37 GMT</pubDate>
      <dc:creator><![CDATA[SumitMehrotra]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sumitm/2010/06/07/using-the-portal-auto-upgrade-mode-to-manage-the-windows-azure-guest-os-for-your-service/</guid>
      <description><![CDATA[Some time back I posted about the new feature that was release for Windows Azure: Windows Azure...]]></description>
      <content:encoded><![CDATA[<p>Some time back I <a href="http://blogs.msdn.com/b/sumitm/archive/2010/05/12/introducing-auto-upgrade-mode-to-manage-the-windows-azure-guest-os-for-your-service.aspx">posted</a> about the new feature that was release for Windows Azure: <b>Windows Azure guest OS</b> <b>auto-upgrade</b>. In this post we walk through the feature using the Developer Portal UI. The portal makes enabling auto-upgrade mode for your service even easier.</p>  <h4>&#160;</h4>  <p><b>1. </b><b>New Deployment: </b>For a new deployment, auto-upgrade mode is chosen by default on the portal. <b></b></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/31/63/metablogapi/7610.clip_image003_2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-31-63-metablogapi/7610.clip_5F00_image003_5F00_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image003" border="0" alt="clip_image003" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/31/63/metablogapi/1643.clip_image003_thumb.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-31-63-metablogapi/1643.clip_5F00_image003_5F00_thumb.jpg" width="644" height="412" /></a><b></b></p>  <p><b>2. </b><b>Existing Deployment: </b>If you already have a service with a fixed osVersion, you can <b>change the mode to Auto-upgrade </b>on the portal by :<b></b></p>  <p><b>a. </b>Clicking on OS Settings <b></b></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/31/63/metablogapi/7026.clip_image005_2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-31-63-metablogapi/7026.clip_5F00_image005_5F00_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image005" border="0" alt="clip_image005" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/31/63/metablogapi/0675.clip_image005_thumb.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-31-63-metablogapi/0675.clip_5F00_image005_5F00_thumb.jpg" width="644" height="230" /></a><b></b></p>  <p><b>b. </b>Changing the OS upgrade mode on the OS Settings page<b></b></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/31/63/metablogapi/6471.clip_image007_2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-31-63-metablogapi/6471.clip_5F00_image007_5F00_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image007" border="0" alt="clip_image007" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/31/63/metablogapi/1258.clip_image007_thumb.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-31-63-metablogapi/1258.clip_5F00_image007_5F00_thumb.jpg" width="644" height="275" /></a><b></b></p>  <p><b></b></p>  <p>3. <b>Current OS of your deployment</b></p>  <p>You can easily find out the version of the OS that your service is running on the portal. </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/31/63/metablogapi/5140.clip_image009_2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-31-63-metablogapi/5140.clip_5F00_image009_5F00_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image009" border="0" alt="clip_image009" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/31/63/metablogapi/7534.clip_image009_thumb.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-31-63-metablogapi/7534.clip_5F00_image009_5F00_thumb.jpg" width="644" height="231" /></a></p>  <p>NOTE: If your service is not using the latest available OS, you will get a warning about it on the portal, like so:</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/31/63/metablogapi/8117.clip_image010_2.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-31-63-metablogapi/8117.clip_5F00_image010_5F00_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image010" border="0" alt="clip_image010" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/31/63/metablogapi/6888.clip_image010_thumb.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-31-63-metablogapi/6888.clip_5F00_image010_5F00_thumb.png" width="644" height="399" /></a></p>]]></content:encoded>
    </item>
    <item>
      <title>Introducing: Auto-upgrade mode to manage the Windows Azure guest OS for your service</title>
      <link>https://docs.microsoft.com/archive/blogs/sumitm/introducing-auto-upgrade-mode-to-manage-the-windows-azure-guest-os-for-your-service</link>
      <pubDate>Wed, 12 May 2010 01:28:04 GMT</pubDate>
      <dc:creator><![CDATA[SumitMehrotra]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sumitm/2010/05/12/introducing-auto-upgrade-mode-to-manage-the-windows-azure-guest-os-for-your-service/</guid>
      <description><![CDATA[Summary       Today we released the Windows Azure guest OS Auto-upgrade feature to help you keep...]]></description>
      <content:encoded><![CDATA[<h2>Summary    <p></p> </h2>  <p class="MsoNormal">Today we released the <b style="mso-bidi-font-weight: normal">Windows Azure guest OS</b> <b style="mso-bidi-font-weight: normal">Auto-upgrade</b> feature to help you keep your service running on the latest operating system available for Windows Azure. The platform <b style="mso-bidi-font-weight: normal">automatically upgrades </b>your service to use the latest OS whenever it becomes available <u>without you have to worry about it</u>. This helps you keep your service running on the<u> most secure OS available for Windows Azure </u>with no extra effort. </p>  <p></p>  <p></p>  <p class="MsoNormal">When you create a new service on Windows Azure and do not specify a particular OS Version to use in your Service Configuration file (.cscfg), your service will be created in auto-upgrade mode. For an existing service you can choose to change mode from Manual to Auto using this new feature set. </p>  <p></p>  <p></p>  <p class="MsoNormal">This feature is currently available via an attribute in the Service Configuration (.cscfg) file. It will soon be available even more conveniently on the Developer Portal. </p>  <p></p>  <p></p>  <h2>What is OS Upgrade?    <p></p> </h2>  <p class="MsoNormal">In Windows Azure, instances of your service run in a Virtual Machine, with an operating system installed on it. The operating system in use today is a customized OS designed for the Windows Azure environment and is substantially compatible with Windows Server 2008 SP2. </p>  <p></p>  <p></p>  <p class="MsoNormal">We try to keep this OS updated with the latest <a href="http://www.microsoft.com/technet/security/current.aspx">security fixes released for Microsoft Windows Server OS</a> and that are applicable to Windows Azure Operating System as well. We release an updated version of the Windows Azure OS, roughly on a monthly schedule. The list of OS releases can be found <a href="http://msdn.microsoft.com/en-us/library/ee924680(v=MSDN.10).aspx">here</a>. </p>  <p></p>  <p></p>  <h2>OS upgrade support till now</h2>  <p class="MsoNormal">Up till now, users had the ability to perform an OS Upgrade for their service in a <b style="mso-bidi-font-weight: normal">manual mode</b>, by using the <span style="font-family: &quot;Courier New&quot;">osVersion</span> attribute in Service Configuration (.cscfg) file. </p>  <p></p>  <p></p>  <blockquote>   <p style="text-indent: -0.25in; mso-list: l1 level1 lfo1" class="MsoListParagraphCxSpFirst"><b style="mso-bidi-font-weight: normal"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">1.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span></b><b style="mso-bidi-font-weight: normal">New Deployment: </b>When a service is deployed for the first time the user can specify the <span style="font-family: &quot;Courier New&quot;">osVersion</span> attribute in their .cscfg file. E.g.<b style="mso-bidi-font-weight: normal"> </b>      <p></p>   </p>    <p></p> </blockquote>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt; </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">&lt;ServiceConfiguration xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; serviceName=&quot;&quot; <b style="mso-bidi-font-weight: normal"><span style="background: yellow; mso-highlight: yellow">osVersion=&quot;WA-GUEST-OS-1.1_201001-01</span></b>&quot; xmlns=&quot;http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration&quot;&gt; </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt"></span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">… </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">&lt;/ServiceConfiguration&gt; </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt"></span>    <p>&#160;</p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle">If nothing is specified, the platform picks the latest OS available at the time of deployment and fixes the services on this OS. E.g. a new service deployed before today with <span style="font-family: &quot;Courier New&quot;">osVersion</span> would be fixed to use version WA-GUEST-OS-1.2_202003-01. </p>  <p></p>  <p></p>  <blockquote>   <p style="text-indent: -0.25in; mso-list: l1 level1 lfo1" class="MsoListParagraphCxSpLast"><b style="mso-bidi-font-weight: normal"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">2.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span></b><b style="mso-bidi-font-weight: normal">Existing Deployment: </b>To upgrade the OS for an existing deployment, the user will need to perform a configuration update with a new value for the <span style="font-family: &quot;Courier New&quot;">osVersion</span> attribute<b style="mso-bidi-font-weight: normal"> </b></p> </blockquote>  <blockquote>   <p style="text-indent: -0.25in; mso-list: l1 level1 lfo1" class="MsoListParagraphCxSpLast" align="left">When the user requests an OS upgrade, the platform performs a regular <a href="http://msdn.microsoft.com/en-us/library/ee517255.aspx">In-Place upgrade</a> of the service, by walking the upgrade domains. </p> </blockquote>  <h2>The new OS Auto-upgrade feature </h2>  <h2>&#160;</h2>  <p class="MsoNormal">With the new feature coming online today, users can set up their service for OS auto-upgrades very simply by using the same Service Configuration (.cscfg) based mechanism. </p>  <p></p>  <p></p>  <blockquote>   <p style="text-indent: -0.25in; mso-list: l2 level1 lfo2" class="MsoListParagraph"><b style="mso-bidi-font-weight: normal"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">1.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span></b><b style="mso-bidi-font-weight: normal">New Deployment </b>      <p></p>   </p>    <p></p> </blockquote>  <p style="margin-left: 0.5in" class="MsoNormal">You can use the configuration file to set the auto-upgrade mode. </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt; </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">&lt;ServiceConfiguration xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; serviceName=&quot;&quot; <b style="mso-bidi-font-weight: normal"><span style="background: yellow; mso-highlight: yellow">osVersion=&quot;*</span></b><span style="background: yellow; mso-highlight: yellow">&quot;</span> xmlns=&quot;http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration&quot;&gt; </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt"></span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">… </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">&lt;/ServiceConfiguration&gt; </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><b style="mso-bidi-font-weight: normal"></b>    <p>&#160;</p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle">If the <span style="font-family: &quot;Courier New&quot;">osVersion</span> attribute is not specified, the service is put into auto-upgrade mode by default. </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"></p>  <p>&#160;</p>  <p></p>  <blockquote>   <p style="text-indent: -0.25in; mso-list: l2 level1 lfo2" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">2.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span><b style="mso-bidi-font-weight: normal">Existing Deployment: </b>If you already have a service with a fixed osVersion, you can <b style="mso-bidi-font-weight: normal">change the mode to Auto-upgrade </b>by updating the configuration for your service with <b style="mso-bidi-font-weight: normal"><span style="font-family: &quot;Courier New&quot;; background: yellow; mso-highlight: yellow">osVersion = “*”</span></b>. </p>    <p></p>    <p></p> </blockquote>  <p class="MsoListParagraphCxSpLast"><b style="mso-bidi-font-weight: normal"></b>    <p>&#160;</p> </p>  <p></p>  <h2>Service Management APIs    <p></p> </h2>  <p class="MsoNormal">With this new feature, we are also introducing a couple of additions to Service Management APIs </p>  <p></p>  <p></p>  <blockquote>   <p style="text-indent: -0.25in; mso-list: l0 level1 lfo3" class="MsoListParagraphCxSpFirst"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">1.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span><b style="mso-bidi-font-weight: normal">Getting the OS Version for your Service</b> </p>    <p></p>    <p></p> </blockquote>  <p class="MsoListParagraphCxSpMiddle">The <a href="http://msdn.microsoft.com/en-us/library/ee460804.aspx">GetDeployment</a><b style="mso-bidi-font-weight: normal"> </b>API now supports getting the OSVersion of your service. </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"></p>  <p>&#160;</p>  <p></p>  <p class="MsoListParagraphCxSpMiddle">Given below is the output from <a href="https://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=windowsazuresamples&amp;ReleaseId=3233">CSManage</a> tool to get the version of the OS for my service: </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">&gt;csmanage /view-deployment /hosted-service:td-tnv1-we<span style="mso-spacerun: yes">&#160;&#160; </span>/slot:production </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt"></span>    <p>&#160;</p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">Using certificate: CN=SUMITM2.redmond.corp.microsoft.com </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">Getting Deployment </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">Name:7dce3813-eb2c-4101-af21-752e9785d9c2 </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">Label:td-tnv2-we </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">Url:http://td-tnv1-we.cloudapp.net/ </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">Status:Running </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">DeploymentSlot:Production </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">PrivateID:cefbd53a10fa4593891eb671f84c2469 </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">UpgradeDomainCount:1 </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">RoleList contains 2 item(s). </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>RoleName: Thumbnails_WorkerRole </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span></span><b style="mso-bidi-font-weight: normal"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; background: yellow; mso-bidi-font-size: 10.0pt; mso-highlight: yellow">OperatingSystemVersion : WA-GUEST-OS-1.3_201004-01</span></b><b style="mso-bidi-font-weight: normal"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; mso-bidi-font-size: 10.0pt"> </span>      <p></p>   </b></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>RoleName: Thumbnails_WebRole </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><b style="mso-bidi-font-weight: normal"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160; </span><span style="background: yellow; mso-highlight: yellow">OperatingSystemVersion : WA-GUEST-OS-1.3_201004-01</span> </span>      <p></p>   </b></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">RoleInstanceList contains 2 item(s). </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>RoleName: Thumbnails_WorkerRole </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>InstanceName: Thumbnails_WorkerRole_IN_0 </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>InstanceStatus: Ready </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>RoleName: Thumbnails_WebRole </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>InstanceName: Thumbnails_WebRole_IN_0 </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>InstanceStatus: Ready </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">Operation ID: 84cad57a5a1f41b18228226bfef1ad26 </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">HTTP Status Code: OK </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpLast"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt">StatusDescription: OK </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"></p>  <p>&#160;</p>  <p></p>  <blockquote>   <p style="text-indent: -0.25in; mso-list: l0 level1 lfo3" class="MsoListParagraphCxSpFirst"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">2.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span><b style="mso-bidi-font-weight: normal">Getting a list of OSs available on Windows Azure.</b> </p>    <p></p>    <p></p> </blockquote>  <p class="MsoListParagraphCxSpMiddle">The APIs support getting a list of guest operating system version available. Here’s the <a href="http://msdn.microsoft.com/en-us/library/ff684168.aspx">documentation</a> for the API. </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle">Given below is the output from <a href="https://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=windowsazuresamples&amp;ReleaseId=3233">CSManage</a> tool to get the list of OSes using the APIs. The output shows that there are 4 releases of the OS available. All of them are available as choices for the <span style="font-family: &quot;Courier New&quot;">osVersion</span> attribute (<span style="font-family: &quot;Courier New&quot;">IsActive = True</span>). One of these (<span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">WA-GUEST-OS-1.3_201004-01)</span> is the latest release available (<span style="font-family: &quot;Courier New&quot;">IsDefault = True</span>).<span style="mso-spacerun: yes">&#160; </span>If the service was on auto-upgrade mode, it would be running on the latest OS release currently. </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt"></span>    <p>&#160;</p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">&gt;csmanage.exe /list-operating-systems </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt"></span>    <p>&#160;</p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">Using certificate: CN=&lt;EDITED&gt; </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">Listing OperatingSystems </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">OperatingSystemList contains 4 item(s). </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: #0070c0; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System Version:WA-GUEST-OS-1.0_200912-01 </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: #0070c0; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System Label:Windows Azure Guest OS 1.0 (Release 200912-01) </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: #0070c0; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System IsDefault:False </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: #0070c0; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System IsActive:True</span><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System Version:WA-GUEST-OS-1.1_201001-01 </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System Label:Windows Azure Guest OS 1.1 (Release 201001-01) </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System IsDefault:False </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System IsActive:True </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: #0070c0; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System Version:WA-GUEST-OS-1.2_201003-01 </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: #0070c0; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System Label:Windows Azure Guest OS 1.2 (Release 201003-01) </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: #0070c0; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System IsDefault:False </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: #0070c0; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System IsActive:True </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System Version:WA-GUEST-OS-1.3_201004-01 </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System Label:Windows Azure Guest OS 1.3 (Release 201004-01) </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><b style="mso-bidi-font-weight: normal"><span style="font-family: &quot;Courier New&quot;; background: lime; mso-highlight: lime">Operating System IsDefault:True</span></b><b style="mso-bidi-font-weight: normal"><span style="font-family: &quot;Courier New&quot;"> </span>      <p></p>   </b></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operating System IsActive:True </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">Operation ID: 2be9091a155347aab9d57e86f09f82a7 </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">HTTP Status Code: OK </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt">StatusDescription: OK </span></p>]]></content:encoded>
    </item>
    <item>
      <title>February 2010 release of Windows Azure Tools and SDK</title>
      <link>https://docs.microsoft.com/archive/blogs/sumitm/february-2010-release-of-windows-azure-tools-and-sdk</link>
      <pubDate>Mon, 01 Feb 2010 16:27:00 GMT</pubDate>
      <dc:creator><![CDATA[SumitMehrotra]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sumitm/2010/02/01/february-2010-release-of-windows-azure-tools-and-sdk/</guid>
      <description><![CDATA[After a long haitus (read: vacation), I am pleased to be back. 
&nbsp;And what better time to be at...]]></description>
      <content:encoded><![CDATA[<P>After a long haitus (read: vacation), I am pleased to be back. </P>
<P>&nbsp;And what better time to be at it than today, when Windows Azure announced the <A href="http://blogs.msdn.com/windowsazure/archive/2010/02/01/windows-azure-platform-now-generally-available-in-21-countries.aspx" mce_href="http://blogs.msdn.com/windowsazure/archive/2010/02/01/windows-azure-platform-now-generally-available-in-21-countries.aspx">general availability for the platform</A>&nbsp;in 21 countries. </P>
<P>&nbsp;I am also pleased to announce the release the <A href="http://blogs.msdn.com/windowsazure/archive/2010/02/02/windows-azure-tools-and-sdk-1-1-released.aspx" mce_href="http://blogs.msdn.com/windowsazure/archive/2010/02/02/windows-azure-tools-and-sdk-1-1-released.aspx">February 2010 (v1.1) release of the Tools and SDK</A> today. This release supports a couple of new features in the platform, namely Windows Azure Drives and OS Versions. </P>
<P><A href="http://blogs.msdn.com/windowsazure/archive/2010/02/02/beta-release-of-windows-azure-drive.aspx" mce_href="http://blogs.msdn.com/windowsazure/archive/2010/02/02/beta-release-of-windows-azure-drive.aspx">Windows Azure Drive</A> is available in Beta form and the SDK allows you to use it in your simulation environment as well as in the production cloud today. In order to take advantage of Windows Azure Drive in your application, you need to choose the right version of the Guest Operating System for your application. This&nbsp;SDK now allows you to specify the OS Version as an attribute in your .cscfg file. </P>
<P>You can find more information on&nbsp;the supported Guest OS versions in the <A href="http://blogs.msdn.com/windowsazure/archive/2010/02/02/beta-release-of-windows-azure-drive.aspx" mce_href="http://blogs.msdn.com/windowsazure/archive/2010/02/02/beta-release-of-windows-azure-drive.aspx">Windows Azure Guest OS Versions and SDK Compatibility Matrix</A>. &nbsp;</P>
<P>Happy developing!</P>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Windows Azure Walkthrough: Simple Logging</title>
      <link>https://docs.microsoft.com/archive/blogs/sumitm/windows-azure-walkthrough-simple-logging</link>
      <pubDate>Wed, 25 Nov 2009 10:32:57 GMT</pubDate>
      <dc:creator><![CDATA[SumitMehrotra]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sumitm/2009/11/25/windows-azure-walkthrough-simple-logging/</guid>
      <description><![CDATA[With Windows Azure Diagnostics, applications can perform logging&#160; using the familiar .Net...]]></description>
      <content:encoded><![CDATA[<p style="margin-left: 0.5in" class="MsoNormal">With Windows Azure Diagnostics, applications can perform logging&#160; using the familiar .Net Trace() APIs. </p>  <p></p>  <p></p>  <p style="margin-left: 0.5in" class="MsoNormal">In this post we will create a new Cloud Service project using and look at the wiring that is done automatically to make Windows Azure Diagnostics, and specifically simple logging, work. <span style="mso-spacerun: yes">&#160;</span> </p>  <p></p>  <p></p>  <h4><font color="#0000ff">Simple Logging in a new Cloud Service project</font> </h4>  <h2 style="margin-left: 0.5in"><font color="#0000ff">     <p></p>   </font></h2>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpFirst"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">1.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span>Open Visual Studio as Administrator </p>  <p></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">2.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span>Click on File | New | Project… </p>  <p></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">3.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span>Select Visual C# | Cloud Service | Windows Azure Cloud Service </p>  <p></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">4.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span>In the ‘New Cloud Service Project’ wizard select ‘ASP.Net Web Role’ and ‘Worker Role’ and click OK. </p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">&#160;&#160;&#160;&#160;&#160;&#160; <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_4.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_4.png"><img style="border-right-width: 0px; margin: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_1.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_1.png" width="431" height="271" /></a> </p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-no-proof: yes"><shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><stroke joinstyle="miter"></stroke><formulas><f eqn="if lineDrawn pixelLineWidth 0"></f><f eqn="sum @0 1 0"></f><f eqn="sum 0 0 @1"></f><f eqn="prod @2 1 2"></f><f eqn="prod @3 21600 pixelWidth"></f><f eqn="prod @3 21600 pixelHeight"></f><f eqn="sum @0 0 1"></f><f eqn="prod @6 1 2"></f><f eqn="prod @7 21600 pixelWidth"></f><f eqn="sum @8 21600 0"></f><f eqn="prod @7 21600 pixelHeight"></f><f eqn="sum @10 21600 0"></f></formulas><path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></path><lock aspectratio="t" v:ext="edit"></lock></shapetype><shape style="width: 351.75pt; height: 220.5pt; visibility: visible; mso-wrap-style: square" id="_x0000_i1034" type="#_x0000_t75"><imagedata o:title="o:title" src="file:///C:\Users\sumitm\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"></imagedata></shape></span></p>  <p></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">5.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span>In Solution Explorer, expand the References in WebRole1. A reference<span style="mso-spacerun: yes">&#160; </span>to <font face="Courier New">Microsoft.WindowsAzure.Diagnostics.dll</font> has been added. This is the dll that exposes the diagnostics configuration and management APIs.</p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">&#160;&#160;&#160;&#160;&#160; <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_6.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_6.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_2.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_2.png" width="273" height="238" /></a> </p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-no-proof: yes"><shape style="width: 182.25pt; height: 159pt; visibility: visible; mso-wrap-style: square" id="Picture_x0020_4" type="#_x0000_t75" o:spid="_x0000_i1033"><imagedata o:title="o:title" src="file:///C:\Users\sumitm\AppData\Local\Temp\msohtmlclip1\01\clip_image002.png"></imagedata></shape></span></p>  <p></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">6.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span>Open WebRole.cs in WebRole1 project.</p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">&#160;&#160;&#160;&#160;&#160;&#160; <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_8.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_8.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_3.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_3.png" width="257" height="223" /></a> </p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-no-proof: yes"><shape style="width: 196.5pt; height: 171pt; visibility: visible; mso-wrap-style: square" id="Picture_x0020_5" type="#_x0000_t75" o:spid="_x0000_i1032"><imagedata o:title="o:title" src="file:///C:\Users\sumitm\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png"></imagedata></shape></span></p>  <p></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">7.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span>A new using statement that has been added to this file</p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">&#160;&#160;&#160;&#160;&#160; <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_10.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_10.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_4.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_4.png" width="297" height="43" /></a> </p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpLast"><span style="mso-no-proof: yes"><shape style="width: 294pt; height: 39.75pt; visibility: visible; mso-wrap-style: square" id="_x0000_i1031" type="#_x0000_t75"><imagedata o:title="o:title" src="file:///C:\Users\sumitm\AppData\Local\Temp\msohtmlclip1\01\clip_image004.png"></imagedata></shape></span></p>  <p></p>  <p></p>  <p style="margin-left: 0.75in" class="MsoNormal"><span style="mso-tab-count: 1">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>This brings in the Windows Azure Diagnostics name space into the role. </p>  <p></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpFirst"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">8.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span>Going further down in WebRole.cs, the following line of code is found in <font face="Courier New">WebRole.OnStart()</font> method.</p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpFirst">&#160;&#160;&#160;&#160;&#160; <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_12.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_12.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_5.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_5.png" width="423" height="73" /></a> </p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">This line of code starts up the Diagnostic Monitor, mentioned in<a href="http://blogs.msdn.com/sumitm/archive/2009/11/18/introducing-windows-azure-diagnostics.aspx"> my earlier post</a>. This is the component that runs along with the role and is responsible for the <b style="mso-bidi-font-weight: normal">collection </b>of diagnostic data on the node. </p>  <p></p>  <p></p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">This line of code passes in the configuration setting name that is equal to the connection string for the storage account that Diagnostic Monitor needs to use to <b style="mso-bidi-font-weight: normal">transfer </b>the diagnostic data to. </p>  <p></p>  <p></p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">NOTE: The configuration setting name can be any name that define in the *.cscfg file. </p>  <p></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">9.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span>Open up <font face="Courier New">ServiceDefinition.cscfg</font> to see what the connection string looks like.</p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">&#160;&#160;&#160;&#160;&#160;&#160; <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_14.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_14.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_6.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_6.png" width="742" height="74" /></a> </p>  <p></p>  <p></p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-no-proof: yes"><shape style="width: 468pt; height: 44.25pt; visibility: visible; mso-wrap-style: square" id="_x0000_i1029" type="#_x0000_t75"><imagedata o:title="o:title" src="file:///C:\Users\sumitm\AppData\Local\Temp\msohtmlclip1\01\clip_image006.png"></imagedata></shape></span></p>  <p></p>  <p></p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">The default VS template sets up the connection string name as ‘<font face="Courier New">DiagnosticsConnectionString’</font> and the value as ‘<font face="Courier New">UseDevelopmentStorage=true</font>’. This particular connection string sets up Diagnostics Monitor to use Development Storage account.&#160; </p>  <p></p>  <p></p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpLast">The connection string can be changed to point to a cloud storage account as well as shown below </p>  <p></p>  <p></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.75in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; color: blue; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast">&#160;&#160; &lt;</span><span style="font-family: &quot;Courier New&quot;; color: #a31515; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast">ConfigurationSettings</span><span style="font-family: &quot;Courier New&quot;; color: blue; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast">&gt; </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; color: blue; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>&lt;</span><span style="font-family: &quot;Courier New&quot;; color: #a31515; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast">Setting</span><span style="font-family: &quot;Courier New&quot;; color: blue; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast"> </span><span style="font-family: &quot;Courier New&quot;; color: red; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast">name</span><span style="font-family: &quot;Courier New&quot;; color: blue; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast">=</span><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast">&quot;<span style="color: blue">DiagnosticsConnectionString</span>&quot;<span style="color: blue"></span><span style="color: red">&#160;&#160;&#160;&#160; </span></span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast"><span style="color: red">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; value</span><span style="color: blue">=</span>&quot;<span style="color: blue">DefaultEndpointsProtocol=https;AccountName=&lt;ACCOUNT_NAME&gt;;AccountKey=&lt;ACCOUNT_KEY&gt;</span>&quot;<span style="color: blue">/&gt; </span></span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast"><span style="color: blue"></span></span><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: blue; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160; </span>&lt;/</span><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: #a31515; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast">ConfigurationSettings</span><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: blue; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast">&gt;</span><span style="line-height: 115%; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast"> </span></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpFirst"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">10.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160; </span></span></span>Step 5-9 are applicable for the worker role in the project as well. </p>  <p></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">11.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160; </span></span></span>Open <font face="Courier New">Web.config</font> in the Web Role project. The following following section has been added to web.config</p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">&#160;&#160;&#160;&#160;&#160;&#160; <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_16.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_16.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_7.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_7.png" width="560" height="111" /></a> </p>  <p></p>  <p></p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-no-proof: yes"><shape style="width: 468pt; height: 90.75pt; visibility: visible; mso-wrap-style: square" id="_x0000_i1028" type="#_x0000_t75"><imagedata o:title="o:title" src="file:///C:\Users\sumitm\AppData\Local\Temp\msohtmlclip1\01\clip_image007.png"></imagedata></shape></span></p>  <p></p>  <p></p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">This adds the Diagnostic Monitor Trace Listener to the role such that Trace() calls made in the application are <b style="mso-bidi-font-weight: normal">collected</b> by Diagnostic Monitor as well. </p>  <p></p>  <p></p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">NOTE: The same section is added to the worker role’s <font face="Courier New">app.config</font>. </p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">12.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160; </span></span></span>With Steps 5-11 all the wiring needed to <b style="mso-bidi-font-weight: normal">generate and collect </b>simple logs&#160; with Trace() APIs is done. In the current project, some sample <font face="Courier New">TraceLine()</font> calls that have already been added. </p>  <p></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><i style="mso-bidi-font-style: normal"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">13.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160; </span></span></span></i>To illustrate the <b style="mso-bidi-font-weight: normal">transfer </b>of logs add the following lines in <font face="Courier New">WebRole.cs</font> file.<span style="mso-spacerun: yes">&#160; </span><i style="mso-bidi-font-style: normal">We will delve deeper into the <b style="mso-bidi-font-weight: normal">transfer</b> mechanism in a subsequent post.</i></p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-spacerun: yes">&#160;</span>For now it is sufficient to know that this code sets up the configuration of simple logs such that they are automatically <b style="mso-bidi-font-weight: normal">transferred </b>every minute to the storage account that was configured in Step 9.</p>  <p style="text-indent: -0.25in; margin-left: 1.25in; mso-list: l1 level1 lfo2; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">a.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span>Add the following ‘using’ statements</p>  <p style="text-indent: -0.25in; margin-left: 1.25in; mso-list: l1 level1 lfo2; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">&#160;&#160;&#160;&#160;&#160;&#160; <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_18.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_18.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_8.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_8.png" width="339" height="102" /></a> </p>  <p></p>  <p></p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-no-proof: yes"><shape style="width: 304.5pt; height: 88.5pt; visibility: visible; mso-wrap-style: square" id="_x0020_0" type="#_x0000_t75" o:spid="_x0000_i1027"><imagedata o:title="o:title" src="file:///C:\Users\sumitm\AppData\Local\Temp\msohtmlclip1\01\clip_image008.png"></imagedata></shape></span></p>  <p></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1.25in; mso-list: l1 level1 lfo2; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">b.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160; </span></span></span>Add the following lines to <font face="Courier New">OnStart()</font> method </p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">public</span> <span style="color: blue">override</span> <span style="color: blue">bool</span> OnStart() </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: green">//DiagnosticMonitor.Start(&quot;DiagnosticsConnectionString&quot;); </span></span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #2b91af">DiagnosticMonitorConfiguration</span> dmc = <span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #2b91af">DiagnosticMonitor</span>.GetDefaultInitialConfiguration(); </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>dmc.Logs.ScheduledTransferPeriod = <span style="color: #2b91af">TimeSpan</span>.FromMinutes(1); </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>dmc.Logs.ScheduledTransferLogLevelFilter = <span style="color: #2b91af">LogLevel</span>.Verbose;</span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="line-height: 115%; font-family: &quot;Courier New&quot;; color: #2b91af; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt">DiagnosticMonitor</span><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt">.Start(<span style="color: #a31515">&quot;DiagnosticsConnectionString&quot;</span>, dmc); </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt">}</span><span style="line-height: 115%; font-size: 10pt; mso-bidi-font-size: 11.0pt"> </span></p>  <p></p>  <p style="text-indent: -0.25in; margin-left: 1.25in; mso-list: l1 level1 lfo2; mso-add-space: auto" class="MsoListParagraphCxSpLast"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">c.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span>Add the following method to the <font face="Courier New">WebRole</font> class </p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">public</span> <span style="color: blue">override</span> <span style="color: blue">void</span> Run() </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">int</span> count = 0; </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"></span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">for</span> (; ; ) </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160; </span><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>count++; </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #2b91af">Trace</span>.WriteLine(<span style="color: #a31515">&quot;Message: &quot;</span> + count, <span style="color: #a31515">&quot;Information&quot;</span>); </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="color: #2b91af">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Thread</span>.Sleep(<span style="color: #2b91af">TimeSpan</span>.FromSeconds(10)); </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>  <p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"></span><span style="line-height: 115%; font-family: &quot;Courier New&quot;; font-size: 9pt; mso-no-proof: yes; mso-bidi-font-size: 10.0pt"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>}</span></p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">14.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160; </span></span></span>Hit F5 to start debugging the project. The logs from the WebRole are shown in Development Fabric. </p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">&#160;&#160;&#160;&#160;&#160; <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_20.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_20.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_9.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_9.png" width="538" height="211" /></a> </p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">15.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160; </span></span></span>To see the <b style="mso-bidi-font-weight: normal">collection </b>of these logs in the storage account (Development Storage in this example), lets open up the account in a storage viewer tool. For this example we will use the <a href="http://www.cerebrata.com/Products/CloudStorageStudio/Default.aspx">Cloud Storage Studio</a> tool from <a href="http://www.cerebrata.com/">Cerebrata</a>.</p>  <p style="text-indent: -0.25in; margin-left: 1in; mso-list: l0 level1 lfo1; mso-add-space: auto" class="MsoListParagraphCxSpMiddle">&#160;&#160;&#160;&#160;&#160; <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_22.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_22.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_10.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/WindowsAzureWalkthroughSimpleLogging_914A/image_thumb_10.png" width="701" height="158" /></a> </p>  <p style="margin-left: 1in; mso-add-space: auto" class="MsoListParagraphCxSpLast"><span style="mso-no-proof: yes"><shape style="width: 467.25pt; height: 102.75pt; visibility: visible; mso-wrap-style: square" id="Picture_x0020_14" type="#_x0000_t75" o:spid="_x0000_i1025"><imagedata o:title="o:title" src="file:///C:\Users\sumitm\AppData\Local\Temp\msohtmlclip1\01\clip_image010.png"></imagedata></shape></span></p>  <p></p>  <p></p>  <h4><font color="#0000ff">What’s next</font></h4>  <h2 style="margin-left: 0.5in"><font color="#0000ff">     <p></p>   </font></h2>  <p style="margin-left: 0.5in" class="MsoNormal">We have looked at all wiring that has already been done to integrate Windows Azure Diagnostics in a cloud service project. We have also looked at how simple Windows Azure logs work. Next time we will explore more types of diagnostics data&#160; can be collected for the service, e.g. Performance Counters, Failed Request Logs, etc.</p>]]></content:encoded>
    </item>
    <item>
      <title>Introducing Windows Azure Diagnostics</title>
      <link>https://docs.microsoft.com/archive/blogs/sumitm/introducing-windows-azure-diagnostics</link>
      <pubDate>Wed, 18 Nov 2009 11:48:22 GMT</pubDate>
      <dc:creator><![CDATA[SumitMehrotra]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sumitm/2009/11/18/introducing-windows-azure-diagnostics/</guid>
      <description><![CDATA[You may have seen the announcement of the latest release (November 2009) of the Windows Azure Tools...]]></description>
      <content:encoded><![CDATA[<p>You may have seen the announcement of the <a href="http://blogs.msdn.com/windowsazure/">latest release</a> (November 2009) of the Windows Azure Tools and SDK. We are PDC 2009 in Los Angeles introducing a bunch of these new platform features and discussing these with the folks who are really going to make these shine, <b>you, </b>the developers!</p>  <p>Today I wanted to talk about the new <b>Windows Azure Diagnostic</b> feature that we have introduced with the SDK. </p>  <p>Starting with PDC08 we provided a basic logging system which consisted of the following:</p>  <ul>   <li>RoleManager.WriteToLog() API that let you perform simple logging in your service, and </li>    <li>‘Copy Logs’ button the Windows Azure Developer Portal that enabled you to transfer all those logs from the instances of your service into your Windows Azure storage account. </li> </ul>  <h4><font color="#0000ff">Why something new?</font></h4>  <p>There are a number of diagnostic scenarios that go beyond simple logging. Over the past year we received a lot of feedback from customers regarding this as well. We designed Windows Azure Diagnostics to address some of those scenarios, e.g.</p>  <ul>   <li>Detecting and troubleshooting problems </li>    <li>Performance measurement </li>    <li>Analytics and QoS </li>    <li>Capacity planning </li>    <li>And more… </li> </ul>  <p>Based on the feedback we received we wanted to keep the simplicity of the initial logging API but enhance the feature to give users more diagnostic data about their service and to give users more control of their diagnostic data. The November 2009 marks our initial release of the <b>Diagnostics </b>feature<b>. </b></p>  <h4><font color="#0000ff">What’s new?</font></h4>  <p>Let me first talk a little about what is available as part of this new feature. </p>  <ul>   <li>Perform <b>simple logging</b> using the standard System.Diagnostics.Trace APIs </li>    <li><b>Collect</b> the following types of diagnostics data       <ul>       <li>IIS Logs </li>        <li>Failed Request Logs </li>        <li>Performance Counters </li>        <li>Windows Event Logs </li>        <li>Application crash dumps </li>     </ul>   </li>    <li>APIs to configure the <b>collection </b>of data </li>    <li><b>Transfer </b>the <b>collected </b>data from your service to your storage account on an <b>On Demand </b>or a <b>scheduled </b>basis. </li> </ul>  <h4><font color="#0000ff">What is the architecture?</font></h4>  <p>The Diagnostic feature is architected to be decoupled from the Windows Azure platform to enable users to have control over the diagnostic data that they need for their service, without the platform adding any more layers in between.</p>  <p>The following schematic gives a general idea of how the Diagnostic feature is architected.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/IntroducingWindowsAzureDiagnostics_A602/image_2.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/IntroducingWindowsAzureDiagnostics_A602/image_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/sumitm/WindowsLiveWriter/IntroducingWindowsAzureDiagnostics_A602/image_thumb.png" original-url="http://blogs.msdn.com/blogfiles/sumitm/WindowsLiveWriter/IntroducingWindowsAzureDiagnostics_A602/image_thumb.png" width="572" height="428" /></a> </p>  <p>The gist of the diagram above is: <i>Diagnostics Monitor (the small blue boxes in the role instances above) running as part of each instance of each role of the service collects diagnostics data as <b>configured</b> by the user and <b>persists</b> it in the user’s Windows Azure Storage account, as configured by the user, on an on-demand basis or at a regular scheduled interval.</i></p>  <p><em></em></p>  <p><strong>Full Trust </strong></p>  <p>The implementation of Windows Azure Diagnostics feature requires the roles to be run in full trust. In other words <font color="#008000" face="Courier New">enableNativeCodeExecution</font> attribute needs to be <font color="#0000ff" face="Courier New">true</font> for your roles in <font face="Courier New">ServiceDefinition.csdef</font>. With the November 2009 release of Windows Azure Tools and SDK, default value for this attribute is <font color="#0000ff" face="Courier New">true</font> . </p>  <h4><font color="#0000ff"></font></h4>  <h4><font color="#0000ff">Diagnostic Configuration</font></h4>  <p>Configuration tells the diagnostics infrastructure which particular data types is the user interested in collecting. Once a data type is enabled, the infrastructure starts collecting the data locally on the VM of any given instance. On the desktop it is collected on the local disk. <b></b></p>  <p>This configuration can be defined in 2 ways:</p>  <ul>   <li><b>Role Startup: </b>The user can define what she needs to collect for a particular role at role start up time. </li>    <li><b>After startup:</b> The user can modify the configuration of the running service by using Diagnostic Management API from outside the cloud (e.g. through a client side tool on the user’s desktop). This can be done <i><u>without bringing the service down</u>.</i> </li> </ul>  <h4><font color="#0000ff">How do I use this?</font></h4>  <p>Now that we have gone over the feature broadly, it’s time to write some code. I will go over the APIs and tools available for developers to leverage this feature in their code in the next post. For now, I need to do my rounds at PDC :). </p>]]></content:encoded>
    </item>
  </channel>
</rss>