/// <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;
 }
Esempio n. 2
0
 /// <summary>
 /// Extracts the storage account requested key
 /// </summary>
 private string ExtractStorageAccountKey(string storageName, StorageKeyKind storageKeyKind)
 {
     return(AzureCommunicator.GetStorageKeys(storageName)[storageKeyKind]);
 }
Esempio n. 3
0
 /// <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]);
 }