title: Copy blob from one directory into another in same container Azure Storage
body: <h2>Problem</h2>
  <p>I am trying to copy the blob from one directory and past into other directory and the delete the blob from source. I already tried the below code but not copy and past into another folder is done but delete operation works.</p>
  <h2>Code</h2>
  <pre><code>var cred = new StorageCredentials(&quot;storageName&quot;, &quot;Key&quot;);
  var account = new CloudStorageAccount(cred, true);
  var client = account.CreateCloudBlobClient();
  var container = client.GetContainerReference(&quot;containerName&quot;);
  CloudBlockBlob sourceBlob = container.GetBlockBlobReference(&quot;folder/test.jpg&quot;);
  
  //this doesn't work
  sourceBlob.StartCopyAsync(new Uri(&quot;destination url&quot;));
  //this works
  sourceBlob.DeleteAsync();
  </code></pre>