Resource Manager template samples for Azure Monitor
You can deploy and configure Azure Monitor at scale by using Azure Resource Manager templates. This article lists sample templates for Azure Monitor features. You can modify these samples for your particular requirements and deploy them by using any standard method for deploying Resource Manager templates.
Deploying the sample templates
The basic steps to use the one of the template samples are:
- Copy the template and save it as a JSON file.
- Modify the parameters for your environment and save the JSON file.
- Deploy the template by using any deployment method for Resource Manager templates.
For example, use the following commands to deploy the template and parameter file to a resource group by using PowerShell or the Azure CLI:
Connect-AzAccount
Select-AzSubscription -SubscriptionName my-subscription
New-AzResourceGroupDeployment -Name AzureMonitorDeployment -ResourceGroupName my-resource-group -TemplateFile azure-monitor-deploy.json -TemplateParameterFile azure-monitor-deploy.parameters.json
az login
az deployment group create \
--name AzureMonitorDeployment \
--resource-group ResourceGroupofTargetResource \
--template-file azure-monitor-deploy.json \
--parameters azure-monitor-deploy.parameters.json
List of sample templates
- Agents: Deploy and configure the Log Analytics agent and a diagnostic extension.
- Alerts:
- Log alert rules: Configure alerts from log queries and Azure Activity Log.
- Metric alert rules: Configure alerts from metrics that use different kinds of logic.
- Application Insights
- Diagnostic settings: Create diagnostic settings to forward logs and metrics from different resource types.
- Log queries: Create saved log queries in a Log Analytics workspace.
- Log Analytics workspace: Create a Log Analytics workspace and configure a collection of data sources from the Log Analytics agent.
- Workbooks: Create workbooks.
- Container insights: Onboard clusters to Container insights.
- Azure Monitor for VMs: Onboard virtual machines to Azure Monitor for VMs.
Next steps
- Learn more about Resource Manager templates.
Povratne informacije
Pošalјite i prikažite povratne informacije za