<?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>My Learnings - Windows Azure, ASP.Net, IIS and more..</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/asgoyal/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/asgoyal/feed.xml</link>
    <description>My learnings while working with ASP.Net and IIS and other Microsoft technologies</description>
    <lastBuildDate>Tue, 16 Apr 2019 04:42:29 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Windows Azure Cache: Feature Comparison Matrix</title>
      <link>https://docs.microsoft.com/archive/blogs/asgoyal/windows-azure-cache-feature-comparison-matrix</link>
      <pubDate>Wed, 13 Nov 2013 21:14:00 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Goyal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/asgoyal/2013/11/13/windows-azure-cache-feature-comparison-matrix/</guid>
      <description><![CDATA[You can find this blog, and lot of other interesting articles about Windows Azure on My Team...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: lucida sans unicode; font-size: small;"><span style="color: #8064a2;">You can find this blog, and lot of other interesting articles about Windows Azure on </span><strong><a href="http://blogs.msdn.com/b/cie/">My Team Blog</a></strong></span></p>
<p>&nbsp;<span style="color: #8064a2; font-family: lucida sans unicode; font-size: small;">Windows Azure offers three different Cache Offerings. </span></p>
<p><span style="color: #8064a2; font-family: lucida sans unicode; font-size: small;">1. Cache Service Preview</span></p>
<p><span style="color: #8064a2; font-family: lucida sans unicode; font-size: small;">2. In-Role Caching</span></p>
<p><span style="color: #8064a2; font-family: lucida sans unicode; font-size: small;">3. Shared Caching</span></p>
<p><span style="font-size: small;"><span style="color: #8064a2; font-family: lucida sans unicode;">Cache Service is the newest and is in Preview right now. Considering that Shared Caching is soon to be deprecated (<a href="http://www.windowsazure.com/en-us/pricing/details/cache/">ref</a>), the real choice is between the new <strong>Cache Service Preview</strong> and the tried and tested <strong>In-Role Caching</strong>. </span><span style="color: #8064a2; font-family: lucida sans unicode;">Both of these are fundamentally different services and have few unique characteristics. To know more about each of these services, please refer to the following. </span></span></p>
<p><span style="color: #8064a2; font-family: lucida sans unicode; font-size: small;"><a href="http://msdn.microsoft.com/library/WindowsAzure/dn386094.aspx">Windows Azure Cache Service (Preview)</a> </span></p>
<p><span style="color: #8064a2; font-family: lucida sans unicode; font-size: small;"><a href="http://msdn.microsoft.com/en-us/library/WindowsAzure/dn386103.aspx">Windows Azure In-Role Cache</a> </span></p>
<p><span style="color: #8064a2; font-family: lucida sans unicode; font-size: small;"><a href="http://blogs.msdn.com/b/asgoyal/archive/2013/11/08/free-e-book-introducing-windows-azure-for-it-professionals.aspx">Free e-book &ndash; Introducing Windows Azure for IT Professionals</a> </span></p>
<p><span style="color: #8064a2; font-family: lucida sans unicode; font-size: small;">To help make a better informed decision on which of these offerings to choose from, I am putting together a feature comparison matrix. This matrix should provide you a quick reference to some of salient features of Windows Azure Caching and their availability in various Cache Offerings.</span></p>
<p><span style="color: #8064a2; font-family: lucida sans unicode; font-size: small;"><strong>Cache Comparison Matrix</strong></span></p>
<hr />
<div style="overflow: auto; -ms-overflow-y: hidden;">
<table style="width: 790px;" border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="145">
<table style="width: 775px;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="77">&nbsp;</td>
<td valign="top" width="193">
<p><strong>In-Role Caching</strong></p>
</td>
<td valign="top" width="193">&nbsp;</td>
<td valign="top" width="244">
<p><strong>Cache Service (Preview)</strong></p>
</td>
<td valign="top" width="66">
<p><strong>Shared Caching (<a href="http://www.windowsazure.com/en-us/pricing/details/cache/">to be deprecated</a>)*</strong></p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Features</strong></p>
</td>
<td valign="top" width="193">
<p><strong>Dedicated</strong></p>
</td>
<td valign="top" width="193">
<p><strong>Co-located</strong></p>
</td>
<td valign="top" width="244">&nbsp;</td>
<td valign="top" width="66">&nbsp;</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Visual Studio Integration</strong></p>
</td>
<td valign="top" width="193">
<p>Full integration with Visual Studio. Can be configured from the Caching tab in Role property</p>
</td>
<td valign="top" width="193">
<p>Full integration with Visual Studio. Can be configured from the Caching tab in Role property</p>
</td>
<td valign="top" width="244">
<p>Managed via new Azure Portal. Supported by same NuGet Package</p>
</td>
<td valign="top" width="66">
<p>Managed via the old Azure Management Portal only</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Azure Portal Support</strong></p>
</td>
<td valign="top" width="193">
<p>Supported in the new Azure Management Portal - <a href="https://manage.windowsazure.com/">https://manage.windowsazure.com/</a></p>
</td>
<td valign="top" width="193">
<p>Supported in the new Azure Management Portal - <a href="https://manage.windowsazure.com/">https://manage.windowsazure.com/</a></p>
</td>
<td valign="top" width="244">
<p>Supported in the new Azure Management Portal - <a href="https://manage.windowsazure.com/">https://manage.windowsazure.com/</a></p>
</td>
<td valign="top" width="66">
<p>Supported in the old Azure Management Portal - <a href="https://windows.azure.com/">https://windows.azure.com/</a></p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Quota Limitations</strong></p>
</td>
<td valign="top" width="193">
<p>There are no quota limitations since the cached data is hosted within your deployment boundaries. Usage is only dependent on the availability of the resources.</p>
</td>
<td valign="top" width="193">
<p>There are no quota limitations since the cached data is hosted within your deployment boundaries. Usage is only dependent on the availability of the resources.</p>
</td>
<td valign="top" width="244">
<p>There are no Quota limitations.</p>
</td>
<td valign="top" width="66">
<p>Quota limitations are in place to ensure fair usage in this multitenant environment.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/windowsazure/hh697522.aspx"><span style="font-size: xx-small;">http://msdn.microsoft.com/en-us/library/windowsazure/hh697522.aspx</span></a></p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Notification Support</strong></p>
</td>
<td valign="top" width="193">
<p>Yes, supports a variety of asynchronous notifications for variety of cache operations. E.g. CreateRegion, RemoveRegion, AddItem, RemoveItem etc.</p>
</td>
<td valign="top" width="193">
<p>Yes, supports a variety of asynchronous notifications for variety of cache operations. E.g. CreateRegion, RemoveRegion, AddItem, RemoveItem etc.</p>
</td>
<td valign="top" width="244">
<p>Yes, supports a variety of asynchronous notifications for variety of cache operations. E.g. CreateRegion, RemoveRegion, AddItem, RemoveItem etc.</p>
</td>
<td valign="top" width="66">
<p>Does not support notifications</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>High Availability</strong></p>
</td>
<td valign="top" width="193">
<p>Yes</p>
</td>
<td valign="top" width="193">
<p>Yes</p>
</td>
<td valign="top" width="244">
<p>Yes</p>
</td>
<td valign="top" width="66">
<p>No</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Named Caches</strong></p>
</td>
<td valign="top" width="193">
<p>Yes, you can configure multiple Named Caches apart from the default cache.</p>
</td>
<td valign="top" width="193">
<p>Yes, you can configure multiple Named Caches apart from the default cache.</p>
</td>
<td valign="top" width="244">
<p>Yes</p>
</td>
<td valign="top" width="66">
<p>No, only default cache is allowed</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Tags/Regions</strong></p>
</td>
<td valign="top" width="193">
<p>Yes</p>
</td>
<td valign="top" width="193">
<p>Yes</p>
</td>
<td valign="top" width="244">
<p>Yes</p>
</td>
<td valign="top" width="66">
<p>No</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Eviction Policy</strong></p>
</td>
<td valign="top" width="193">
<p>LRU (Least recently Used) or None</p>
</td>
<td valign="top" width="193">
<p>LRU (Least recently Used) or None</p>
</td>
<td valign="top" width="244">
<p>LRU (Least recently Used) or None (if Disabled)</p>
</td>
<td valign="top" width="66">
<p>LRU</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Performance</strong></p>
</td>
<td valign="top" width="193">
<p>Supposed to perform better than Shared Caching</p>
</td>
<td valign="top" width="193">
<p>Supposed to perform better than Shared Caching</p>
</td>
<td valign="top" width="244">
<p>High performance service subject to SKU limitations</p>
</td>
<td valign="top" width="66">
<p>In-Role Caching methods are supposed to be a better performer</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Manageability</strong></p>
</td>
<td valign="top" width="193">
<p>Same amount of control over cache which have on your Cloud Service. Cache can be scaled, managed and monitored just like your Cloud Service.</p>
</td>
<td valign="top" width="193">
<p>Same amount of control over cache which have on your Cloud Service. Cache can be scaled, managed and monitored just like your Cloud Service.</p>
</td>
<td valign="top" width="244">
<p>Managed by Microsoft, users can control certain configuration (Eviction Policy, High Availability etc.)</p>
</td>
<td valign="top" width="66">
<p>Managed by Microsoft, manageability is not shared with users</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Emulator Support</strong></p>
</td>
<td valign="top" width="193">
<p>Yes, full integration with Cache Emulator</p>
</td>
<td valign="top" width="193">
<p>Yes, full integration with Cache Emulator</p>
</td>
<td valign="top" width="244">
<p>Not available at the moment</p>
</td>
<td valign="top" width="66">
<p>Limited support. Cache can be accessed from emulator but the data stays on the Cache Servers.</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Feature Spectrum</strong></p>
</td>
<td valign="top" width="193">
<p>Full</p>
</td>
<td valign="top" width="193">
<p>Full</p>
</td>
<td valign="top" width="244">
<p>Full</p>
</td>
<td valign="top" width="66">
<p>Limited</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Cost</strong></p>
</td>
<td valign="top" width="193">
<p>You pay for the worker role only</p>
</td>
<td valign="top" width="193">
<p>You do not pay any premium for Cache</p>
</td>
<td valign="top" width="244">
<p>You pay for the one of the Cache Service Offering depends on the Cache Memory</p>
<p>Pricing Details: <a href="http://www.windowsazure.com/en-us/pricing/details/cache/">http://www.windowsazure.com/en-us/pricing/details/cache/</a></p>
</td>
<td valign="top" width="66">
<p>You pay for one of the Cache Service offerings</p>
<p>&middot; 128 MB cache for $45.00/month</p>
<p>&middot; 256 MB cache for $55.00/month</p>
<p>&middot; 512 MB cache for $75.00/month</p>
<p>&middot; 1 GB cache for $110.00month</p>
<p>&middot; 2 GB cache for $180.00/month</p>
<p>&middot; 4 GB cache for $325.00/month</p>
<p><a href="http://msdn.microsoft.com/en-us/library/windowsazure/hh697522.aspx"><span style="font-size: xx-small;">http://msdn.microsoft.com/en-us/library/windowsazure/hh697522.aspx</span></a></p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Scalability</strong></p>
</td>
<td valign="top" width="193">
<p>Highly scalable. You can scale to as many instances and the VM size as allowed in your subscription.</p>
<p>Cache can be scaled independently of your Cloud Service.</p>
</td>
<td valign="top" width="193">
<p>Highly scalable. You can scale-out the Azure Role which is hosting cached data as allowed by the subscription. Size of the VM can be increased too.</p>
<p>Cache can be scaled with your Cloud Service.</p>
</td>
<td valign="top" width="244">
<p>Scalability is limited by the availability of Cache Offerings (from 128 MB to 150 GB cache memory)</p>
</td>
<td valign="top" width="66">
<p>Scalability is limited by the availability of Cache Offerings</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Memcache Support</strong></p>
</td>
<td valign="top" width="193">
<p>Yes</p>
</td>
<td valign="top" width="193">
<p>Yes</p>
</td>
<td valign="top" width="244">
<p>Yes</p>
</td>
<td valign="top" width="66">
<p>No</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>RDP Capability to VM hosting Cache Data</strong></p>
</td>
<td valign="top" width="193">
<p>Yes</p>
</td>
<td valign="top" width="193">
<p>Yes</p>
</td>
<td valign="top" width="244">
<p>No</p>
</td>
<td valign="top" width="66">
<p>No</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Accessibility</strong></p>
</td>
<td valign="top" width="193">
<p>Can be accessed by roles within the same deployment</p>
</td>
<td valign="top" width="193">
<p>Can be accessed by roles within the same deployment</p>
</td>
<td valign="top" width="244">
<p>Cache namespaces can be accessed from any application (IaaS VM, Cloud Service, Azure Web Site). More services will be added soon</p>
</td>
<td valign="top" width="66">
<p>Cache namespaces can be accessed from any application (Windows Azure or On-premise)</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>ASP.Net Session and Output Caching</strong></p>
</td>
<td valign="top" width="193">
<p>Fully supported. Pre-configured providers are available.</p>
</td>
<td valign="top" width="193">
<p>Fully supported. Pre-configured providers are available.</p>
</td>
<td valign="top" width="244">
<p>Fully supported. Pre-configured providers are available.</p>
</td>
<td valign="top" width="66">
<p>Fully supported. Pre-configured providers are available.</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Object Size Limit</strong></p>
</td>
<td valign="top" width="193">
<p>8MB</p>
</td>
<td valign="top" width="193">
<p>8MB</p>
</td>
<td valign="top" width="244">
<p>8MB</p>
</td>
<td valign="top" width="66">
<p>8MB</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Cache Sizes</strong></p>
</td>
<td valign="top" width="193">
<p>Depends on the size of the hosting VM.</p>
<p>Available Sizes:</p>
<table style="width: 151px;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="62">
<p><strong>VM Size</strong><strong> </strong></p>
</td>
<td valign="top" width="38">
<p><strong>CPU </strong></p>
<p><strong>C</strong><strong>ores </strong></p>
</td>
<td valign="top" width="49">
<p><strong>Memory</strong></p>
<p>(MB)</p>
</td>
</tr>
<tr>
<td valign="top" width="62">
<p><strong>ExtraSmall</strong></p>
</td>
<td valign="top" width="38">
<p>Shared</p>
</td>
<td valign="top" width="49">
<p>768 MB</p>
</td>
</tr>
<tr>
<td valign="top" width="62">
<p><strong>Small</strong></p>
</td>
<td valign="top" width="38">
<p>1</p>
</td>
<td valign="top" width="49">
<p>1.75 GB</p>
</td>
</tr>
<tr>
<td valign="top" width="62">
<p><strong>Medium</strong></p>
</td>
<td valign="top" width="38">
<p>2</p>
</td>
<td valign="top" width="49">
<p>3.5 GB</p>
</td>
</tr>
<tr>
<td valign="top" width="62">
<p><strong>Large</strong></p>
</td>
<td valign="top" width="38">
<p>4</p>
</td>
<td valign="top" width="49">
<p>7 GB</p>
</td>
</tr>
<tr>
<td valign="top" width="62">
<p><strong>ExtraLarge</strong></p>
</td>
<td valign="top" width="38">
<p>8</p>
</td>
<td valign="top" width="49">
<p>14 GB</p>
</td>
</tr>
<tr>
<td valign="top" width="62">
<p><strong>A6</strong></p>
</td>
<td valign="top" width="38">
<p>4</p>
</td>
<td valign="top" width="49">
<p>28 GB</p>
</td>
</tr>
<tr>
<td valign="top" width="62">
<p><strong>A7</strong></p>
</td>
<td valign="top" width="38">
<p>8</p>
</td>
<td valign="top" width="49">
<p>56 GB</p>
</td>
</tr>
</tbody>
</table>
<p><strong>Note:</strong> ExtraSmall instances are not supported for Caching</p>
<p><a href="http://msdn.microsoft.com/en-us/library/windowsazure/dn197896.aspx">http://msdn.microsoft.com/en-us/library/windowsazure/dn197896.aspx</a></p>
</td>
<td valign="top" width="193">
<p>Same as Dedicated Caching</p>
</td>
<td valign="top" width="244">
<p>Depends on the selected cache offering</p>
<p>Available Sizes:</p>
<table style="width: 100px;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="49">
<p><strong>Cache Offering</strong></p>
</td>
<td valign="top" width="49">
<p><strong>Cache Memory</strong></p>
</td>
</tr>
<tr>
<td valign="top" width="49">
<p>Basic</p>
</td>
<td valign="top" width="49">
<p>128MB to 1GB</p>
</td>
</tr>
<tr>
<td valign="top" width="49">
<p>Standard</p>
</td>
<td valign="top" width="49">
<p>1GB to 10GB</p>
</td>
</tr>
<tr>
<td valign="top" width="49">
<p>Premium</p>
</td>
<td valign="top" width="49">
<p>5GB to 150GB</p>
</td>
</tr>
</tbody>
</table>
</td>
<td valign="top" width="66">
<p>Depends on the selected cache offering</p>
<p>Available Sizes:</p>
<p>&middot; 128 MB</p>
<p>&middot; 256 MB</p>
<p>&middot; 512 MB</p>
<p>&middot; 1 GB</p>
<p>&middot; 2 GB</p>
<p>&middot; 4 GB</p>
<p><a href="http://msdn.microsoft.com/en-us/library/windowsazure/gg618005.aspx"><span style="font-size: xx-small;">http://msdn.microsoft.com/en-us/library/windowsazure/gg618005.aspx</span></a></p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Diagnostics</strong></p>
</td>
<td valign="top" width="193">
<p>Extensive diagnostics capabilities. Client Diagnostics and Server Diagnostics mode</p>
</td>
<td valign="top" width="193">
<p>Extensive diagnostics capabilities. Client Diagnostics and Server Diagnostics mode</p>
</td>
<td valign="top" width="244">
<p>Client Diagnostics capabilities</p>
</td>
<td valign="top" width="66">
<p>Client Diagnostics capabilities</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Debugging</strong></p>
</td>
<td valign="top" width="193">
<p>Full fidelity devfabric experience enabling application debugging before deployment</p>
</td>
<td valign="top" width="193">
<p>Full fidelity devfabric experience enabling application debugging before deployment</p>
</td>
<td valign="top" width="244">
<p>Limited capabilities at the moment</p>
</td>
<td valign="top" width="66">
<p>Limited capabilities</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Security</strong></p>
</td>
<td valign="top" width="193">
<p>Based on standard Windows Azure Security concepts. Cached data is completely isolated from other users</p>
</td>
<td valign="top" width="193">
<p>Based on standard Windows Azure Security concepts. Cached data is completely isolated from other users</p>
</td>
<td valign="top" width="244">
<p>Dedicated infrastructure based service. Isolated from other users</p>
</td>
<td valign="top" width="66">
<p>Multitenant environment.</p>
<p>ACS based security</p>
<p>(Service URL + Authentication Token)</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>TTL (Time To Live)</strong></p>
</td>
<td valign="top" width="193">
<p>Configurable. Default Expiration time is 10 minutes</p>
</td>
<td valign="top" width="193">
<p>Configurable. Default Expiration time is 10 minutes</p>
</td>
<td valign="top" width="244">
<p>Configurable. Default Expiration time is 10 minutes</p>
</td>
<td valign="top" width="66">
<p>Non-configurable for the whole cache, but can be configured for individual item. Default Expiration time is 48 hours</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Expiration Type</strong></p>
</td>
<td valign="top" width="193">
<p>Configurable.</p>
<p>None/Absolute/Sliding Window</p>
</td>
<td valign="top" width="193">
<p>Configurable.</p>
<p>None/Absolute/Sliding Window</p>
</td>
<td valign="top" width="244">
<p>Configurable.</p>
<p>Never/Absolute/Sliding Window</p>
</td>
<td valign="top" width="66">
<p>Non-configurable.</p>
<p>Absolute</p>
<p>(Time starts when items are added in the cache)</p>
</td>
</tr>
<tr>
<td valign="top" width="77">
<p><strong>Durability</strong></p>
</td>
<td valign="top" width="193">
<p>Not guaranteed</p>
</td>
<td valign="top" width="193">
<blockquote>
<p>Not guaranteed</p>
</blockquote>
</td>
<td valign="top" width="244">
<blockquote>
<p>Not guaranteed</p>
</blockquote>
</td>
<td valign="top" width="66">
<blockquote>
<p>Not guaranteed</p>
</blockquote>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<hr /></div>
<p>&nbsp;</p>
<p><span style="color: #8064a2; font-family: lucida sans unicode; font-size: small;">If you want to have any additional features included here for comparison, please let me know.</span></p>
<p><span style="color: #8064a2; font-family: lucida sans unicode; font-size: small;">Hope this help!</span></p>]]></content:encoded>
    </item>
    <item>
      <title>One Thing You Must Do When: Service Endpoint is showing Offline in Azure Traffic Manager</title>
      <link>https://docs.microsoft.com/archive/blogs/asgoyal/one-thing-you-must-do-when-service-endpoint-is-showing-offline-in-azure-traffic-manager</link>
      <pubDate>Fri, 08 Nov 2013 20:00:41 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Goyal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/asgoyal/2013/11/08/one-thing-you-must-do-when-service-endpoint-is-showing-offline-in-azure-traffic-manager/</guid>
      <description><![CDATA[You can find this blog, and lot of other interesting articles about Windows Azure on My Team...]]></description>
      <content:encoded><![CDATA[  <blockquote>   <p><font face="Lucida Sans Unicode"><font size="2"><font color="#8064a2">You can find this blog, and lot of other interesting articles about Windows Azure on</font> <strong><a href="http://blogs.msdn.com/b/cie/">My Team Blog</a></strong></font></font></p>    <p><strong><font size="2" face="Lucida Sans Unicode"></font></strong></p> </blockquote>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Recently I came across multiple scenarios where the Service endpoints were showing Offline/Degraded in Traffic Manager. Those endpoints were valid, accessible and respective service was running fine, but still the end point was showing offline in Traffic Manager. </font></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/03/metablogapi/0574.image_663ACCB9.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-03-metablogapi/0574.image_5F00_663ACCB9.png"><img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/03/metablogapi/4721.image_thumb_75DD687B.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-03-metablogapi/4721.image_5F00_thumb_5F00_75DD687B.png" width="642" height="174" /></a></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">In the above screenshot, the respective endpoint is accessible fine, but the Traffic Manager is showing it as Degraded.</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Interestingly, in all those scenarios, the reason was common. The endpoint in questions was returning a <strong>non http 200 </strong>response code (302/307 etc.).</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">The way Traffic Manager works is, <strong>it expects an Http 200 response</strong> from the endpoints you have configured, that too <strong>within 10 seconds</strong>. If this doesn’t happen, then monitoring system will either retries (in case of no response in 10 seconds) or assumes that the endpoint is not available.</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>  <blockquote>   <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><strong>From </strong><a href="http://msdn.microsoft.com/en-us/library/windowsazure/dn339013.aspx"><strong>MSDN</strong></a><strong>:</strong></font></p> </blockquote>  <blockquote>   <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Traffic Manager only considers an endpoint to be Online if the return message is a 200 OK. If a non-200 response is received, it will assume the endpoint is not available and will count this as a failed check</font></p>    <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">The monitoring system performs a GET, but does not receive a response in 10 seconds or less. It then performs three more tries at 30 second intervals. This means that at most, it takes approximately 1.5 minutes for the monitoring system to detect when a service becomes unavailable. If one of the tries is successful, then the number of tries is reset. Although not shown in the diagram, if the 200 OK response(s) come back greater than 10 seconds after the GET, the monitoring system will still count this as a failed check.</font></p> </blockquote>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">In the above example, there was a redirection rule configured on the website which was returning http 302. And this the endpoint was showing Degraded. After removing the redirection, the Endpoint became Online again.</font></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/03/metablogapi/8865.image_73373D7B.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-03-metablogapi/8865.image_5F00_73373D7B.png"><img title="image" style="margin: 0px; display: inline; background-image: none;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/03/metablogapi/5277.image_thumb_26FF33CD.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-03-metablogapi/5277.image_5F00_thumb_5F00_26FF33CD.png" width="646" height="111" /></a></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Though this looks like very obvious concept, but on a bad day, this could turn out to be really tricky (from past experiences). </font></p>    <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Common Scenarios where you may run into this:</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">1. Any sort of Redirection Rule on the Endpoint (Default Page, SSL Redirection etc.)</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">2. Any custom Authentication mechanism or URL Rewrite rule which doesn’t return http 200 for the first request</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">3. Home page takes &gt;10 seconds to load</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><strong>Further references:</strong></font></p>  <p><font size="2" face="Lucida Sans Unicode"><a href="http://msdn.microsoft.com/en-us/library/windowsazure/dn339013.aspx">Details about the WATM probe and how it determines when the primary service is down and when to failover</a></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><a href="http://msdn.microsoft.com/en-us/library/windowsazure/hh744833.aspx">Overview of how WATM works</a></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><a href="http://msdn.microsoft.com/en-us/library/windowsazure/dn339010.aspx">How the different policies work, including details on how failover works</a></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Hope this helps!</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Cheers!</font></p>]]></content:encoded>
    </item>
    <item>
      <title>Free E-book: Introducing Windows Azure for IT Professionals</title>
      <link>https://docs.microsoft.com/archive/blogs/asgoyal/free-e-book-introducing-windows-azure-for-it-professionals</link>
      <pubDate>Thu, 07 Nov 2013 23:11:14 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Goyal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/asgoyal/2013/11/07/free-e-book-introducing-windows-azure-for-it-professionals/</guid>
      <description><![CDATA[Microsoft Press has recently released a new e-book on Windows Azure called “Introducing Windows...]]></description>
      <content:encoded><![CDATA[<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><a href="http://blogs.msdn.com/b/microsoft_press/archive/2013/10/01/free-ebook-introducing-windows-azure-for-it-professionals.aspx" target="_blank">Microsoft Press</a> has recently released a new e-book on Windows Azure called “<strong>Introducing Windows Azure for IT professionals</strong>”. This book contains something for everyone who is either learning Windows Azure or is planning to move to Windows Azure in near future. </font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Best part is this book is absolutely Free to download for everyone! Thank you Microsoft Press! <img class="wlEmoticon wlEmoticon-smile" alt="Smile" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/03/metablogapi/5775.wlEmoticon-smile_2791E790.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-03-metablogapi/5775.wlEmoticon_2D00_smile_5F00_2791E790.png" /></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">I got the opportunity to write the chapter on <strong>Windows Azure Caching</strong> for this book. </font><font color="#8064a2" size="2" face="Lucida Sans Unicode">Hope some of you would find it useful. Please let us know</font><font color="#8064a2" size="2" face="Lucida Sans Unicode"> about any feedback/inputs.</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>  <table cellspacing="0" cellpadding="2" width="524" border="0"><tbody>     <tr>       <td valign="top" width="166"><a href="http://blogs.msdn.com/b/microsoft_press/archive/2013/10/01/free-ebook-introducing-windows-azure-for-it-professionals.aspx"><img title="Book_Cover" style="display: inline; background-image: none;" border="0" alt="Book_Cover" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/03/metablogapi/1665.Book_Cover_6BA1881C.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-03-metablogapi/1665.Book_5F00_Cover_5F00_6BA1881C.jpg" width="281" height="341" /></a></td>        <td valign="top" width="356"><font color="#8064a2" size="2" face="Lucida Sans Unicode"><strong><font color="#8064a2" size="2" face="Lucida Sans Unicode">               <br />                <br />                <br />                <br />                <br />                <br />                <br />                <br />                <br />                <br />                <br />DOWNLOADS                 <br /></font></strong><font color="#8064a2" size="2" face="Lucida Sans Unicode">             <br />PDF&#160; - </font><a href="https://aka.ms/682887pdf"><font color="#8064a2" size="2" face="Lucida Sans Unicode">here</font></a><font color="#8064a2" size="2" face="Lucida Sans Unicode">              <br />Companion Content - </font><a href="https://aka.ms/IntroAzure/files"><font color="#8064a2" size="2" face="Lucida Sans Unicode">here                <br /></font></a><font color="#8064a2" size="2" face="Lucida Sans Unicode">Mobi file for Kindle - </font><a href="https://aka.ms/682887mobi"><font color="#8064a2" size="2" face="Lucida Sans Unicode">here                <br /></font></a><font color="#8064a2" size="2" face="Lucida Sans Unicode">ePub file - </font><a href="https://aka.ms/682887epub"><font color="#8064a2" size="2" face="Lucida Sans Unicode">here</font></a></font></td>     </tr>   </tbody></table>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Whether you’re new to the Windows Azure platform or are already using it in your business, this book has something that should interest you. Most Windows Azure services are described in some detail, with screenshots used to demonstrate some of the multitude of capabilities of the platform. And for the experienced we have lots of under-the-hood insights and expert tips written by Microsoft insiders who develop, test, and use the Windows Azure platform.</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>  <p><strong><font color="#8064a2" size="2" face="Lucida Sans Unicode">Ref: <a title="http://blogs.msdn.com/b/microsoft_press/archive/2013/10/01/free-ebook-introducing-windows-azure-for-it-professionals.aspx" href="http://blogs.msdn.com/b/microsoft_press/archive/2013/10/01/free-ebook-introducing-windows-azure-for-it-professionals.aspx">http://blogs.msdn.com/b/microsoft_press/archive/2013/10/01/free-ebook-introducing-windows-azure-for-it-professionals.aspx</a>&#160;</font></strong></p>  <p><strong><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></strong></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Happy reading!</font></p>  <p><strong><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></strong></p>  <p><a href="https://aka.ms/682887epub"><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></a></p>]]></content:encoded>
    </item>
    <item>
      <title>Windows Azure Caching 2.1.0.0: “No such host is known”</title>
      <link>https://docs.microsoft.com/archive/blogs/asgoyal/windows-azure-caching-2-1-0-0-no-such-host-is-known</link>
      <pubDate>Wed, 07 Aug 2013 20:30:08 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Goyal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/asgoyal/2013/08/07/windows-azure-caching-2-1-0-0-no-such-host-is-known/</guid>
      <description><![CDATA[You can find this blog, and lot of other interesting articles about Windows Azure on My Team Blog...]]></description>
      <content:encoded><![CDATA[<blockquote>   <p><font face="Lucida Sans Unicode"><font size="2"><font color="#8064a2">You can find this blog, and lot of other interesting articles about Windows Azure on</font> <strong><a href="http://blogs.msdn.com/b/cie/">My Team Blog</a></strong></font></font></p> </blockquote>  <p>&#160;</p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Few days ago(on 31st July), the Azure Caching libraries were updated to v2.1.0.0 (previous version was v2.0.0.0). </font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">If you are trying to use Windows Azure Caching on your new project from past few days, and if it is mysteriously not working, not even for the simplest of the projects, then </font><font color="#8064a2" size="2" face="Lucida Sans Unicode">you may be running into a dependency scenario! </font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">A lot of us may have probably missed that </font><font color="#8064a2" size="2" face="Lucida Sans Unicode"><strong>this new version of Azure Caching has a dependency on Azure SDK v 2.1</strong></font></p>  <p><strong><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></strong></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">See the <font style="background-color: rgb(255, 255, 0);">highlighted</font> part (easy to miss if we are in a hurry <img class="wlEmoticon wlEmoticon-smile" alt="Smile" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/03/metablogapi/5076.wlEmoticon-smile_06CD4ADA.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-03-metablogapi/5076.wlEmoticon_2D00_smile_5F00_06CD4ADA.png" />).</font></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/03/metablogapi/0763.image_58079237.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-03-metablogapi/0763.image_5F00_58079237.png"><img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/03/metablogapi/3323.image_thumb_03D7E627.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-03-metablogapi/3323.image_5F00_thumb_5F00_03D7E627.png" width="521" height="411" /></a></p>  <p>&#160;</p>  <p>&#160;</p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><strong>So what would happen if we try to use Azure Caching 2.1.0.0 with Azure SDK 2.0 or older?</strong></font></p>  <p>&#160;</p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">You may run into following issues </font></p>  <blockquote>   <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">1. Your project may appear to hang for a while (browser spinning etc.). </font></p>    <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">2. Eventually you may see errors like</font></p>    <p><font style="background-color: rgb(255, 255, 0);"><font face="Lucida Sans Unicode"><font color="#8064a2"><b>Exception Details: </b>System.Net.Sockets.SocketException: No such host is known</font></font></font></p>    <p><font style="background-color: rgb(255, 255, 0);" color="#8064a2" face="Lucida Sans Unicode"><strong>DataCacheException</strong>: ErrorCode&lt;ERRCA0017&gt;:SubStatus&lt;ES0006&gt;</font></p>    <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>    <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Detailed exception:</font></p>    <div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);">     <pre id="codeSnippet" style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);">Server Error <span style="color: rgb(0, 0, 255);">in</span> <span style="color: rgb(0, 96, 128);">'/'</span> Application.<br /> <br />No such host <span style="color: rgb(0, 0, 255);">is</span> known <br />Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace <span style="color: rgb(0, 0, 255);">for</span> more information about the error and <span style="color: rgb(0, 0, 255);">where</span> it originated <span style="color: rgb(0, 0, 255);">in</span> the code. <br /> <br />Exception Details: System.Net.Sockets.SocketException: No such host <span style="color: rgb(0, 0, 255);">is</span> known<br /> <br />Source Error: <br /> <br /> <br />An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified <span style="color: rgb(0, 0, 255);">using</span> the exception stack trace below. <br />Stack Trace: <br /> <br /> <br /><br />[SocketException (0x2af9): No such host <span style="color: rgb(0, 0, 255);">is</span> known]<br />   Microsoft.ApplicationServer.Caching.AsyncResultNoResult.EndInvoke() +202<br />   Microsoft.ApplicationServer.Caching.AsyncResult`1.EndInvoke() +40<br />   Microsoft.ApplicationServer.Caching.SocketConnectionFactory.EndConnect(IAsyncResult asyncResult) +75<br />   Microsoft.ApplicationServer.Caching.TcpClientChannelFactory.TcpConnectionCallback(IAsyncResult result) +182<br />[DataCacheException: ErrorCode&lt;ERRCA0017&gt;:SubStatus&lt;ES0006&gt;:There <span style="color: rgb(0, 0, 255);">is</span> a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following conditions. Ensure that security permission has been granted <span style="color: rgb(0, 0, 255);">for</span> <span style="color: rgb(0, 0, 255);">this</span> client account, and check that the AppFabric Caching Service <span style="color: rgb(0, 0, 255);">is</span> allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater than or equal to the serialized <span style="color: rgb(0, 0, 255);">object</span> size sent from the client.). Additional Information : The client was trying to communicate with the server: net.tcp:<span style="color: rgb(0, 128, 0);">//WebRole1:24233.]</span><br />   Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ErrStatus errStatus, Guid trackingId, Exception responseException, Byte[][] payload, EndpointID destination) +767<br />   Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody, EndpointID destination) +149<br />   Microsoft.ApplicationServer.Caching.DataCacheFactory.EstablishConnection(IEnumerable`1 servers, RequestBody request, Func`3 sendMessageDelegate, DataCacheReadyRetryPolicy retryPolicy) +1313<br />   Microsoft.ApplicationServer.Caching.&lt;&gt;c__DisplayClass5.&lt;Initialize&gt;b__2(RequestBody req) +198<br />   Microsoft.ApplicationServer.Caching.SocketClientProtocol.SendReceive(IVelocityRequestPacket request, Func`2 <span style="color: rgb(0, 0, 255);">delegate</span>, EndpointID&amp; destination) +121<br />   Microsoft.ApplicationServer.Caching.SocketClientProtocol.Initialize(IEnumerable`1 servers) +1225<br />   Microsoft.ApplicationServer.Caching.DataCacheFactory.GetCache(String cacheName, CreateNewCacheDelegate cacheCreationDelegate, DataCacheInitializationViaCopyDelegate initializeDelegate) +1104<br />   Microsoft.ApplicationServer.Caching.DataCacheFactory.GetCache(String cacheName) +131<br />   Microsoft.Web.DistributedCache.DataCacheFactoryWrapper.CreateDataCacheFromFactory(DataCacheFactory factory, String cacheName) +63<br />   Microsoft.Web.DistributedCache.CacheHelpers.RunCacheCreationHooks(CacheConnectingEventArgs fetchingEventArgs, IDataCacheFactory dataCacheFactory, Object sender, EventHandler`1 fetchingHandler, EventHandler`1 fetchedHandler) +356<br />   Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider.CreateInternalProvider(IHttpRuntime httpRuntime, SessionInitializationData initData, IDataCacheFactory dataCacheFactory, EventHandler`1 cacheFetching, EventHandler`1 cacheFetched) +447<br />   Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider.GetInternalProvider() +315<br />   Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider.CreateNewStoreData(HttpContext context, Int32 timeout) +59<br />   System.Web.SessionState.SessionStateModule.InitStateStoreItem(Boolean addToContext) +160<br />   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +363<br />   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1269<br />   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +12598974<br />   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +288<br /><br />Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18033 <br /></pre>

    <br /></div>
</blockquote>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Please note that only including the new package in your solution will NOT cause these issues. These symptoms will appear only when you are actually trying to ‘use’ caching features. </font><font color="#8064a2" size="2" face="Lucida Sans Unicode">Like, enabling the Azure Caching Session State provide, or instantiating the DataCache objects etc..</font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><strong>Okay, we know there is a dependency. But what do we do now?</strong></font></p>

<p><strong><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></strong></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Here are two easy options</font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">1. Upgrade your Azure SDK to the latest version (v2.1) </font><font color="#8064a2" size="2" face="Lucida Sans Unicode">(this should be the right and recommended way)</font></p>

<blockquote>
  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><a href="http://www.windowsazure.com/en-us/downloads/?sdk=net" target="_blank">Download Latest Azure SDK</a></font></p>

  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>
</blockquote>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">2. If for some reason, you can not upgrade your Azure SDK at the moment, then you can manually install previous version of Azure Caching. (of course you will be missing on the new things v2.10.0 has to offer)</font></p>

<blockquote>
  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">a. Go to Visual Studio –&gt; Open your project where you want to install Azure Caching libraries&#160; </font></p>

  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">b. Tools –&gt; Library Package Manager –&gt; Package Manager Console</font></p>

  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">c. This should bring up ‘Package Manager Console’ window</font></p>

  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">d. Run following command in that console window</font></p>

  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><strong>&gt;Install-Package Microsoft.WindowsAzure.Caching -Version 2.0.0.0</strong></font></p>

  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">This should install the v2.0.0.0 of Azure Caching which you can use with your older versions of Azure SDK (&lt;v2.1)</font></p>

  <p>&#160;</p>

  <p>&#160;</p>

  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>
</blockquote>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Hope this help!</font></p>]]></content:encoded>
    </item>
    <item>
      <title>Consuming Service Management API from Web/Worker Role – Method 2</title>
      <link>https://docs.microsoft.com/archive/blogs/asgoyal/consuming-service-management-api-from-webworker-role-method-2</link>
      <pubDate>Sat, 27 Jul 2013 02:06:23 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Goyal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/asgoyal/2013/07/27/consuming-service-management-api-from-webworker-role-method-2/</guid>
      <description><![CDATA[You can find this blog, and lot of other interesting articles about Azure on My Team Blog...]]></description>
      <content:encoded><![CDATA[<blockquote>   <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">You can find this blog, and lot of other interesting articles about Azure on <strong><a href="http://blogs.msdn.com/b/cie/" target="_blank">My Team Blog</a></strong></font></p>    <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p> </blockquote>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">In <a href="http://blogs.msdn.com/b/asgoyal/archive/2013/07/23/consuming-service-management-api-from-web-worker-role.aspx" target="_blank">my previous post about the same topic</a><strong></strong> I mentioned there are multiple ways to enable your Web/Worker Role to consume service management API. Here is one more way where we will be leveraging the power of Azure Publish Settings file.</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Publish Settings File contains information about your subscription. And that information, once consumed by tools like Visual Studio, let you seamlessly deploy application to Windows Azure. </font><font color="#8064a2" size="2" face="Lucida Sans Unicode">Among other information, it contains a management certificate, which really facilitate the authentication part when you are trying to ‘manage’ your subscription.</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">We will be leveraging this Management Certificate to get our application code, which is consuming Service Management API, work.</font></p>  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">As you may already know, while consuming Service Management API, your code is fetching the management certificate from the local certificate store. Lets assume you are using <a href="http://msdn.microsoft.com/en-us/library/windowsazure/ee460781.aspx" target="_blank">This MSDN Sample</a>, and you have GetStoreCertificate method which looks like this. </font></p>  <div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);"><font color="#8064a2" size="2" face="Lucida Sans Unicode">     <pre id="codeSnippet" style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(0, 0, 255);">private</span> <span style="color: rgb(0, 0, 255);">static</span> X509Certificate2 GetStoreCertificate(<span style="color: rgb(0, 0, 255);">string</span> thumbprint)<br />{<br />    List&lt;StoreLocation&gt; locations = <span style="color: rgb(0, 0, 255);">new</span> List&lt;StoreLocation&gt;<br />    { <br />        StoreLocation.CurrentUser, <br />        StoreLocation.LocalMachine<br />    };<br /><br />    <span style="color: rgb(0, 0, 255);">foreach</span> (var location <span style="color: rgb(0, 0, 255);">in</span> locations)<br />    {<br />        X509Store store = <span style="color: rgb(0, 0, 255);">new</span> X509Store(<span style="color: rgb(0, 96, 128);">&quot;My&quot;</span>, location);<br />        <span style="color: rgb(0, 0, 255);">try</span><br />        {<br />            store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);<br />            X509Certificate2Collection certificates = store.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, <span style="color: rgb(0, 0, 255);">false</span>);<br />            <span style="color: rgb(0, 0, 255);">if</span> (certificates.Count == 1)<br />            {<br />                <span style="color: rgb(0, 0, 255);">return</span> certificates[0];<br />            }<br />        }<br />        <span style="color: rgb(0, 0, 255);">finally</span><br />        {<br />            store.Close();<br />        }<br />    }<br />    <span style="color: rgb(0, 0, 255);">throw</span> <span style="color: rgb(0, 0, 255);">new</span> ArgumentException(<span style="color: rgb(0, 0, 255);">string</span>.Format(<span style="color: rgb(0, 96, 128);">&quot;A Certificate with Thumbprint '{0}' could not be located.&quot;</span>, thumbprint));<br />}</pre>

    <br /></font></div>
<font color="#8064a2" size="2" face="Lucida Sans Unicode"></font>



<p>&#160;</p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">As you can see, you are querying your local certificate stores (Current User, Local Machine) and searching for the certificate thumbprint. <a href="http://blogs.msdn.com/b/asgoyal/archive/2013/07/23/consuming-service-management-api-from-web-worker-role.aspx" target="_blank">In my previous post</a>, we discussed how to make your certificate available for this method to work. </font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><strong>Now, lets see how we can avoid all that</strong></font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">1. Download the Azure Publish Settings File ( </font><font color="#8064a2" size="2" face="Lucida Sans Unicode"><a href="https://windows.azure.com/download/publishprofile.aspx">https://windows.azure.com/download/publishprofile.aspx</a> </font><font color="#8064a2" size="2" face="Lucida Sans Unicode">)</font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">2. Open this file in Notepad –&gt;you will find something like ManagementCertificate=”<strong>…….SomeReallyLongString…..</strong>” –&gt; copy this string value </font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">3. Now modify your GetStoreCertificate method as following</font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>

<div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);">
  <pre id="codeSnippet" style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(0, 0, 255);">private</span> <span style="color: rgb(0, 0, 255);">static</span> X509Certificate2 GetStoreCertificate(<span style="color: rgb(0, 0, 255);">string</span> thumbprint)<br />{            <br />    X509Certificate2 certificate = <span style="color: rgb(0, 0, 255);">new</span> X509Certificate2((Convert.FromBase64String<strong>(</strong><span style="color: rgb(0, 96, 128);"><strong>&quot;.....SomeReallyLongString.....</strong>&quot;</span>)));<br />    <span style="color: rgb(0, 0, 255);">return</span> certificate;         <br />}</pre>

  <br /></div>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Note: You would definitely want to wrap this around a nice try/catch block and will remove the now un-necessary parameter ‘thumbprint’ and follow other good programming practices. </font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">4. Compile and deploy the project to Windows Azure –&gt; it should work nicely </font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><strong>Let’s try to understand why this has worked.</strong> </font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">It is the Publish Settings File which is doing the trick. When you downloaded this file (Step 1), there was a new management certificate got created on the Portal. This certificate was represented <font color="#8064a2" size="2" face="Lucida Sans Unicode">in the Publish Settings File (MyFileName.publishsettings)</font>by </font></p>

<blockquote>
  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">ManagementCertificate=”<strong>…SomeReallyLongString…</strong>”</font></p>
</blockquote>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">All we did was pass on this string in our code and all was well since this certificate is already present in the management portal. </font></p>

<blockquote>
  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><a href="http://gauravmantri.com/2012/09/14/about-windows-azure-publish-settings-file-and-how-to-create-your-own-publish-settings-file/" target="_blank">Read more about Publish Settings File</a> </font></p>
</blockquote>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><strong>What is good about this method:</strong></font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">1. Easier to manage.</font><font color="#8064a2" size="2" face="Lucida Sans Unicode"> No startup task or any change in Visual Studio is required</font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">2. No need to create a new certificate separately</font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">3. Cleaner code</font><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"><strong>What is not-so-good:</strong></font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">The main concerned could be that, by-default you have no control over the management certificate which is created by Windows Azure for you. You may want to use your own customized certificate.</font></p>

<blockquote>
  <p><font color="#8064a2" size="2" face="Lucida Sans Unicode">To create Publish Settings File using your own certificate, please refer <a href="http://social.msdn.microsoft.com/Forums/windowsazure/en-US/5054447c-b04a-4a69-bf89-d17c441b1c73/how-to-generate-publishsettings-file-from-existing-management-certificate" target="_blank">This MSDN Forum</a></font></p>
</blockquote>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode">Hope this helps!</font></p>

<p><font color="#8064a2" size="2" face="Lucida Sans Unicode"></font></p>

<p><font size="2" face="Lucida Sans Unicode">&#160;</font></p>]]></content:encoded>
    </item>
    <item>
      <title>July Updates for Windows Azure</title>
      <link>https://docs.microsoft.com/archive/blogs/asgoyal/july-updates-for-windows-azure</link>
      <pubDate>Tue, 23 Jul 2013 19:52:00 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Goyal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/asgoyal/2013/07/23/july-updates-for-windows-azure/</guid>
      <description><![CDATA[&#160;  There were some great updates to Windows Azure were released earlier today!&#160; Some of...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">There were some great updates to Windows Azure were released earlier today!&#160; Some of them are</font></p>  <ul>   <li><font face="Lucida Sans Unicode"><font size="2"><font color="#9b00d3"><strong>SQL Databases</strong>: Support for Automated SQL Export and a New Premium Tier SQL Database option </font></font></font></li>    <li><font face="Lucida Sans Unicode"><font size="2"><font color="#9b00d3"><strong>Traffic Manager</strong>: New support for managing Windows Azure Traffic Manager in the HTML Portal </font></font></font></li>    <li><font face="Lucida Sans Unicode"><font size="2"><font color="#9b00d3"><strong>AutoScale</strong>: Support for Windows Azure Mobile Services, AutoScale rules for Service Bus Queue Depth, Alerts on AutoScale actions </font></font></font></li>    <li><font face="Lucida Sans Unicode"><font size="2"><font color="#9b00d3"><strong>Virtual Machines</strong>: Updates to the IaaS management experiences in the Management Portal</font></font></font> </li> </ul>  <p>&#160;</p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">For more details, please read Scott Gu’s blog</font></p>  <p><a href="http://weblogs.asp.net/scottgu/archive/2013/07/23/windows-azure-july-updates-sql-database-traffic-manager-autoscale-virtual-machines.aspx" target="_blank"><font size="2" face="Lucida Sans Unicode"><strong>Windows Azure July Updates</strong></font></a></p>  <p>&#160;</p>  <p><a title="http://weblogs.asp.net/scottgu/archive/2013/07/23/windows-azure-july-updates-sql-database-traffic-manager-autoscale-virtual-machines.aspx" href="http://weblogs.asp.net/scottgu/archive/2013/07/23/windows-azure-july-updates-sql-database-traffic-manager-autoscale-virtual-machines.aspx">http://weblogs.asp.net/scottgu/archive/2013/07/23/windows-azure-july-updates-sql-database-traffic-manager-autoscale-virtual-machines.aspx</a>&#160;</p>  <p>&#160;</p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">Cheers!</font></p>]]></content:encoded>
    </item>
    <item>
      <title>Consuming Service Management API from Web/Worker Role</title>
      <link>https://docs.microsoft.com/archive/blogs/asgoyal/consuming-service-management-api-from-webworker-role</link>
      <pubDate>Mon, 22 Jul 2013 22:39:02 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Goyal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/asgoyal/2013/07/22/consuming-service-management-api-from-webworker-role/</guid>
      <description><![CDATA[Recently on our Team Blog, I posted about using Service Management API from code running in...]]></description>
      <content:encoded><![CDATA[<p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">Recently on our <a href="http://blogs.msdn.com/b/cie/" target="_blank">Team Blog</a>, I posted about using Service Management API from code running in Windows. Reposting it here as well for easier access.</font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"><a href="http://blogs.msdn.com/b/cie/archive/2013/07/23/consuming-service-management-api-from-web-worker-role.aspx" target="_blank"><strong>My team blog</strong></a></font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">It is not un-common to have the need of enabling your Web Role / Worker Role to consume the Azure Service Management API. Here is a step-by-step guide on how you could do that</font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">For Service Management API to work for you, you need to satisfy following pre-conditions</font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">1. Have a valid SSL Certificate. This certificate has to be present on the Azure Portal</font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">2. This certificate (or some information of this certificate) needs to be accessible to your Web/Worker Role.</font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"></font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">Here is a step-by-step guide on how you achieve this.</font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"><strong>1. Get a valid SSL Certificate:</strong></font></p>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">a. You can get the certificate from your Enterprise CA or from any third party vendor</font></p> </blockquote>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">b. Or you can create your own self-signed certificate using IIS (probably the easiest way if you have local IIS configured)</font></p> </blockquote>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">Start –&gt; Run –&gt; type ‘inetmgr’ –&gt; this will open IIS Manager –&gt; select the root node in left panel –&gt; double click on ‘Server Certificate’ icon in middle panel&#160; –&gt; ‘Create Self-Signed Certificate’ in the extreme right side panel –&gt; Go through the wizard, that all and you have your own self signed certificate)</font></p> </blockquote>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">c. Save the certificate file (.pfx): In IIS Manager, double click on the certificate which you just created –&gt; in the Certificate properties window, go to Details tab –&gt; click ‘Copy to File’ –&gt; Next –&gt; select ‘Yes, export the Private key’ –&gt; Next –&gt; select ‘Personal Information Exchange.. ’ –&gt; Next –&gt; give a Password –&gt; Next –&gt; Browse to the file location –&gt; Next –&gt; Finish</font></p> </blockquote>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"><strong>2. Upload this certificate to the Azure portal</strong></font></p>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">a. To do that, save the certificate in .cer format from IIS manager. </font></p>    <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">Use the same steps as above, except that this time select ‘Export without private key’ when asked. </font></p>    <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">b. Upload this .cer file to Azure Management Portal</font></p> </blockquote>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">in the Azure Portal –&gt; got to Settings –&gt; Management Certificate –&gt; Upload </font></p> </blockquote>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"><strong>3. Attach the certificate with the solution using a startup task</strong></font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">This step will make the certificate available in the Local Certificate Store at the instance once you have deployed your application to Azure. Your application code should then be able to fetch necessary certificate details when it is consuming Service Management API</font></p>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">a. Create a new folder in Visual Studio, lets name it Startup</font></p> </blockquote>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">b. Copy the .pfx file in the Startup folder</font></p> </blockquote>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">c. Create a new .cmd file in the Startup folder, lets call it AddCertiticate.cmd</font></p> </blockquote>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">d. Add following command to the AddCertificate.cmd</font></p> </blockquote>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">CERTUTIL -f –p PasswordOfTheCertificate -importpfx &quot;Startup\NameOfTheCertificate.pfx</font></p> </blockquote>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">e. Go to properties of AddCertificate.cmd and the certificate pfx –&gt; ensure ‘Copy to output directory’ is set to ‘Copy Always’</font></p> </blockquote>  <blockquote>   <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">f. Add the following in the service definition file (.csdef)</font></p>    <div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);">     <pre id="codeSnippet" style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);">&lt;Startup&gt;  <br />  &lt;Task commandLine=<span style="color: rgb(0, 96, 128);">&quot;Startup\AddCertiticate.cmd&quot;</span> executionContext=<span style="color: rgb(0, 96, 128);">&quot;elevated&quot;</span> taskType=<span style="color: rgb(0, 96, 128);">&quot;simple&quot;</span>&gt; &lt;/Task&gt;<br />&lt;/Startup&gt;</pre>

    <br /></div>

  <pre class="csharpcode"></pre>
  <font color="#9b00d3" size="2" face="Lucida Sans Unicode"></font></blockquote>

<blockquote>
  <p><font face="Lucida Sans Unicode"><font color="#9b00d3" size="2"><strong>UPDATE [27/07/2013]: Here is an another way to do ‘Step 3’ without creating the startup task. thanks </strong><a href="http://social.msdn.microsoft.com/profile/gaurav%20mantri/?ws=usercard-inline" target="_blank"><strong>Gaurav Mantri</strong></a><strong>. </strong></font></font></p>

  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">In this method, we will manually upload the certificate to the Cloud Service, configure the certificate thumbprint in Visual Studio, and deploy the project! No need to create the startup task. </font></p>

  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">a. Go to the Azure Portal –&gt; Cloud Service –&gt; go to the service where you will be deploying </font></p>

  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">b. Certificate –&gt; Upload –&gt; Browse to the .pfx file and upload it –&gt; Copy the Thumbprint once done</font></p>

  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">c. In Visual Studio –&gt; go to the cloud project –&gt; Roles –&gt; WebRole1 (or the name you have given) –&gt; right click –&gt; Properties –&gt; Certificates</font></p>

  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">d. Add Certificate –&gt; give any name you want –&gt; give the store location (generally it is ‘Local Store | My’ unless you have customized it during certificate creation/import) –&gt; add the thumbprint which you have copied from the portal two steps ago</font></p>

  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">e. save, build and publish. </font></p>
</blockquote>



<p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">With this our setup is ready. Now there is one last issue to deal with. When your code executes on the VM, it would need to access local certificate store in order to pull the certificate information which you are uploading with the package. By default, the azure application pool account, Network Service, does not have privilege to access the local certificate store. </font></p>

<p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">So we need to add those privileges for Network Service</font></p>

<p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"><strong>4. Enabling application pool account (Net work Service) to access local certificate store</strong></font></p>

<blockquote>
  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">a. Add the following command AddCertificate.cmd</font></p>
</blockquote>

<blockquote>
  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">startup\WinHttpCertCfg.exe -g -c LOCAL_MACHINE\MY -s &quot;NameOfTheCertificate&quot; -a &quot;Network Service&quot;</font></p>

  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa384088(v=vs.85).aspx" target="_blank">Ref: WinHttpCertCfg</a>&#160;</font></p>
</blockquote>

<blockquote>
  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">b. As you have noticed, we are using WinHttpCertCfg.exe So we would need to add that as well in our solution</font></p>
</blockquote>

<blockquote>
  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">c. Download the WinHttpCertCfg.exe from </font><a href="http://www.microsoft.com/en-us/download/details.aspx?id=19801"><font color="#9b00d3" size="2" face="Lucida Sans Unicode">here</font></a><font color="#9b00d3" size="2" face="Lucida Sans Unicode"> –&gt; Copy it to Startup folder –&gt; Ensure ‘Copy Always’ is selected in Properties for this exe</font></p>

  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"><a href="http://www.microsoft.com/en-us/download/details.aspx?id=19801" target="_blank">Download WinhttpCertCfg.exe</a></font></p>
</blockquote>

<p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">With this, now you can compile and publish the solution and your code to consume Service Management API should run without any issue. Please note that these steps are only putting the infrastructure in place. You still need to write the code to consume the Service Management APIs. </font></p>

<p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">References: </font></p>

<blockquote>
  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"><a href="http://blogs.msdn.com/b/windowsazure/archive/2009/09/17/introducing-the-windows-azure-service-management-api.aspx" target="_blank">Introduction</a></font></p>
</blockquote>

<blockquote>
  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"><a href="http://msdn.microsoft.com/en-us/library/windowsazure/ee460812.aspx" target="_blank">List of Operations</a></font></p>
</blockquote>

<p><font color="#9b00d3" size="2" face="Lucida Sans Unicode"></font></p>

<p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">There are more than one ways to active this. In my coming posts I will try to talk about what could be the alternatives. </font></p>

<p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">Hope this helps!</font></p>]]></content:encoded>
    </item>
    <item>
      <title>Linking a resource to your Cloud Service? What does that mean</title>
      <link>https://docs.microsoft.com/archive/blogs/asgoyal/linking-a-resource-to-your-cloud-service-what-does-that-mean</link>
      <pubDate>Mon, 15 Jul 2013 20:45:59 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Goyal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/asgoyal/2013/07/15/linking-a-resource-to-your-cloud-service-what-does-that-mean/</guid>
      <description><![CDATA[Some of the Azure developers/administrator often misunderstand “Linking a resource” to a cloud...]]></description>
      <content:encoded><![CDATA[<p><font size="2" face="Lucida Sans Unicode"></font></p>  <p><font size="2" face="Lucida Sans Unicode">Some of the Azure developers/administrator often misunderstand “Linking a resource” to a cloud service. Many times I see people asking, I have linked a SQL Azure DB/Storage to my cloud service, still my data is not getting transferred. Most of you already know what really linking resources mean, but still I felt like giving this quick explanation for the benefits of all.</font></p>  <p><font size="2" face="Lucida Sans Unicode"></font></p>  <p><font size="2" face="Lucida Sans Unicode">Linking a resource does not mean that your Cloud Service is connected to that resource (SQL Azure DB, Storage etc.). It simply means that now you can monitor the resource and the Cloud Service together in an easier way.</font></p>  <p><font size="2" face="Lucida Sans Unicode">This does not mean that your Cloud Service will be able to interact with the resource. Weather you Link the resource or not, you must write the code in your Cloud Service application to interact with the resource.</font></p>  <p><font size="2" face="Lucida Sans Unicode">The same explanation is provided right on the Azure Portal</font></p>  <p><font size="2" face="Lucida Sans Unicode">(Azure Portal –&gt; Select the Service in question –&gt; Linked Resources – &gt; click on the Question Mark “?”)</font></p>  <p><font size="2" face="Lucida Sans Unicode">“</font></p>  <p>To show your cloud service's dependencies on other resources, you can link Windows Azure SQL Database instances and storage accounts to the cloud service and monitor their usage on the cloud service dashboard. (To see Total Requests for a linked storage account, you must turn on monitoring for it.) </p>  <p>You can scale a linked SQL Database instance along with cloud service roles on the <strong>Scale</strong> page. </p>  <p><img alt="Tip" src="https://manage.windowsazure.com/HelpContent/GetImage?ExtensionContext=cloudservicesextension.cloudservice.iisdebug.linkedresources&amp;ImageId=hh867564.Tip(en-us,azure.100).gif&amp;Locale=en-us" />Tip </p>  <p>You also can monitor, manage, and scale the database in <strong>SQL Databases</strong>. <a href="http://go.microsoft.com/fwlink/?LinkID=263223">Get started using SQL Database</a></p>  <p>&quot;Linking&quot; a resource doesn't connect your app to the resource. You must add connection strings to your code. Unlinking a resource doesn't affect the resource or the connections. </p>  <p><font size="2" face="Lucida Sans Unicode">“&#160; </font></p>  <p><font size="2" face="Lucida Sans Unicode">Hope this help!</font></p>  <p><font size="2" face="Lucida Sans Unicode">Cheers!</font></p>]]></content:encoded>
    </item>
    <item>
      <title>More free Microsoft eBooks–Happy Learning!</title>
      <link>https://docs.microsoft.com/archive/blogs/asgoyal/more-free-microsoft-ebookshappy-learning</link>
      <pubDate>Fri, 12 Jul 2013 06:48:20 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Goyal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/asgoyal/2013/07/12/more-free-microsoft-ebookshappy-learning/</guid>
      <description><![CDATA[&#160;  Thanks to Microsoft, here are yet another set of free Microsoft eBooks! Visit this post by...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">Thanks to Microsoft, here are yet another set of free Microsoft eBooks! Visit this post by Eric Ligman</font></p>  <p><a title="http://blogs.msdn.com/b/mssmallbiz/archive/2013/06/18/huge-collection-of-free-microsoft-ebooks-for-you-including-office-office-365-sharepoint-sql-server-system-center-visual-studio-web-development-windows-windows-azure-and-windows-server.aspx" href="http://blogs.msdn.com/b/mssmallbiz/archive/2013/06/18/huge-collection-of-free-microsoft-ebooks-for-you-including-office-office-365-sharepoint-sql-server-system-center-visual-studio-web-development-windows-windows-azure-and-windows-server.aspx">http://blogs.msdn.com/b/mssmallbiz/archive/2013/06/18/huge-collection-of-free-microsoft-ebooks-for-you-including-office-office-365-sharepoint-sql-server-system-center-visual-studio-web-development-windows-windows-azure-and-windows-server.aspx</a></p>  <p>&#160;</p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">Here you can find previous batch of free eBooks</font></p>  <p><a title="http://blogs.msdn.com/b/asgoyal/archive/2012/08/25/learning-resources-free-microsoft-press-e-books.aspx" href="http://blogs.msdn.com/b/asgoyal/archive/2012/08/25/learning-resources-free-microsoft-press-e-books.aspx">http://blogs.msdn.com/b/asgoyal/archive/2012/08/25/learning-resources-free-microsoft-press-e-books.aspx</a></p>  <p>&#160;</p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">Spread the word! <img class="wlEmoticon wlEmoticon-smile" style="style" alt="Smile" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/03/metablogapi/6874.wlEmoticon-smile_37AB5BE1.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-03-metablogapi/6874.wlEmoticon_2D00_smile_5F00_37AB5BE1.png" /></font></p>  <p><font color="#9b00d3" size="2" face="Lucida Sans Unicode">Cheers!</font></p>]]></content:encoded>
    </item>
    <item>
      <title>‘Hello world’ for Windows Azure Blob Storage</title>
      <link>https://docs.microsoft.com/archive/blogs/asgoyal/hello-world-for-windows-azure-blob-storage</link>
      <pubDate>Mon, 17 Jun 2013 01:44:21 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Goyal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/asgoyal/2013/06/17/hello-world-for-windows-azure-blob-storage/</guid>
      <description><![CDATA[&nbsp;While learning various storage models for Windows Azure, I was looking for a simple ‘Hello...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p><p><font face="Lucida Sans Unicode" size="2">While learning various storage models for Windows Azure, I was looking for a simple ‘Hello world’ application which will only write to Blob Storage. It turned out that such simple application was not so easy to find on internet for a newbie, it was at least to me. </font></p><p><font face="Lucida Sans Unicode" size="2">So I am sharing one such code snippet which will do a write to Blob storage. This can be used to learn the interaction with Blob storage as your very first step and also it can be used to debug your existing applications deployed in cloud.</font></p><p><font face="Lucida Sans Unicode" size="2">A detailed reference can be found here in MSDN</font></p><p><a title="http://www.windowsazure.com/en-us/develop/net/how-to-guides/blob-storage/" href="http://www.windowsazure.com/en-us/develop/net/how-to-guides/blob-storage/"><font face="Lucida Sans Unicode" size="2">http://www.windowsazure.com/en-us/develop/net/how-to-guides/blob-storage/</font></a>&nbsp;</p><p>&nbsp;</p><pre class="csharpcode">
<span class="kwrd">public</span> <span class="kwrd">override</span> <span class="kwrd">bool</span> OnStart()
{

   <span class="rem">// create a local file to upload</span>
   var fileStream1 = System.IO.File.Create(<span class="str">@"hello.txt"</span>);
   fileStream1.Close();


 
   <span class="rem">// Retrieve storage account from connection string.</span>
   CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
         CloudConfigurationManager.GetSetting(<span class="str">"StorageConnectionString"</span>));
 
    

   <span class="rem">// Create the blob client.</span>
   Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient blobClient = 
                    storageAccount.CreateCloudBlobClient();

 
   

   <span class="rem">// Retrieve reference to a previously created container.</span>
   CloudBlobContainer container = </pre><pre class="csharpcode">                       blobClient.GetContainerReference(<span class="str">"mycontainer"</span>);
   container.CreateIfNotExists();
 
 
            

    <span class="rem">// Retrieve reference to a blob named "myblob".</span>
    CloudBlockBlob blockBlob = </pre><pre class="csharpcode">                     container.GetBlockBlobReference(<span class="str">"OnStartEvent "</span> + <span class="str">"_"</span> 
                     + System.DateTime.Now.ToString() 
                     + <span class="str">"_"</span> + RoleEnvironment.CurrentRoleInstance.Id.ToString());
 
            

   <span class="rem">// Create or overwrite the "myblob" blob with contents from a local file.</span>
   <span class="kwrd">using</span> (var fileStream = System.IO.File.OpenRead(<span class="str">@"hello.txt"</span>))
   {
            blockBlob.UploadFromStream(fileStream);
   }
 
 
 
   <span class="kwrd">return</span> <span class="kwrd">base</span>.OnStart();
 
 }
</pre><blockquote><div align="left"><pre class="csharpcode"><font size="1"></font>&nbsp;</pre></div></blockquote><pre class="csharpcode">&nbsp;</pre><pre class="csharpcode"><font face="Lucida Sans Unicode">The prerequisites are </font></pre><pre class="csharpcode"><font face="Lucida Sans Unicode">1. You should have a valid Windows Azure subscription </font></pre><pre class="csharpcode"><font face="Lucida Sans Unicode">                                              (get your 30 days free trial </font><a href="http://www.windowsazure.com/en-us/pricing/free-trial/"><font face="Lucida Sans Unicode">here</font></a><font face="Lucida Sans Unicode">)
</font></pre><pre class="csharpcode"><font face="Lucida Sans Unicode">2. You have created a Storage on the portal (Azure Portal –&gt; New –&gt; </font></pre><blockquote><pre class="csharpcode"><font face="Lucida Sans Unicode">                                 Data Services –&gt; Storage –&gt; Quick Create)</font></pre></blockquote><pre class="csharpcode"><font face="Lucida Sans Unicode">3. Have configured a connection string in your config file </font></pre><pre class="csharpcode"><font face="Lucida Sans Unicode">                                          (web.config or app.config)</font></pre><pre class="csharpcode">&nbsp;</pre><pre class="csharpcode">&lt;configuration&gt;
&lt;appSettings&gt;
&lt;add key=<span class="str">"StorageConnectionString"</span> 
<span class="kwrd">value</span>=<span class="str">"DefaultEndpointsProtocol=https;
         AccountName=[AccountName];
         AccountKey=[AccountKey]"</span> /&gt;
&lt;/appSettings&gt;
&lt;/configuration&gt;
</pre><pre class="csharpcode">&nbsp;</pre><pre class="csharpcode"><font face="Lucida Sans Unicode">Now you should be able to build and perform this simple interaction with Azure Blob Storage. To see the storage data, you can use </font></pre><pre class="csharpcode"><font face="Lucida Sans Unicode"><a href="http://azurestorageexplorer.codeplex.com/">Azure Storage Explorer</a></font></pre><pre class="csharpcode"><font face="Lucida Sans Unicode">or</font></pre><pre class="csharpcode"><font face="Lucida Sans Unicode">Visual Studio (if using <a href="http://weblogs.asp.net/scottgu/archive/2013/04/30/announcing-the-release-of-windows-azure-sdk-2-0-for-net.aspx">Azure SDK 2.0</a>) </font></pre><pre class="csharpcode"><font face="Lucida Sans Unicode"></font>&nbsp;</pre><pre class="csharpcode"><font face="Lucida Sans Unicode">Hope this helps!</font></pre>]]></content:encoded>
    </item>
  </channel>
</rss>