Created
June 11, 2014 03:03
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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