Skip to content

Instantly share code, notes, and snippets.

@eshapovalova
Created June 11, 2014 03:03
Show Gist options
  • Select an option

  • Save eshapovalova/0d44968f97aa71ac662e to your computer and use it in GitHub Desktop.

Select an option

Save eshapovalova/0d44968f97aa71ac662e to your computer and use it in GitHub Desktop.
Hack for not correct Blob Storage Service Version (large files, partial content, stream allow)
var storageAccount = CloudStorageAccount.Parse("AccountName=<accountName>;AccountKey=<accountKeyBase64>;DefaultEndpointsProtocol=http");
var blobClient = storageAccount.CreateCloudBlobClient();
// Get the current service properties
var serviceProperties = blobClient.GetServiceProperties();
// Set the default service version to 2011-08-18 (or a higher version like 2012-03-01)
serviceProperties.DefaultServiceVersion = "2011-08-18";
// Save the updated service properties
blobClient.SetServiceProperties(serviceProperties);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment