Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Remarks
For guidance on deploying monitoring solutions, see Create monitoring resources by using Bicep.
Bicep resource definition
The smartDetectorAlertRules resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a microsoft.alertsManagement/smartDetectorAlertRules resource, add the following Bicep to your template.
resource symbolicname 'microsoft.alertsManagement/smartDetectorAlertRules@2019-03-01' = {
name: 'string'
properties: {
actionGroups: {
customEmailSubject: 'string'
customWebhookPayload: 'string'
groupIds: [
'string'
]
}
description: 'string'
detector: {
description: 'string'
id: 'string'
imagePaths: [
'string'
]
name: 'string'
parameters: {
{customized property}: any(...)
}
supportedResourceTypes: [
'string'
]
}
frequency: 'string'
scope: [
'string'
]
severity: 'string'
state: 'string'
throttling: {
duration: 'string'
}
}
}
Property Values
microsoft.alertsManagement/smartDetectorAlertRules
Name | Description | Value |
---|---|---|
name | The resource name | string (required) |
properties | The properties of the alert rule. | AlertRuleProperties |
ActionGroupsInformation
Name | Description | Value |
---|---|---|
customEmailSubject | An optional custom email subject to use in email notifications. | string |
customWebhookPayload | An optional custom web-hook payload to use in web-hook notifications. | string |
groupIds | The Action Group resource IDs. | string[] (required) |
AlertRuleProperties
Name | Description | Value |
---|---|---|
actionGroups | The alert rule actions. | ActionGroupsInformation (required) |
description | The alert rule description. | string |
detector | The alert rule's detector. | Detector (required) |
frequency | The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes. | string (required) |
scope | The alert rule resources scope. | string[] (required) |
severity | The alert rule severity. | 'Sev0' 'Sev1' 'Sev2' 'Sev3' 'Sev4' (required) |
state | The alert rule state. | 'Disabled' 'Enabled' (required) |
throttling | The alert rule throttling information. | ThrottlingInformation |
Detector
Name | Description | Value |
---|---|---|
description | The Smart Detector description. By default this is not populated, unless it's specified in expandDetector | string |
id | The detector id. | string (required) |
imagePaths | The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector | string[] |
name | The Smart Detector name. By default this is not populated, unless it's specified in expandDetector | string |
parameters | The detector's parameters.' | DetectorParameters |
supportedResourceTypes | The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector | string[] |
DetectorParameters
Name | Description | Value |
---|
ThrottlingInformation
Name | Description | Value |
---|---|---|
duration | The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes | string |
ARM template resource definition
The smartDetectorAlertRules resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a microsoft.alertsManagement/smartDetectorAlertRules resource, add the following JSON to your template.
{
"type": "microsoft.alertsManagement/smartDetectorAlertRules",
"apiVersion": "2019-03-01",
"name": "string",
"properties": {
"actionGroups": {
"customEmailSubject": "string",
"customWebhookPayload": "string",
"groupIds": [ "string" ]
},
"description": "string",
"detector": {
"description": "string",
"id": "string",
"imagePaths": [ "string" ],
"name": "string",
"parameters": {
"{customized property}": {}
},
"supportedResourceTypes": [ "string" ]
},
"frequency": "string",
"scope": [ "string" ],
"severity": "string",
"state": "string",
"throttling": {
"duration": "string"
}
}
}
Property Values
microsoft.alertsManagement/smartDetectorAlertRules
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2019-03-01' |
name | The resource name | string (required) |
properties | The properties of the alert rule. | AlertRuleProperties |
type | The resource type | 'microsoft.alertsManagement/smartDetectorAlertRules' |
ActionGroupsInformation
Name | Description | Value |
---|---|---|
customEmailSubject | An optional custom email subject to use in email notifications. | string |
customWebhookPayload | An optional custom web-hook payload to use in web-hook notifications. | string |
groupIds | The Action Group resource IDs. | string[] (required) |
AlertRuleProperties
Name | Description | Value |
---|---|---|
actionGroups | The alert rule actions. | ActionGroupsInformation (required) |
description | The alert rule description. | string |
detector | The alert rule's detector. | Detector (required) |
frequency | The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes. | string (required) |
scope | The alert rule resources scope. | string[] (required) |
severity | The alert rule severity. | 'Sev0' 'Sev1' 'Sev2' 'Sev3' 'Sev4' (required) |
state | The alert rule state. | 'Disabled' 'Enabled' (required) |
throttling | The alert rule throttling information. | ThrottlingInformation |
Detector
Name | Description | Value |
---|---|---|
description | The Smart Detector description. By default this is not populated, unless it's specified in expandDetector | string |
id | The detector id. | string (required) |
imagePaths | The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector | string[] |
name | The Smart Detector name. By default this is not populated, unless it's specified in expandDetector | string |
parameters | The detector's parameters.' | DetectorParameters |
supportedResourceTypes | The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector | string[] |
DetectorParameters
Name | Description | Value |
---|
ThrottlingInformation
Name | Description | Value |
---|---|---|
duration | The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes | string |
Usage Examples
Terraform (AzAPI provider) resource definition
The smartDetectorAlertRules resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a microsoft.alertsManagement/smartDetectorAlertRules resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "microsoft.alertsManagement/smartDetectorAlertRules@2019-03-01"
name = "string"
parent_id = "string"
body = {
properties = {
actionGroups = {
customEmailSubject = "string"
customWebhookPayload = "string"
groupIds = [
"string"
]
}
description = "string"
detector = {
description = "string"
id = "string"
imagePaths = [
"string"
]
name = "string"
parameters = {
{customized property} = ?
}
supportedResourceTypes = [
"string"
]
}
frequency = "string"
scope = [
"string"
]
severity = "string"
state = "string"
throttling = {
duration = "string"
}
}
}
}
Property Values
microsoft.alertsManagement/smartDetectorAlertRules
Name | Description | Value |
---|---|---|
name | The resource name | string (required) |
properties | The properties of the alert rule. | AlertRuleProperties |
type | The resource type | "microsoft.alertsManagement/smartDetectorAlertRules@2019-03-01" |
ActionGroupsInformation
Name | Description | Value |
---|---|---|
customEmailSubject | An optional custom email subject to use in email notifications. | string |
customWebhookPayload | An optional custom web-hook payload to use in web-hook notifications. | string |
groupIds | The Action Group resource IDs. | string[] (required) |
AlertRuleProperties
Name | Description | Value |
---|---|---|
actionGroups | The alert rule actions. | ActionGroupsInformation (required) |
description | The alert rule description. | string |
detector | The alert rule's detector. | Detector (required) |
frequency | The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes. | string (required) |
scope | The alert rule resources scope. | string[] (required) |
severity | The alert rule severity. | 'Sev0' 'Sev1' 'Sev2' 'Sev3' 'Sev4' (required) |
state | The alert rule state. | 'Disabled' 'Enabled' (required) |
throttling | The alert rule throttling information. | ThrottlingInformation |
Detector
Name | Description | Value |
---|---|---|
description | The Smart Detector description. By default this is not populated, unless it's specified in expandDetector | string |
id | The detector id. | string (required) |
imagePaths | The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector | string[] |
name | The Smart Detector name. By default this is not populated, unless it's specified in expandDetector | string |
parameters | The detector's parameters.' | DetectorParameters |
supportedResourceTypes | The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector | string[] |
DetectorParameters
Name | Description | Value |
---|
ThrottlingInformation
Name | Description | Value |
---|---|---|
duration | The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes | string |