azure-storage
How to download a file to browser from Azure Blob Storage
While blob content may be streamed through a web server, and along to the end user via browser, this solution puts load on the web server, both cpu and NIC. An alternative approach is to provide the end user with a uri to the desired blob to be downloaded, which they may click in the … Read more
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 can I delete a leased blob in Microsoft Azure storage
You need to delete the disk objects that are associated with the abandoned vhd’s. You can do this easily in either the classic or new portal. Once you dispose of these (along with associated leases), you should be able to get rid of your storage account In the Classic portal (manage.windowsazure.com), you just visit Virtual … 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