Leverage Data Collection Rules to Send Performance Counters to Azure Storage Using Bicep
Azure Monitor Agent is the go-to agent for collecting data from IaaS workloads. The Azure Monitor Agent collects data through data collection rules (DCRs).
DCRs are deployed separately into resource groups and had only two ways of collecting data in specific destinations types.
Lately, the Azure Monitor Agent has been expanded with two new upload capabilities, either to Event Hubs or Azure Storage.
In this tutorial, you will learn how to upload data to an Azure Storage Account and create DCR to upload performance counters to a specific container leveraging Bicep and AVM.
Create Storage Account with Container
The DCRs require a container to store information and events from IaaS workloads.
You can use the AVM module to create a Storage Account including a container with ease.
- Create a new file called main.bicep
- Paste this code into the file to add the Storage Account module
param storageAccountName string = 'stamacollector'
param dcrName string = 'dcrperfcounters'
param location string = resourceGroup().location
module storageAccount…