Created
June 19, 2012 12:37
-
-
Save chandermani/2953898 to your computer and use it in GitHub Desktop.
Set the DefaultServiceVersion property of Azure blob storage.
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 account = CloudStorageAccount.FromConfigurationSetting("DataConnectionString"); | |
var blobs = account.CreateCloudBlobClient(); | |
var existingprops = blobs.GetServiceProperties(); | |
blobs.SetServiceProperties(new Microsoft.WindowsAzure.StorageClient.Protocol.ServiceProperties() | |
{ | |
DefaultServiceVersion = "2011-08-18", | |
Logging=existingprops.Logging, | |
Metrics=existingprops.Metrics, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment