This policy checks all Azure storage accounts that use the table service to ensure that they are configured to log read, write, and delete requests. An incident is raised with the offending storage accounts if any are found that don't.
The Azure Resource Manager API is used to get a list of subscriptions and storage accounts within those subscriptions. The policy then gathers the storage service properties of each storage account in order to verify that logging is properly enabled.
This policy has the following input parameters required when launching the policy.
- Email addresses to notify - Email addresses of the recipients you wish to notify when new incidents are created
- Azure Endpoint - Azure Endpoint to access resources
This policy uses credentials for connecting to the cloud -- in order to apply this policy you must have a credential registered in the system that is compatible with this policy. If there are no credentials listed when you apply the policy, please contact your cloud admin and ask them to register a credential that is compatible with this policy. The information below should be consulted when creating the credential.
For administrators creating and managing credentials to use with this policy, the following information is needed:
Provider tag values to match this policy: azure_rm
, azure_storage
Required permissions in the provider:
- Microsoft.Resources/subscriptions/read
- Microsoft.Storage/storageAccounts/read
- Azure Resource Manager
This Policy Template does not incur any cloud costs.