title: How to connect to blob storage container using c#
body: <p>I need to connect to blob storage container and retrieve the data inside the container. I do not have connection string I need to connect via access token. I have the code communicating with blob using connection string. Could anyone modify the code based on communicating with access key and retrieve those data from the container.</p>
  <pre><code>string storageConnectionString = &quot;&quot;;
  CloudStorageAccount storageAccount = CloudStorageAccount.Parse(storageConnectionString);
  CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
  CloudBlobContainer container = blobClient.GetContainerReference(&quot;ContainerName&quot;);
  CloudBlockBlob blob = container.GetBlockBlobReference(&quot;FileName&quot;);
  string xmlFile = blob.DownloadTextAsync().Result;
  Console.WriteLine(xmlFile);
  
  </code></pre>