Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update automation rules alert trigger swagger #19388

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@
"AccountObjectGuid",
"AccountUPNSuffix",
"AlertProductNames",
"AlertAnalyticRuleIds",
"AzureResourceResourceId",
"AzureResourceSubscriptionId",
"CloudApplicationAppId",
Expand Down Expand Up @@ -718,6 +719,10 @@
"value": "AlertProductNames",
"description": "The name of the product of the alert"
},
{
"value": "AlertAnalyticRuleIds",
"description": "The analytic rule ids of the alert"
},
{
"value": "AzureResourceResourceId",
"description": "The Azure resource id"
Expand Down Expand Up @@ -1114,7 +1119,8 @@
},
"triggersOn": {
"enum": [
"Incidents"
"Incidents",
"Alerts"
],
"type": "string",
"example": "Incidents",
Expand All @@ -1125,6 +1131,10 @@
{
"value": "Incidents",
"description": "Trigger on Incidents"
},
{
"value": "Alerts",
"description": "Trigger on Alerts"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,33 @@
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"type": "Microsoft.SecurityInsights/automationRules",
"properties": {
"displayName": "High severity incidents escalation",
"displayName": "Suspicious alerts in workspace",
"order": 1,
"triggeringLogic": {
"isEnabled": true,
"triggersOn": "Incidents",
"triggersOn": "Alerts",
"triggersWhen": "Created",
"conditions": [
{
"conditionType": "Property",
"conditionProperties": {
"propertyName": "IncidentRelatedAnalyticRuleIds",
"propertyName": "AlertAnalyticRuleIds",
"operator": "Contains",
"propertyValues": [
"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7",
"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/8deb8303-e94d-46ff-96e0-5fd94b33df1a"
]
}
},
{
"conditionType": "PropertyChanged",
"conditionProperties": {
"propertyName": "IncidentStatus",
"changeType": "ChangedFrom",
"operator": "Equals",
"propertyValues": [
"Closed"
]
}
},
{
"conditionType": "PropertyArrayChanged",
"conditionProperties": {
"arrayType": "Alerts",
"changeType": "Added"
}
}
]
},
"actions": [
{
"order": 1,
"actionType": "ModifyProperties",
"actionType": "RunPlaybook",
"actionConfiguration": {
"severity": "High"
"tenantId": "d23e3eef-eed0-428f-a2d5-bc48c268e31d",
"logicAppResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/AlertPlaybook"
}
}
],
Expand Down Expand Up @@ -83,50 +66,33 @@
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"type": "Microsoft.SecurityInsights/automationRules",
"properties": {
"displayName": "High severity incidents escalation",
"displayName": "Suspicious alerts in workspace",
"order": 1,
"triggeringLogic": {
"isEnabled": true,
"triggersOn": "Incidents",
"triggersOn": "Alerts",
"triggersWhen": "Created",
"conditions": [
{
"conditionType": "Property",
"conditionProperties": {
"propertyName": "IncidentRelatedAnalyticRuleIds",
"propertyName": "AlertAnalyticRuleIds",
"operator": "Contains",
"propertyValues": [
"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7",
"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/8deb8303-e94d-46ff-96e0-5fd94b33df1a"
]
}
},
{
"conditionType": "PropertyChanged",
"conditionProperties": {
"propertyName": "IncidentStatus",
"changeType": "ChangedFrom",
"operator": "Equals",
"propertyValues": [
"Closed"
]
}
},
{
"conditionType": "PropertyArrayChanged",
"conditionProperties": {
"arrayType": "Alerts",
"changeType": "Added"
}
}
]
},
"actions": [
{
"order": 1,
"actionType": "ModifyProperties",
"actionType": "RunPlaybook",
"actionConfiguration": {
"severity": "High"
"tenantId": "d23e3eef-eed0-428f-a2d5-bc48c268e31d",
"logicAppResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/AlertPlaybook"
}
}
],
Expand Down Expand Up @@ -154,7 +120,7 @@
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"type": "Microsoft.SecurityInsights/automationRules",
"properties": {
"displayName": "High severity incidents escalation",
"displayName": "Suspicious alerts in workspace",
"order": 1,
"triggeringLogic": {
"isEnabled": true,
Expand All @@ -164,40 +130,23 @@
{
"conditionType": "Property",
"conditionProperties": {
"propertyName": "IncidentRelatedAnalyticRuleIds",
"propertyName": "AlertAnalyticRuleIds",
"operator": "Contains",
"propertyValues": [
"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7",
"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/8deb8303-e94d-46ff-96e0-5fd94b33df1a"
]
}
},
{
"conditionType": "PropertyChanged",
"conditionProperties": {
"propertyName": "IncidentStatus",
"changeType": "ChangedFrom",
"operator": "Equals",
"propertyValues": [
"Closed"
]
}
},
{
"conditionType": "PropertyArrayChanged",
"conditionProperties": {
"arrayType": "Alerts",
"changeType": "Added"
}
}
]
},
"actions": [
{
"order": 1,
"actionType": "ModifyProperties",
"actionType": "RunPlaybook",
"actionConfiguration": {
"severity": "High"
"tenantId": "d23e3eef-eed0-428f-a2d5-bc48c268e31d",
"logicAppResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/AlertPlaybook"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,50 +14,33 @@
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"type": "Microsoft.SecurityInsights/automationRules",
"properties": {
"displayName": "High severity incidents escalation",
"displayName": "Suspicious alerts in workspace",
"order": 1,
"triggeringLogic": {
"isEnabled": true,
"triggersOn": "Incidents",
"triggersOn": "Alerts",
"triggersWhen": "Created",
"conditions": [
{
"conditionType": "Property",
"conditionProperties": {
"propertyName": "IncidentRelatedAnalyticRuleIds",
"propertyName": "AlertAnalyticRuleIds",
"operator": "Contains",
"propertyValues": [
"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7",
"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/8deb8303-e94d-46ff-96e0-5fd94b33df1a"
]
}
},
{
"conditionType": "PropertyChanged",
"conditionProperties": {
"propertyName": "IncidentStatus",
"changeType": "ChangedFrom",
"operator": "Equals",
"propertyValues": [
"Closed"
]
}
},
{
"conditionType": "PropertyArrayChanged",
"conditionProperties": {
"arrayType": "Alerts",
"changeType": "Added"
}
}
]
},
"actions": [
{
"order": 1,
"actionType": "ModifyProperties",
"actionType": "RunPlaybook",
"actionConfiguration": {
"severity": "High"
"tenantId": "d23e3eef-eed0-428f-a2d5-bc48c268e31d",
"logicAppResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/AlertPlaybook"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,50 +15,33 @@
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"type": "Microsoft.SecurityInsights/automationRules",
"properties": {
"displayName": "High severity incidents escalation",
"displayName": "Suspicious alerts in workspace",
"order": 1,
"triggeringLogic": {
"isEnabled": true,
"triggersOn": "Incidents",
"triggersOn": "Alerts",
"triggersWhen": "Created",
"conditions": [
{
"conditionType": "Property",
"conditionProperties": {
"propertyName": "IncidentRelatedAnalyticRuleIds",
"propertyName": "AlertAnalyticRuleIds",
"operator": "Contains",
"propertyValues": [
"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7",
"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/8deb8303-e94d-46ff-96e0-5fd94b33df1a"
]
}
},
{
"conditionType": "PropertyChanged",
"conditionProperties": {
"propertyName": "IncidentStatus",
"changeType": "ChangedFrom",
"operator": "Equals",
"propertyValues": [
"Closed"
]
}
},
{
"conditionType": "PropertyArrayChanged",
"conditionProperties": {
"arrayType": "Alerts",
"changeType": "Added"
}
}
]
},
"actions": [
{
"order": 1,
"actionType": "ModifyProperties",
"actionType": "RunPlaybook",
"actionConfiguration": {
"severity": "High"
"tenantId": "d23e3eef-eed0-428f-a2d5-bc48c268e31d",
"logicAppResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/AlertPlaybook"
}
}
],
Expand Down