title: Azure Service Bus Read Message Queue
body: <p>I am fairly new to Azure but struggling to devise or find a way of reading messages in my queue. I have the following:</p>
  
  <ul>
  <li>Cloud Service</li>
  <li>Storage Account</li>
  <li>Queues</li>
  </ul>
  
  <p>What I am struggling with now is, I can see via the pretty graph Portal gives me messages are being received but I would like to see the contents of them and this seems impossible to do via the Portal at least.</p>
  
  <p>So I started hand cracking some code to get these messages but this doesn't work either.</p>
  
  <pre><code>    var credentials = new StorageCredentials("account", "key");
      var storageAccount = new CloudStorageAccount(credentials, true);
      var queue = storageAccount.CreateCloudQueueClient();
      var messages = queue.GetQueueReference("orders").GetMessages(100, TimeSpan.FromHours(10), null, null);
  </code></pre>
  
  <p>What I don't get is do I need to associate my queue with the storage?</p>
  
  <p>Cheers, DS.</p>