Copying one Azure blob to another blob in Azure Storage Client 2.0

Gaurav Mantri has written a series of articles on Azure Storage on version 2.0. I have taken this code extract from his blog post of Storage Client Library 2.0 – Migrating Blob Storage Code for Blob Copy CloudStorageAccount storageAccount = new CloudStorageAccount(new StorageCredentials(accountName, accountKey), true); CloudBlobClient cloudBlobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer sourceContainer = cloudBlobClient.GetContainerReference(containerName); CloudBlobContainer targetContainer … Read more

How to create a sub container in azure storage location

Windows Azure doesn’t provide the concept of heirarchical containers, but it does provide a mechanism to traverse heirarchy by convention and API. All containers are stored at the same level. You can gain simliar functionality by using naming conventions for your blob names. For instance, you may create a container named “content” and create blobs … Read more

How to modify Azure DevOps release definition variable from a release task?

You can use the REST API (Definitions – Update) to update the value of the release definition variable from a release task. Go to the Agent Phase and select Allow Scripts to Access OAuth Token. See Use the OAuth token to access the REST API Grant Project Collection Build Service (xxx) account the edit release … Read more