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.
Bicep resource definition
The alertsSuppressionRules resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Security/alertsSuppressionRules resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Security/alertsSuppressionRules@2019-01-01-preview' = {
scope: resourceSymbolicName or scope
name: 'string'
properties: {
alertType: 'string'
comment: 'string'
expirationDateUtc: 'string'
reason: 'string'
state: 'string'
suppressionAlertsScope: {
allOf: [
{
field: 'string'
}
]
}
}
}
Property Values
Microsoft.Security/alertsSuppressionRules
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (required) |
| properties | describes AlertsSuppressionRule properties | AlertsSuppressionRuleProperties |
| scope | Use when creating a resource at a scope that is different than the deployment scope. | Set this property to the symbolic name of a resource to apply the extension resource. |
AlertsSuppressionRuleProperties
| Name | Description | Value |
|---|---|---|
| alertType | Type of the alert to automatically suppress. For all alert types, use '*' | string (required) |
| comment | Any comment regarding the rule | string |
| expirationDateUtc | Expiration date of the rule, if value is not provided or provided as null there will no expiration at all | string |
| reason | The reason for dismissing the alert | string (required) |
| state | Possible states of the rule | 'Disabled' 'Enabled' 'Expired' (required) |
| suppressionAlertsScope | The suppression conditions | SuppressionAlertsScope |
ScopeElement
| Name | Description | Value |
|---|---|---|
| field | The alert entity type to suppress by. | string |
SuppressionAlertsScope
| Name | Description | Value |
|---|---|---|
| allOf | All the conditions inside need to be true in order to suppress the alert | ScopeElement[] (required) |
ARM template resource definition
The alertsSuppressionRules resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Security/alertsSuppressionRules resource, add the following JSON to your template.
{
"type": "Microsoft.Security/alertsSuppressionRules",
"apiVersion": "2019-01-01-preview",
"name": "string",
"properties": {
"alertType": "string",
"comment": "string",
"expirationDateUtc": "string",
"reason": "string",
"state": "string",
"suppressionAlertsScope": {
"allOf": [
{
"field": "string"
}
]
}
}
}
Property Values
Microsoft.Security/alertsSuppressionRules
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2019-01-01-preview' |
| name | The resource name | string (required) |
| properties | describes AlertsSuppressionRule properties | AlertsSuppressionRuleProperties |
| type | The resource type | 'Microsoft.Security/alertsSuppressionRules' |
AlertsSuppressionRuleProperties
| Name | Description | Value |
|---|---|---|
| alertType | Type of the alert to automatically suppress. For all alert types, use '*' | string (required) |
| comment | Any comment regarding the rule | string |
| expirationDateUtc | Expiration date of the rule, if value is not provided or provided as null there will no expiration at all | string |
| reason | The reason for dismissing the alert | string (required) |
| state | Possible states of the rule | 'Disabled' 'Enabled' 'Expired' (required) |
| suppressionAlertsScope | The suppression conditions | SuppressionAlertsScope |
ScopeElement
| Name | Description | Value |
|---|---|---|
| field | The alert entity type to suppress by. | string |
SuppressionAlertsScope
| Name | Description | Value |
|---|---|---|
| allOf | All the conditions inside need to be true in order to suppress the alert | ScopeElement[] (required) |
Usage Examples
Terraform (AzAPI provider) resource definition
The alertsSuppressionRules resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Security/alertsSuppressionRules resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Security/alertsSuppressionRules@2019-01-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
alertType = "string"
comment = "string"
expirationDateUtc = "string"
reason = "string"
state = "string"
suppressionAlertsScope = {
allOf = [
{
field = "string"
}
]
}
}
}
}
Property Values
Microsoft.Security/alertsSuppressionRules
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (required) |
| parent_id | The ID of the resource to apply this extension resource to. | string (required) |
| properties | describes AlertsSuppressionRule properties | AlertsSuppressionRuleProperties |
| type | The resource type | "Microsoft.Security/alertsSuppressionRules@2019-01-01-preview" |
AlertsSuppressionRuleProperties
| Name | Description | Value |
|---|---|---|
| alertType | Type of the alert to automatically suppress. For all alert types, use '*' | string (required) |
| comment | Any comment regarding the rule | string |
| expirationDateUtc | Expiration date of the rule, if value is not provided or provided as null there will no expiration at all | string |
| reason | The reason for dismissing the alert | string (required) |
| state | Possible states of the rule | 'Disabled' 'Enabled' 'Expired' (required) |
| suppressionAlertsScope | The suppression conditions | SuppressionAlertsScope |
ScopeElement
| Name | Description | Value |
|---|---|---|
| field | The alert entity type to suppress by. | string |
SuppressionAlertsScope
| Name | Description | Value |
|---|---|---|
| allOf | All the conditions inside need to be true in order to suppress the alert | ScopeElement[] (required) |