<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Partly Cloudy</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/partlycloudy/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/partlycloudy/feed.xml</link>
    <description>Thoughts about Windows Azure with an inside perspective</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:50:28 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Development Storage Logging</title>
      <link>https://docs.microsoft.com/archive/blogs/partlycloudy/development-storage-logging</link>
      <pubDate>Wed, 16 Dec 2009 14:51:53 GMT</pubDate>
      <dc:creator><![CDATA[Adam Sampson]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/partlycloudy/2009/12/16/development-storage-logging/</guid>
      <description><![CDATA[The development storage has an extensive logging infrastructure that allows you to monitor all sorts...]]></description>
      <content:encoded><![CDATA[<p>The development storage has an extensive logging infrastructure that allows you to monitor all sorts of interesting events including all the SQL commands sent to your SQL instance. These logs are also useful when debugging storage access or determining why things aren’t behaving the way you think they should.</p>  <p>To enable logging, fire up your favorite XML editor and crack open <code>%LocalAppData%\DevelopmentStorage\DevelompentStorage.config</code>. Change the value of <code>LoggingEnabled</code> to true, save the file and restart your development storage. Logs should start appearing in <code>%LocalAppData%\DevelopmentStorage\Logs</code>! But don’t forget to turn it back off once you’re done with the logging feature – the logs produced are rather verbose and have a tendency to consume all your free disk space if left unchecked!</p>]]></content:encoded>
    </item>
    <item>
      <title>Configuring the Storage Client with Connection Strings</title>
      <link>https://docs.microsoft.com/archive/blogs/partlycloudy/configuring-the-storage-client-with-connection-strings</link>
      <pubDate>Tue, 08 Dec 2009 01:26:27 GMT</pubDate>
      <dc:creator><![CDATA[Adam Sampson]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/partlycloudy/2009/12/08/configuring-the-storage-client-with-connection-strings/</guid>
      <description><![CDATA[In the November 2009 SDK we included an official storage client library. As an improvement over the...]]></description>
      <content:encoded><![CDATA[<p>In the <a href="https://www.microsoft.com/downloads/details.aspx?FamilyID=772990da-8926-4db0-958f-95c1da572c84&amp;displaylang=en">November 2009 SDK</a> we included an official storage client library. As an improvement over the StorageClient sample we previously shipped, the new official library supports a connection string format for easy single-value configuration of storage endpoints and account information. We tried to mimic the general format of a SQL connection string; the format is a series of name=value pairs separated by semicolons.</p>  <p>There are three general formats for the connection string, so let’s go over each in detail.</p>  <h3>Development storage connection strings</h3>  <p>There are only two options you can specify here. The first is self-explanatory: <code>UseDevelopmentStorage</code>. The only valid value for this is <code>true</code> – if it was false you wouldn’t have used it.</p>  <p>The second option is more interesting. Let’s say you’re running into an error that you don’t quite understand and you can’t get enough information from the debugger to figure out what’s going wrong. You could use <a href="https://www.fiddler2.com/fiddler2/">Fiddler</a> to examine the HTTP requests as they go back and forth to the development storage, but Fiddler doesn’t work when you connect to 12.0.0.1. Enter the second development storage setting: <code>DevelopmentStorageProxyUri</code>! Instead of the regular 127.0.0.1 the host of the Uri you specify in this setting gets used for all accesses to the development storage. Set it to <code>https://ipv4.fiddler</code> and presto – development storage access shows up in Fiddler!</p>  <p>Unfortunately there is an issue with the Fiddler support for blobs and queues returned from listing. Fiddler translates the ipv4.fiddler into 127.0.0.1 before sending the request to the development storage, the absolute Uris returned in response use 127.0.0.1 as the host instead of ipv4.fiddler. Since we don’t modify these Uris when creating objects in the November 2009 version of the storage client, operations performed on them won’t tunnel through Fiddler.</p>  <p>If that didn’t make any sense, fire up Fiddler and step through this code in the debugger:</p>  <pre class="brush: csharp;">var account = CloudStorageAccount.Parse(&quot;UseDevelopmentStorage=true;DevelopmentStorageProxyUri=https://ipv4.fiddler&quot;);
var blobClient = account.CreateCloudBlobClient();
var queueClient = account.CreateCloudQueueClient();

var container = blobClient.GetContainerReference(&quot;testcontainer&quot;);
var blob = container.GetBlobReference(&quot;testblob&quot;);
var queue = queueClient.GetQueueReference(&quot;testqueue&quot;);

// these create requests should show up in Fiddler
container.CreateIfNotExist();
blob.UploadText(&quot;some blob content&quot;);
queue.Create();

// these list operations should show up too
var blobFromList = (from c in container.ListBlobs() select c).Cast&lt;CloudBlob&gt;().First();
var queueFromList = (from q in queueClient.ListQueues() select q).First();

// but these requests should not show up in Fiddler
blobFromList.Delete();
queueFromList.Delete();</pre>

<p>If you take a look at blobFromList.Uri you’ll see that the host is 127.0.0.1 instead of ipv4.fiddler. You can work around this if you need to by fixing up the Uri yourself and creating a new CloudBlob object.</p>

<h4>Examples</h4>

<pre class="brush: csharp;">&quot;UseDevelopmentStorage=true&quot;</pre>

<p>This is the vanilla development storage connection string. Nothing too exciting, but gets the job done.</p>

<pre class="brush: csharp;">&quot;UseDevelopmentStorage=true;DevelopmentStorageProxyUri=https://ipv4.fiddler&quot;</pre>

<p>This one is perfect for routing development storage traffic through Fiddler for debugging. Make sure you have Fiddler running before you use this one or it won’t be able to connect!</p>

<h3>Default endpoint connection strings</h3>

<p>Connecting to Windows Azure Storage in the cloud is a snap with connection strings. The three settings you need to specify are <code>AccountName</code>, <code>AccountKey</code> and <code>DefaultEndpointsProtocol</code>. <code>AccountName</code> is the name of your storage account and <code>AccountKey</code> is the key that’s provided to you on the developer portal. <code>DefaultEndpointsProtocol</code> can be set to either <code>http</code> or <code>https</code> and chooses which protocol to use.</p>

<h4>Example</h4>

<pre class="brush: csharp;">&quot;AccountName=azurestorage;AccountKey=base64key;DefaultEndpointsProtocol=https&quot;</pre>

<p>Here’s a simple example of a connection string for Windows Azure Storage in the cloud. Just replace <code>azurestorage</code> with your account name and <code>base64key</code> with the key displayed on the developer portal and you’re ready to go.</p>

<h3>Custom endpoint, or advanced configuration connection strings</h3>

<p>The connection string format also supports an advanced specification of all three endpoints as well as credential information such as a SAS signature for blob storage. You can use the <code>BlobEndpoint</code>, <code>QueueEndpoint</code> and <code>TableEndpoint</code> settings to set the endpoints to use for those services. You can also leave out endpoints for services you’re not using, but you’re required to specify at least one endpoint. It wouldn’t make a lot of sense to have account information without any endpoints to connect to. SAS signatures are specified with the <code>SharedAccessSignature</code> setting.</p>

<p>The only time you need to use connection strings of this form is for using the storage client with SAS credentials or for testing purposes, such as testing custom domains or proxies.</p>

<h4>Example</h4>

<pre class="brush: csharp;">&quot;BlobEndpoint=https://azurestorage.blob.core.windows.net/;SharedAccessSignature=base64sig&quot;</pre>

<p>This last example shows how to explicitly specify an endpoint as well as use the <code>SharedAccessSignature</code> setting to configure the <code>CloudStorageAccount</code> class to create a <code>StorageCredentialsSharedAccessSignature</code> for you.</p>]]></content:encoded>
    </item>
    <item>
      <title>Obligatory Introductory Post</title>
      <link>https://docs.microsoft.com/archive/blogs/partlycloudy/obligatory-introductory-post</link>
      <pubDate>Mon, 16 Nov 2009 15:09:00 GMT</pubDate>
      <dc:creator><![CDATA[Adam Sampson]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/partlycloudy/2009/11/16/obligatory-introductory-post/</guid>
      <description><![CDATA[Hello, world! Time for the obligatory introductory post to get this blog off to a good start. Let’s...]]></description>
      <content:encoded><![CDATA[<P>Hello, world! Time for the obligatory introductory post to get this blog off to a good start. Let’s begin with a little about myself. I’m a software developer on the Windows Azure SDK at Microsoft. I currently work on the samples and the brand-new official storage client library released in the November 2009 SDK.</P>
<P>I hope to use this blog to both talk about new or interesting things in the Windows Azure SDK or Windows Azure in general as well as discuss general code topics that interest me.</P>]]></content:encoded>
    </item>
  </channel>
</rss>