/// <summary> /// Gets the blob account key /// </summary> public string GetAccountKey() { var getStorageAccountKeysCommand = new GetStorageAccountKeysCommand(AccountName) { SubscriptionId = SubscriptionId, Certificate = ManagementCertificate }; getStorageAccountKeysCommand.Execute(); return(AccountKey = getStorageAccountKeysCommand.PrimaryStorageKey); }
public string[] GetStorageAccountKeys(string name) { var keys = new GetStorageAccountKeysCommand(name) { SubscriptionId = SubscriptionId, Certificate = ManagementCertificate }; keys.Execute(); return(new string[2] { keys.PrimaryStorageKey, keys.SecondaryStorageKey }); }