/// <summary> /// Extracts the storage account requested key /// </summary> private string ExtractStorageAccountKey(string storageName, BaseAuditingPolicyModel model, string storageAccountResourceGroup, StorageKeyKind keyType) { if (IgnoreStorage) { return null; } if (model.StorageKeyType == keyType) { return AzureCommunicator.GetStorageKeys(storageAccountResourceGroup, storageName)[keyType]; } return null; }
/// <summary> /// Extracts the storage account requested key /// </summary> private string ExtractStorageAccountKey(string storageName, StorageKeyKind storageKeyKind) { return(AzureCommunicator.GetStorageKeys(storageName)[storageKeyKind]); }
/// <summary> /// Extracts the storage account requested key /// </summary> private string ExtractStorageAccountKey(string storageName, BaseTableAuditingPolicyModel model, string storageAccountResourceGroup, StorageKeyKind keyType) { if (!IgnoreStorage && (model.StorageKeyType == keyType)) { return(AzureCommunicator.GetStorageKeys(storageAccountResourceGroup, storageName)[keyType]); } return(null); }
private string ExtractStorageAccountKey(Guid storageAccountSubscriptionId, string storageAccountName, StorageKeyKind storageKeyKind) { return(AzureCommunicator.RetrieveStorageKeys(storageAccountSubscriptionId, storageAccountName)[storageKeyKind]); }