I have an Azure storage connection string and from which I want to read AccountName and Account Key.
I could get the account Name but not the key.
Can anyone suggest me how to read Key?
ConnectionString : DefaultEndpointsProtocol=https;AccountName=dev;AccountKey=tsdsgyduysaugdsay4aR6EPn2Ie9YOILeEp5RRFXeeaJ9;EndpointSuffix=core.windows.net
var cloudStorageAccount = CloudStorageAccount.Parse(ConnectionString);
var storageCredentials = new StorageCredentials(cloudStorageAccount.Credentials.AccountName, cloudStorageAccount.Credentials.KeyName);
cloudStorageAccount.CreateCloudBlobClient()
and so on. docs.microsoft.com/en-us/azure/storage/blobs/… - Alexander Schmidt