title: How to get azure cdn link for file in azure blob?
body: <p>I have Azure Blob and added for it Azure CDN.</p>
  
  <p>How to get link to cdn for uploaded to blob file?</p>
  
  <pre><code>var storageAccount = CloudStorageAccount.Parse(configuration.ConnectionString);
  var client = storageAccount.CreateCloudBlobClient();
  var container = client.GetContainerReference("container");
  
  CloudBlobContainer container = await _containerFactory.CreateAsync("files", cancellationToken);
  var blockBlob = container.GetBlockBlobReference("file-name.png");
  
  await blockBlob.UploadFromStreamAsync(fileStream, cancellationToken);
  
  return blockBlob.Uri; // return blob blob url
  </code></pre>
  
  <p><code>blockBlob.Uri</code> returns blob url, but I need CDN uri?</p>
  
  <p>Is it possible to get CDN uri based on c# code? Without replacing part of uri to cdn endpoint.</p>