Benchmark: Monitor
Description
This benchmark provides a set of controls that detect Terraform Azure Monitor resources deviating from security best practices.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-terraform-azure-compliance
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select Monitor.
Run this benchmark in your terminal:
powerpipe benchmark run terraform_azure_compliance.benchmark.monitor
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run terraform_azure_compliance.benchmark.monitor --share
Controls
- Azure Monitor log profile should collect logs for categories 'write', 'delete' and 'action'
- Azure Monitor should collect activity logs from all regions
- Monitor log profiles should have retention set to 365 days or greater
- Ensure the storage container storing the activity logs is not publicly accessible