microsoft.insights alertrules template reference
06/03/2020
2 minutes to read
In this article
To create a microsoft.insights/alertrules resource, add the following JSON to the resources section of your template.
{
"name": "string",
"type": "microsoft.insights/alertrules",
"apiVersion": "2016-03-01",
"location": "string",
"tags": {},
"properties": {
"name": "string",
"description": "string",
"isEnabled": "boolean",
"condition": {
"dataSource": {
"resourceUri": "string",
"odata.type": "string"
},
"odata.type": "string"
},
"actions": [
{
"odata.type": "string"
}
]
}
}
Property values
The following tables describe the values you need to set in the schema.
microsoft.insights/alertrules object
Name
Type
Required
Value
name
string
Yes
The name of the rule.
type
enum
Yes
microsoft.insights/alertrules
apiVersion
enum
Yes
2016-03-01
location
string
Yes
Resource location
tags
object
No
Resource tags
properties
object
Yes
The alert rule properties of the resource. - AlertRule object
AlertRule object
Name
Type
Required
Value
name
string
Yes
the name of the alert rule.
description
string
No
the description of the alert rule that will be included in the alert email.
isEnabled
boolean
Yes
the flag that indicates whether the alert rule is enabled.
condition
object
Yes
the condition that results in the alert rule being activated. - RuleCondition object
actions
array
No
the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. - RuleAction object
RuleCondition object
Name
Type
Required
Value
dataSource
object
No
the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource. - RuleDataSource object
odata.type
string
Yes
RuleAction object
Name
Type
Required
Value
odata.type
string
Yes
RuleDataSource object
Name
Type
Required
Value
resourceUri
string
No
the resource identifier of the resource the rule monitors. NOTE : this property cannot be updated for an existing rule.
odata.type
string
Yes
Quickstart templates
The following quickstart templates deploy this resource type.
Template
Description
DDoS attack on a virtual machine
This will deploy a virtual machine, OMS and other network resources. Perform the DDoS attack by following the guidleines and execute the scenario for detection of a DDoS attack.
Dynamic Web Test Creation
Create any number of App Insights web (ping) tests.
Enterprise Governance-AppService, SQL DB, AD, OMS, Runbooks
Cloud adoption for an Enterprise, small or large, require responsible and efficient governance models to derive value from their cloud deployments. CloudWise (a code-name for the solution), is a composite solution available from Azure Partner QuickStarts, is an adoption enabler for Customers, System Integrators and Partners alike, that delivers a self-serviceable, automated governance and operations solution, focused on Optimizing Your Costs, Improve Your Application(s) Reliability, Reducing Business Risk. The solution highlights the core governance pillars of Visibility and Control.
Scalable Umbraco CMS Web App
This template provides a easy way to deploy umbraco CMS web app on Azure App Service Web Apps.