Microsoft.Security alertsSuppressionRules
Bicep resource definition
The alertsSuppressionRules resource type can be deployed with operations that target:
- Subscription - See subscription deployment commands
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' = {
name: 'string'
properties: {
alertType: 'string'
comment: 'string'
expirationDateUtc: 'string'
reason: 'string'
state: 'string'
suppressionAlertsScope: {
allOf: [
{
field: 'string'
}
]
}
}
}
Property values
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 |
Microsoft.Security/alertsSuppressionRules
Name | Description | Value |
---|---|---|
name | The resource name | string (required) |
properties | describes AlertsSuppressionRule properties | AlertsSuppressionRuleProperties |
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:
- Subscription - See subscription deployment commands
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
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 |
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' |
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) |
Terraform (AzAPI provider) resource definition
The alertsSuppressionRules resource type can be deployed with operations that target:
- Subscription
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"
body = jsonencode({
properties = {
alertType = "string"
comment = "string"
expirationDateUtc = "string"
reason = "string"
state = "string"
suppressionAlertsScope = {
allOf = [
{
field = "string"
}
]
}
}
})
}
Property values
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 |
Microsoft.Security/alertsSuppressionRules
Name | Description | Value |
---|---|---|
name | The resource name | string (required) |
properties | describes AlertsSuppressionRule properties | AlertsSuppressionRuleProperties |
type | The resource type | "Microsoft.Security/alertsSuppressionRules@2019-01-01-preview" |
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) |