Azure storage sdk v1.3 to v2 => SetConfigurationSettingPublisher Azure storage sdk v1.3 to v2 => SetConfigurationSettingPublisher azure azure

Azure storage sdk v1.3 to v2 => SetConfigurationSettingPublisher


According to Windows Azure Storage Client Library 2.0 Breaking Changes & Migration Guide:

CloudStorageAccount.SetConfigurationSettingPublisher has been removed. Instead the members of StorageCredentials are now mutable allowing users to accomplish similar scenarios in a more streamlined manner by simply mutating the StorageCredentials instance associated with a given client(s) via the provided UpdateKey methods.

Depending on your application's requirements you might simply use the CloudConfigurationManager.GetSetting() method directly, as described in Upgrading to Azure Storage Client 2.0:

var someSetting = CloudConfigurationManager.GetSetting(settingKey);

If you need to respond to configuration changes while the role instance is running, you can subscribe to the RoleEnvironment.Changing and RoleEnvironment.Changed events as described in Read Configuration Settings for the Storage Client Library and Handle Changed Settings and Responding to Role Topology Changes.