Megjegyzés
Az oldalhoz való hozzáféréshez engedély szükséges. Megpróbálhat bejelentkezni vagy módosítani a címtárat.
Az oldalhoz való hozzáféréshez engedély szükséges. Megpróbálhatja módosítani a címtárat.
- Latest
- 2025-10-01-előzetes verzió
- 2025-09-01
- 2025-07-01-preview
- 2025-06-01
- 2025-04-01-preview
- 2025-03-01
- 2025-01-01-preview
- 2024-10-01-preview
- 2024-09-01
- 2024-04-01-preview
- 2024-03-01
- 2024-01-01-preview
- 2023-12-01-preview
- 2023-11-01
- 2023-10-01-preview
- 2023-09-01-preview
- 2023-08-01-preview
- 2023-07-01-preview
- 2023-06-01-preview
- 2023-05-01-preview
- 2023-04-01-preview
- 2023-03-01-preview
- 2023-02-01
- 2023-02-01-preview
- 2022-12-01-preview
- 2022-11-01
- 2022-11-01-preview
- 2022-10-01-preview
- 2022-09-01-preview
- 2022-08-01
- 2022-08-01-preview
- 2022-07-01-preview
- 2022-06-01-preview
- 2022-05-01-preview
- 2022-04-01-preview
- 2022-01-01-preview
- 2021-10-01
- 2021-10-01-preview
- 2021-09-01-preview
- 2019-01-01-preview
Bicep erőforrás definíciója
Az automationRules erőforrástípus üzembe helyezhető olyan műveletekkel, amelyek a következő célokat célják:
Az egyes API-verziók módosított tulajdonságainak listáját a változásnaplócímű témakörben találja.
Használati példák
Bicep minták
Alapvető példa a Sentinel automatizálási szabály üzembe helyezésére.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource workspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {
name: resourceName
location: location
properties: {
features: {
disableLocalAuth: false
enableLogAccessUsingOnlyResourcePermissions: true
}
publicNetworkAccessForIngestion: 'Enabled'
publicNetworkAccessForQuery: 'Enabled'
retentionInDays: 30
sku: {
name: 'PerGB2018'
}
workspaceCapping: {
dailyQuotaGb: -1
}
}
}
resource onboardingState 'Microsoft.SecurityInsights/onboardingStates@2023-06-01-preview' = {
name: 'default'
scope: workspace
properties: {
customerManagedKey: false
}
}
resource automationRule 'Microsoft.SecurityInsights/automationRules@2022-10-01-preview' = {
name: '3b862818-ad7b-409e-83be-8812f2a06d37'
scope: workspace
dependsOn: [
onboardingState
]
properties: {
actions: [
{
actionConfiguration: {
classification: ''
classificationComment: ''
classificationReason: ''
severity: ''
status: 'Active'
}
actionType: 'ModifyProperties'
order: 1
}
]
displayName: 'acctest-SentinelAutoRule-230630033910945846'
order: 1
triggeringLogic: {
isEnabled: true
triggersOn: 'Incidents'
triggersWhen: 'Created'
}
}
}
Erőforrás formátuma
Hogy létrehozzunk egy Microsoft-ot. SecurityInsights/automationRules erőforrás esetén add hozzá a következő Bicep-et a sablonodhoz.
resource symbolicname 'Microsoft.SecurityInsights/automationRules@2022-12-01-preview' = {
scope: resourceSymbolicName or scope
etag: 'string'
name: 'string'
properties: {
actions: [
{
order: int
actionType: 'string'
// For remaining properties, see AutomationRuleAction objects
}
]
displayName: 'string'
order: int
triggeringLogic: {
conditions: [
{
conditionType: 'string'
// For remaining properties, see AutomationRuleCondition objects
}
]
expirationTimeUtc: 'string'
isEnabled: bool
triggersOn: 'string'
triggersWhen: 'string'
}
}
}
AutomationRuleCondition-objektumok
Állítsa be a conditionType tulajdonságot az objektum típusának megadásához.
logikaiesetén használja a következőt:
{
conditionProperties: {
innerConditions: [
{
conditionType: 'string'
// For remaining properties, see AutomationRuleCondition objects
}
]
operator: 'string'
}
conditionType: 'Boolean'
}
A tulajdonságesetében használja a következőt:
{
conditionProperties: {
operator: 'string'
propertyName: 'string'
propertyValues: [
'string'
]
}
conditionType: 'Property'
}
PropertyArrayesetén használja a következőt:
{
conditionProperties: {
arrayConditionType: 'string'
arrayType: 'string'
itemConditions: [
{
conditionType: 'string'
// For remaining properties, see AutomationRuleCondition objects
}
]
}
conditionType: 'PropertyArray'
}
Az PropertyArrayChangedesetében használja a következőt:
{
conditionProperties: {
arrayType: 'string'
changeType: 'string'
}
conditionType: 'PropertyArrayChanged'
}
PropertyChangedesetén használja a következőt:
{
conditionProperties: {
changeType: 'string'
operator: 'string'
propertyName: 'string'
propertyValues: [
'string'
]
}
conditionType: 'PropertyChanged'
}
AutomationRuleAction objektumok
Állítsa be a actionType tulajdonságot az objektum típusának megadásához.
AddIncidentTaskesetén használja a következőt:
{
actionConfiguration: {
description: 'string'
title: 'string'
}
actionType: 'AddIncidentTask'
}
A ModifyPropertiesesetében használja a következőt:
{
actionConfiguration: {
classification: 'string'
classificationComment: 'string'
classificationReason: 'string'
labels: [
{
labelName: 'string'
}
]
owner: {
assignedTo: 'string'
email: 'string'
objectId: 'string'
ownerType: 'string'
userPrincipalName: 'string'
}
severity: 'string'
status: 'string'
}
actionType: 'ModifyProperties'
}
RunPlaybookesetén használja a következőt:
{
actionConfiguration: {
logicAppResourceId: 'string'
tenantId: 'string'
}
actionType: 'RunPlaybook'
}
Tulajdonságértékek
Microsoft. SecurityInsights/automationRules
| Name | Description | Value |
|---|---|---|
| etag | Az Azure-erőforrás etagje | karakterlánc |
| name | Az erőforrás neve | karakterlánc (kötelező) |
| properties | Automation-szabály tulajdonságai | AutomationRuleProperties (kötelező) |
| hatókör | Akkor használható, ha olyan hatókörben hoz létre erőforrást, amely eltér az üzembehelyezési hatókörétől. | Állítsa be ezt a tulajdonságot egy erőforrás szimbolikus nevére a bővítményerőforrásalkalmazásához. |
AddIncidentTaskActionProperties
| Name | Description | Value |
|---|---|---|
| description | A feladat leírása. | karakterlánc |
| title | A feladat címe. | karakterlánc (kötelező) |
AutomationRuleAction
| Name | Description | Value |
|---|---|---|
| actionType | Az AutomationRuleAddIncidentTaskAction típushoz állítsa az "AddIncidentTask" értéket. A AutomationRuleModifyPropertiesActiontípushoz állítsa a "ModifyProperties" értéket. Állítsa be a "RunPlaybook" értéket az AutomationRuleRunPlaybookAction típushoz. | 'AddIncidentTask' 'ModifyProperties' "RunPlaybook" (kötelező) |
| sorrend | int (kötelező) |
AutomationRuleAddIncidentTaskAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | AddIncidentTaskActionProperties | |
| actionType | Az automatizálási szabályművelet típusa. | "AddIncidentTask" (kötelező) |
AutomationRuleBooleanCondition
| Name | Description | Value |
|---|---|---|
| innerConditions | AutomationRuleCondition[] | |
| operátor | 'And' 'Or' |
AutomationRuleCondition
| Name | Description | Value |
|---|---|---|
| conditionType | A booleanConditionProperties típushoz állítsa a "Logikai" értéket. Az PropertyConditionPropertiestípus "Tulajdonság" értékre van állítva. A PropertyArrayConditionProperties |
'Boolean' 'Property' 'PropertyArray' 'PropertyArrayChanged' 'PropertyChanged' (kötelező) |
AutomationRuleModifyPropertiesAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | IncidentPropertiesAction | |
| actionType | Az automatizálási szabályművelet típusa. | "ModifyProperties" (kötelező) |
AutomationRuleProperties
| Name | Description | Value |
|---|---|---|
| actions | Az automatizálási szabály aktiválásakor végrehajtandó műveletek. | AutomationRuleAction[] (kötelező) |
| displayName | Az automatizálási szabály megjelenítendő neve. | string Constraints: Maximális hossz = 500 (kötelező) |
| sorrend | Az automatizálási szabály végrehajtásának sorrendje. | int Constraints: Minimális érték = 1 Maximális érték = 1000 (kötelező) |
| triggeringLogic | A logikát aktiváló automatizálási szabály ismertetése. | AutomationRuleTriggeringLogic (kötelező) |
AutomationRulePropertyArrayChangedValuesCondition
| Name | Description | Value |
|---|---|---|
| arrayType | 'Alerts' 'Comments' 'Labels' 'Tactics' |
|
| changeType | 'Added' |
AutomationRulePropertyArrayValuesCondition
| Name | Description | Value |
|---|---|---|
| arrayConditionType | 'AnyItem' | |
| arrayType | 'CustomDetails' 'CustomDetailValues' |
|
| itemConditions | AutomationRuleCondition[] |
AutomationRulePropertyValuesChangedCondition
| Name | Description | Value |
|---|---|---|
| changeType | 'ChangedFrom' 'ChangedTo' |
|
| operátor | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | 'IncidentOwner' 'IncidentSeverity' 'IncidentStatus' |
|
| propertyValues | string[] |
AutomationRulePropertyValuesCondition
| Name | Description | Value |
|---|---|---|
| operátor | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | Az automatizálási szabály tulajdonságfeltételében kiértékelendő tulajdonság. | 'AccountAadTenantId' 'AccountAadUserId' 'AccountName' 'AccountNTDomain' 'AccountObjectGuid' 'AccountPUID' 'AccountSid' 'AccountUPNSuffix' 'AlertAnalyticRuleIds' 'AlertProductNames' 'AzureResourceResourceId' 'AzureResourceSubscriptionId' 'CloudApplicationAppId' 'CloudApplicationAppName' 'DNSDomainName' 'FileDirectory' 'FileHashValue' 'FileName' 'HostAzureID' 'HostName' 'HostNetBiosName' 'HostNTDomain' 'HostOSVersion' 'IncidentCustomDetailsKey' 'IncidentCustomDetailsValue' 'IncidentDescription' 'IncidentLabel' 'IncidentProviderName' 'IncidentRelatedAnalyticRuleIds' 'IncidentSeverity' 'IncidentStatus' 'IncidentTactics' 'IncidentTitle' 'IncidentUpdatedBySource' 'IoTDeviceId' 'IoTDeviceModel' 'IoTDeviceName' 'IoTDeviceOperatingSystem' 'IoTDeviceType' 'IoTDeviceVendor' 'IPAddress' 'MailboxDisplayName' 'MailboxPrimaryAddress' 'MailboxUPN' 'MailMessageDeliveryAction' 'MailMessageDeliveryLocation' 'MailMessageP1Sender' 'MailMessageP2Sender' 'MailMessageRecipient' 'MailMessageSenderIP' 'MailMessageSubject' 'MalwareCategory' 'MalwareName' 'ProcessCommandLine' 'ProcessId' 'RegistryKey' 'RegistryValueData' 'Url' |
| propertyValues | string[] |
AutomationRuleRunPlaybookAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | PlaybookActionProperties | |
| actionType | Az automatizálási szabályművelet típusa. | "RunPlaybook" (kötelező) |
AutomationRuleTriggeringLogic
| Name | Description | Value |
|---|---|---|
| conditions | A kiértékelendő feltételek annak megállapításához, hogy az automatizálási szabályt aktiválni kell-e egy adott objektumon. | AutomationRuleCondition[] |
| expirationTimeUtc | Meghatározza, hogy az automatizálási szabály mikor járjon le automatikusan, és mikor legyen letiltva. | karakterlánc |
| isEnabled | Meghatározza, hogy az automatizálási szabály engedélyezve vagy letiltva van-e. | bool (kötelező) |
| triggersOn | 'Alerts' "Incidensek" (kötelező) |
|
| triggersWhen | 'Created' "Frissítve" (kötelező) |
BooleanConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRuleBooleanCondition | |
| conditionType | "Logikai" (kötelező) |
IncidentLabel
| Name | Description | Value |
|---|---|---|
| labelName | A címke neve | karakterlánc (kötelező) |
IncidentOwnerInfo
| Name | Description | Value |
|---|---|---|
| assignedTo | Annak a felhasználónak a neve, akihez az incidens hozzá van rendelve. | karakterlánc |
| Annak a felhasználónak az e-mailje, amelyhez az incidens hozzá van rendelve. | karakterlánc | |
| objectId | Annak a felhasználónak az objektumazonosítója, amelyhez az incidens hozzá van rendelve. | string Constraints: Minimális hossz = 36 Maximális hossz = 36 Minta = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| ownerType | Annak a tulajdonosnak a típusa, amelyhez az incidens hozzá van rendelve. | 'Group' 'Unknown' 'User' |
| userPrincipalName | Annak a felhasználónak a felhasználóneve, amelyhez az incidens hozzá van rendelve. | karakterlánc |
IncidentPropertiesAction
| Name | Description | Value |
|---|---|---|
| classification | Az incidens lezárásának oka | 'BenignPositive' 'FalsePositive' 'TruePositive' 'Undetermined' |
| classificationComment | Az incidens bezárásának okát ismerteti. | karakterlánc |
| classificationReason | Az incidens besorolási oka | 'InaccurateData' 'IncorrectAlertLogic' 'SuspiciousActivity' 'SuspiciousButExpected' |
| labels | Az incidenshez hozzáadni kívánt címkék listája. | IncidentLabel[] |
| tulajdonos | Annak a felhasználónak az adatai, akihez incidens van rendelve | IncidentOwnerInfo |
| severity | Az incidens súlyossága | 'High' 'Informational' 'Low' 'Medium' |
| állapot | Az incidens állapota | 'Active' 'Closed' 'New' |
PlaybookActionProperties
| Name | Description | Value |
|---|---|---|
| logicAppResourceId | A forgatókönyv-erőforrás erőforrás-azonosítója. | karakterlánc |
| tenantId | A forgatókönyv-erőforrás bérlőazonosítója. | string Constraints: Minimális hossz = 36 Maximális hossz = 36 Minta = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
PropertyArrayChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayChangedValuesCondition | |
| conditionType | 'PropertyArrayChanged' (kötelező) |
PropertyArrayConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayValuesCondition | |
| conditionType | 'PropertyArray' (kötelező) |
PropertyChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesChangedCondition | |
| conditionType | 'PropertyChanged' (kötelező) |
PropertyConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesCondition | |
| conditionType | "Tulajdonság" (kötelező) |
ARM-sablon erőforrásdefiníciója
Az automationRules erőforrástípus üzembe helyezhető olyan műveletekkel, amelyek a következő célokat célják:
Az egyes API-verziók módosított tulajdonságainak listáját a változásnaplócímű témakörben találja.
Használati példák
Azure Quickstart Sablonok
A következő Azure Gyorsindítás sablonok telepítik ezt az erőforrás-típust.
| Template | Description |
|---|---|
|
Új Microsoft Sentinel automatizálási szabályt hoz létre |
Ez a minta bemutatja, hogyan hozhat létre új automatizálási szabályt a Microsoft Sentinel-ben |
Erőforrás formátuma
Hogy létrehozzunk egy Microsoft-ot. SecurityInsights/automationRules erőforrás esetén add hozzá a következő JSON-t a sablonodhoz.
{
"type": "Microsoft.SecurityInsights/automationRules",
"apiVersion": "2022-12-01-preview",
"name": "string",
"etag": "string",
"properties": {
"actions": [ {
"order": "int",
"actionType": "string"
// For remaining properties, see AutomationRuleAction objects
} ],
"displayName": "string",
"order": "int",
"triggeringLogic": {
"conditions": [ {
"conditionType": "string"
// For remaining properties, see AutomationRuleCondition objects
} ],
"expirationTimeUtc": "string",
"isEnabled": "bool",
"triggersOn": "string",
"triggersWhen": "string"
}
}
}
AutomationRuleCondition-objektumok
Állítsa be a conditionType tulajdonságot az objektum típusának megadásához.
logikaiesetén használja a következőt:
{
"conditionProperties": {
"innerConditions": [ {
"conditionType": "string"
// For remaining properties, see AutomationRuleCondition objects
} ],
"operator": "string"
},
"conditionType": "Boolean"
}
A tulajdonságesetében használja a következőt:
{
"conditionProperties": {
"operator": "string",
"propertyName": "string",
"propertyValues": [ "string" ]
},
"conditionType": "Property"
}
PropertyArrayesetén használja a következőt:
{
"conditionProperties": {
"arrayConditionType": "string",
"arrayType": "string",
"itemConditions": [ {
"conditionType": "string"
// For remaining properties, see AutomationRuleCondition objects
} ]
},
"conditionType": "PropertyArray"
}
Az PropertyArrayChangedesetében használja a következőt:
{
"conditionProperties": {
"arrayType": "string",
"changeType": "string"
},
"conditionType": "PropertyArrayChanged"
}
PropertyChangedesetén használja a következőt:
{
"conditionProperties": {
"changeType": "string",
"operator": "string",
"propertyName": "string",
"propertyValues": [ "string" ]
},
"conditionType": "PropertyChanged"
}
AutomationRuleAction objektumok
Állítsa be a actionType tulajdonságot az objektum típusának megadásához.
AddIncidentTaskesetén használja a következőt:
{
"actionConfiguration": {
"description": "string",
"title": "string"
},
"actionType": "AddIncidentTask"
}
A ModifyPropertiesesetében használja a következőt:
{
"actionConfiguration": {
"classification": "string",
"classificationComment": "string",
"classificationReason": "string",
"labels": [
{
"labelName": "string"
}
],
"owner": {
"assignedTo": "string",
"email": "string",
"objectId": "string",
"ownerType": "string",
"userPrincipalName": "string"
},
"severity": "string",
"status": "string"
},
"actionType": "ModifyProperties"
}
RunPlaybookesetén használja a következőt:
{
"actionConfiguration": {
"logicAppResourceId": "string",
"tenantId": "string"
},
"actionType": "RunPlaybook"
}
Tulajdonságértékek
Microsoft. SecurityInsights/automationRules
| Name | Description | Value |
|---|---|---|
| apiVersion | Az API verziója | '2022-12-01-preview' |
| etag | Az Azure-erőforrás etagje | karakterlánc |
| name | Az erőforrás neve | karakterlánc (kötelező) |
| properties | Automation-szabály tulajdonságai | AutomationRuleProperties (kötelező) |
| típus | Az erőforrás típusa | "Microsoft. SecurityInsights/automationRules' |
AddIncidentTaskActionProperties
| Name | Description | Value |
|---|---|---|
| description | A feladat leírása. | karakterlánc |
| title | A feladat címe. | karakterlánc (kötelező) |
AutomationRuleAction
| Name | Description | Value |
|---|---|---|
| actionType | Az AutomationRuleAddIncidentTaskAction típushoz állítsa az "AddIncidentTask" értéket. A AutomationRuleModifyPropertiesActiontípushoz állítsa a "ModifyProperties" értéket. Állítsa be a "RunPlaybook" értéket az AutomationRuleRunPlaybookAction típushoz. | 'AddIncidentTask' 'ModifyProperties' "RunPlaybook" (kötelező) |
| sorrend | int (kötelező) |
AutomationRuleAddIncidentTaskAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | AddIncidentTaskActionProperties | |
| actionType | Az automatizálási szabályművelet típusa. | "AddIncidentTask" (kötelező) |
AutomationRuleBooleanCondition
| Name | Description | Value |
|---|---|---|
| innerConditions | AutomationRuleCondition[] | |
| operátor | 'And' 'Or' |
AutomationRuleCondition
| Name | Description | Value |
|---|---|---|
| conditionType | A booleanConditionProperties típushoz állítsa a "Logikai" értéket. Az PropertyConditionPropertiestípus "Tulajdonság" értékre van állítva. A PropertyArrayConditionProperties |
'Boolean' 'Property' 'PropertyArray' 'PropertyArrayChanged' 'PropertyChanged' (kötelező) |
AutomationRuleModifyPropertiesAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | IncidentPropertiesAction | |
| actionType | Az automatizálási szabályművelet típusa. | "ModifyProperties" (kötelező) |
AutomationRuleProperties
| Name | Description | Value |
|---|---|---|
| actions | Az automatizálási szabály aktiválásakor végrehajtandó műveletek. | AutomationRuleAction[] (kötelező) |
| displayName | Az automatizálási szabály megjelenítendő neve. | string Constraints: Maximális hossz = 500 (kötelező) |
| sorrend | Az automatizálási szabály végrehajtásának sorrendje. | int Constraints: Minimális érték = 1 Maximális érték = 1000 (kötelező) |
| triggeringLogic | A logikát aktiváló automatizálási szabály ismertetése. | AutomationRuleTriggeringLogic (kötelező) |
AutomationRulePropertyArrayChangedValuesCondition
| Name | Description | Value |
|---|---|---|
| arrayType | 'Alerts' 'Comments' 'Labels' 'Tactics' |
|
| changeType | 'Added' |
AutomationRulePropertyArrayValuesCondition
| Name | Description | Value |
|---|---|---|
| arrayConditionType | 'AnyItem' | |
| arrayType | 'CustomDetails' 'CustomDetailValues' |
|
| itemConditions | AutomationRuleCondition[] |
AutomationRulePropertyValuesChangedCondition
| Name | Description | Value |
|---|---|---|
| changeType | 'ChangedFrom' 'ChangedTo' |
|
| operátor | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | 'IncidentOwner' 'IncidentSeverity' 'IncidentStatus' |
|
| propertyValues | string[] |
AutomationRulePropertyValuesCondition
| Name | Description | Value |
|---|---|---|
| operátor | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | Az automatizálási szabály tulajdonságfeltételében kiértékelendő tulajdonság. | 'AccountAadTenantId' 'AccountAadUserId' 'AccountName' 'AccountNTDomain' 'AccountObjectGuid' 'AccountPUID' 'AccountSid' 'AccountUPNSuffix' 'AlertAnalyticRuleIds' 'AlertProductNames' 'AzureResourceResourceId' 'AzureResourceSubscriptionId' 'CloudApplicationAppId' 'CloudApplicationAppName' 'DNSDomainName' 'FileDirectory' 'FileHashValue' 'FileName' 'HostAzureID' 'HostName' 'HostNetBiosName' 'HostNTDomain' 'HostOSVersion' 'IncidentCustomDetailsKey' 'IncidentCustomDetailsValue' 'IncidentDescription' 'IncidentLabel' 'IncidentProviderName' 'IncidentRelatedAnalyticRuleIds' 'IncidentSeverity' 'IncidentStatus' 'IncidentTactics' 'IncidentTitle' 'IncidentUpdatedBySource' 'IoTDeviceId' 'IoTDeviceModel' 'IoTDeviceName' 'IoTDeviceOperatingSystem' 'IoTDeviceType' 'IoTDeviceVendor' 'IPAddress' 'MailboxDisplayName' 'MailboxPrimaryAddress' 'MailboxUPN' 'MailMessageDeliveryAction' 'MailMessageDeliveryLocation' 'MailMessageP1Sender' 'MailMessageP2Sender' 'MailMessageRecipient' 'MailMessageSenderIP' 'MailMessageSubject' 'MalwareCategory' 'MalwareName' 'ProcessCommandLine' 'ProcessId' 'RegistryKey' 'RegistryValueData' 'Url' |
| propertyValues | string[] |
AutomationRuleRunPlaybookAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | PlaybookActionProperties | |
| actionType | Az automatizálási szabályművelet típusa. | "RunPlaybook" (kötelező) |
AutomationRuleTriggeringLogic
| Name | Description | Value |
|---|---|---|
| conditions | A kiértékelendő feltételek annak megállapításához, hogy az automatizálási szabályt aktiválni kell-e egy adott objektumon. | AutomationRuleCondition[] |
| expirationTimeUtc | Meghatározza, hogy az automatizálási szabály mikor járjon le automatikusan, és mikor legyen letiltva. | karakterlánc |
| isEnabled | Meghatározza, hogy az automatizálási szabály engedélyezve vagy letiltva van-e. | bool (kötelező) |
| triggersOn | 'Alerts' "Incidensek" (kötelező) |
|
| triggersWhen | 'Created' "Frissítve" (kötelező) |
BooleanConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRuleBooleanCondition | |
| conditionType | "Logikai" (kötelező) |
IncidentLabel
| Name | Description | Value |
|---|---|---|
| labelName | A címke neve | karakterlánc (kötelező) |
IncidentOwnerInfo
| Name | Description | Value |
|---|---|---|
| assignedTo | Annak a felhasználónak a neve, akihez az incidens hozzá van rendelve. | karakterlánc |
| Annak a felhasználónak az e-mailje, amelyhez az incidens hozzá van rendelve. | karakterlánc | |
| objectId | Annak a felhasználónak az objektumazonosítója, amelyhez az incidens hozzá van rendelve. | string Constraints: Minimális hossz = 36 Maximális hossz = 36 Minta = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| ownerType | Annak a tulajdonosnak a típusa, amelyhez az incidens hozzá van rendelve. | 'Group' 'Unknown' 'User' |
| userPrincipalName | Annak a felhasználónak a felhasználóneve, amelyhez az incidens hozzá van rendelve. | karakterlánc |
IncidentPropertiesAction
| Name | Description | Value |
|---|---|---|
| classification | Az incidens lezárásának oka | 'BenignPositive' 'FalsePositive' 'TruePositive' 'Undetermined' |
| classificationComment | Az incidens bezárásának okát ismerteti. | karakterlánc |
| classificationReason | Az incidens besorolási oka | 'InaccurateData' 'IncorrectAlertLogic' 'SuspiciousActivity' 'SuspiciousButExpected' |
| labels | Az incidenshez hozzáadni kívánt címkék listája. | IncidentLabel[] |
| tulajdonos | Annak a felhasználónak az adatai, akihez incidens van rendelve | IncidentOwnerInfo |
| severity | Az incidens súlyossága | 'High' 'Informational' 'Low' 'Medium' |
| állapot | Az incidens állapota | 'Active' 'Closed' 'New' |
PlaybookActionProperties
| Name | Description | Value |
|---|---|---|
| logicAppResourceId | A forgatókönyv-erőforrás erőforrás-azonosítója. | karakterlánc |
| tenantId | A forgatókönyv-erőforrás bérlőazonosítója. | string Constraints: Minimális hossz = 36 Maximális hossz = 36 Minta = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
PropertyArrayChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayChangedValuesCondition | |
| conditionType | 'PropertyArrayChanged' (kötelező) |
PropertyArrayConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayValuesCondition | |
| conditionType | 'PropertyArray' (kötelező) |
PropertyChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesChangedCondition | |
| conditionType | 'PropertyChanged' (kötelező) |
PropertyConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesCondition | |
| conditionType | "Tulajdonság" (kötelező) |
Terraform (AzAPI-szolgáltató) erőforrásdefiníciója
Az automationRules erőforrástípus üzembe helyezhető olyan műveletekkel, amelyek a következő célokat célják:
Az egyes API-verziók módosított tulajdonságainak listáját a változásnaplócímű témakörben találja.
Használati példák
Terraform minták
Alapvető példa a Sentinel automatizálási szabály üzembe helyezésére.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "workspace" {
type = "Microsoft.OperationalInsights/workspaces@2022-10-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
features = {
disableLocalAuth = false
enableLogAccessUsingOnlyResourcePermissions = true
}
publicNetworkAccessForIngestion = "Enabled"
publicNetworkAccessForQuery = "Enabled"
retentionInDays = 30
sku = {
name = "PerGB2018"
}
workspaceCapping = {
dailyQuotaGb = -1
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "onboardingState" {
type = "Microsoft.SecurityInsights/onboardingStates@2023-06-01-preview"
parent_id = azapi_resource.workspace.id
name = "default"
body = {
properties = {
customerManagedKey = false
}
}
}
resource "azapi_resource" "automationRule" {
type = "Microsoft.SecurityInsights/automationRules@2022-10-01-preview"
parent_id = azapi_resource.workspace.id
name = "3b862818-ad7b-409e-83be-8812f2a06d37"
body = {
properties = {
actions = [
{
actionConfiguration = {
classification = ""
classificationComment = ""
classificationReason = ""
severity = ""
status = "Active"
}
actionType = "ModifyProperties"
order = 1
},
]
displayName = "acctest-SentinelAutoRule-230630033910945846"
order = 1
triggeringLogic = {
isEnabled = true
triggersOn = "Incidents"
triggersWhen = "Created"
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
depends_on = [azapi_resource.onboardingState]
}
Erőforrás formátuma
Hogy létrehozzunk egy Microsoft-ot. SecurityInsights/automationRules erőforrás esetén add hozzá a következő Terraformot a sablonodhoz.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.SecurityInsights/automationRules@2022-12-01-preview"
name = "string"
parent_id = "string"
body = {
etag = "string"
properties = {
actions = [
{
order = int
actionType = "string"
// For remaining properties, see AutomationRuleAction objects
}
]
displayName = "string"
order = int
triggeringLogic = {
conditions = [
{
conditionType = "string"
// For remaining properties, see AutomationRuleCondition objects
}
]
expirationTimeUtc = "string"
isEnabled = bool
triggersOn = "string"
triggersWhen = "string"
}
}
}
}
AutomationRuleCondition-objektumok
Állítsa be a conditionType tulajdonságot az objektum típusának megadásához.
logikaiesetén használja a következőt:
{
conditionProperties = {
innerConditions = [
{
conditionType = "string"
// For remaining properties, see AutomationRuleCondition objects
}
]
operator = "string"
}
conditionType = "Boolean"
}
A tulajdonságesetében használja a következőt:
{
conditionProperties = {
operator = "string"
propertyName = "string"
propertyValues = [
"string"
]
}
conditionType = "Property"
}
PropertyArrayesetén használja a következőt:
{
conditionProperties = {
arrayConditionType = "string"
arrayType = "string"
itemConditions = [
{
conditionType = "string"
// For remaining properties, see AutomationRuleCondition objects
}
]
}
conditionType = "PropertyArray"
}
Az PropertyArrayChangedesetében használja a következőt:
{
conditionProperties = {
arrayType = "string"
changeType = "string"
}
conditionType = "PropertyArrayChanged"
}
PropertyChangedesetén használja a következőt:
{
conditionProperties = {
changeType = "string"
operator = "string"
propertyName = "string"
propertyValues = [
"string"
]
}
conditionType = "PropertyChanged"
}
AutomationRuleAction objektumok
Állítsa be a actionType tulajdonságot az objektum típusának megadásához.
AddIncidentTaskesetén használja a következőt:
{
actionConfiguration = {
description = "string"
title = "string"
}
actionType = "AddIncidentTask"
}
A ModifyPropertiesesetében használja a következőt:
{
actionConfiguration = {
classification = "string"
classificationComment = "string"
classificationReason = "string"
labels = [
{
labelName = "string"
}
]
owner = {
assignedTo = "string"
email = "string"
objectId = "string"
ownerType = "string"
userPrincipalName = "string"
}
severity = "string"
status = "string"
}
actionType = "ModifyProperties"
}
RunPlaybookesetén használja a következőt:
{
actionConfiguration = {
logicAppResourceId = "string"
tenantId = "string"
}
actionType = "RunPlaybook"
}
Tulajdonságértékek
Microsoft. SecurityInsights/automationRules
| Name | Description | Value |
|---|---|---|
| etag | Az Azure-erőforrás etagje | karakterlánc |
| name | Az erőforrás neve | karakterlánc (kötelező) |
| parent_id | Annak az erőforrásnak az azonosítója, amelyre ezt a bővítményerőforrást alkalmazni szeretné. | karakterlánc (kötelező) |
| properties | Automation-szabály tulajdonságai | AutomationRuleProperties (kötelező) |
| típus | Az erőforrás típusa | "Microsoft. SecurityInsights/automationRules@2022-12-01-preview" |
AddIncidentTaskActionProperties
| Name | Description | Value |
|---|---|---|
| description | A feladat leírása. | karakterlánc |
| title | A feladat címe. | karakterlánc (kötelező) |
AutomationRuleAction
| Name | Description | Value |
|---|---|---|
| actionType | Az AutomationRuleAddIncidentTaskAction típushoz állítsa az "AddIncidentTask" értéket. A AutomationRuleModifyPropertiesActiontípushoz állítsa a "ModifyProperties" értéket. Állítsa be a "RunPlaybook" értéket az AutomationRuleRunPlaybookAction típushoz. | 'AddIncidentTask' 'ModifyProperties' "RunPlaybook" (kötelező) |
| sorrend | int (kötelező) |
AutomationRuleAddIncidentTaskAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | AddIncidentTaskActionProperties | |
| actionType | Az automatizálási szabályművelet típusa. | "AddIncidentTask" (kötelező) |
AutomationRuleBooleanCondition
| Name | Description | Value |
|---|---|---|
| innerConditions | AutomationRuleCondition[] | |
| operátor | 'And' 'Or' |
AutomationRuleCondition
| Name | Description | Value |
|---|---|---|
| conditionType | A booleanConditionProperties típushoz állítsa a "Logikai" értéket. Az PropertyConditionPropertiestípus "Tulajdonság" értékre van állítva. A PropertyArrayConditionProperties |
'Boolean' 'Property' 'PropertyArray' 'PropertyArrayChanged' 'PropertyChanged' (kötelező) |
AutomationRuleModifyPropertiesAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | IncidentPropertiesAction | |
| actionType | Az automatizálási szabályművelet típusa. | "ModifyProperties" (kötelező) |
AutomationRuleProperties
| Name | Description | Value |
|---|---|---|
| actions | Az automatizálási szabály aktiválásakor végrehajtandó műveletek. | AutomationRuleAction[] (kötelező) |
| displayName | Az automatizálási szabály megjelenítendő neve. | string Constraints: Maximális hossz = 500 (kötelező) |
| sorrend | Az automatizálási szabály végrehajtásának sorrendje. | int Constraints: Minimális érték = 1 Maximális érték = 1000 (kötelező) |
| triggeringLogic | A logikát aktiváló automatizálási szabály ismertetése. | AutomationRuleTriggeringLogic (kötelező) |
AutomationRulePropertyArrayChangedValuesCondition
| Name | Description | Value |
|---|---|---|
| arrayType | 'Alerts' 'Comments' 'Labels' 'Tactics' |
|
| changeType | 'Added' |
AutomationRulePropertyArrayValuesCondition
| Name | Description | Value |
|---|---|---|
| arrayConditionType | 'AnyItem' | |
| arrayType | 'CustomDetails' 'CustomDetailValues' |
|
| itemConditions | AutomationRuleCondition[] |
AutomationRulePropertyValuesChangedCondition
| Name | Description | Value |
|---|---|---|
| changeType | 'ChangedFrom' 'ChangedTo' |
|
| operátor | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | 'IncidentOwner' 'IncidentSeverity' 'IncidentStatus' |
|
| propertyValues | string[] |
AutomationRulePropertyValuesCondition
| Name | Description | Value |
|---|---|---|
| operátor | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | Az automatizálási szabály tulajdonságfeltételében kiértékelendő tulajdonság. | 'AccountAadTenantId' 'AccountAadUserId' 'AccountName' 'AccountNTDomain' 'AccountObjectGuid' 'AccountPUID' 'AccountSid' 'AccountUPNSuffix' 'AlertAnalyticRuleIds' 'AlertProductNames' 'AzureResourceResourceId' 'AzureResourceSubscriptionId' 'CloudApplicationAppId' 'CloudApplicationAppName' 'DNSDomainName' 'FileDirectory' 'FileHashValue' 'FileName' 'HostAzureID' 'HostName' 'HostNetBiosName' 'HostNTDomain' 'HostOSVersion' 'IncidentCustomDetailsKey' 'IncidentCustomDetailsValue' 'IncidentDescription' 'IncidentLabel' 'IncidentProviderName' 'IncidentRelatedAnalyticRuleIds' 'IncidentSeverity' 'IncidentStatus' 'IncidentTactics' 'IncidentTitle' 'IncidentUpdatedBySource' 'IoTDeviceId' 'IoTDeviceModel' 'IoTDeviceName' 'IoTDeviceOperatingSystem' 'IoTDeviceType' 'IoTDeviceVendor' 'IPAddress' 'MailboxDisplayName' 'MailboxPrimaryAddress' 'MailboxUPN' 'MailMessageDeliveryAction' 'MailMessageDeliveryLocation' 'MailMessageP1Sender' 'MailMessageP2Sender' 'MailMessageRecipient' 'MailMessageSenderIP' 'MailMessageSubject' 'MalwareCategory' 'MalwareName' 'ProcessCommandLine' 'ProcessId' 'RegistryKey' 'RegistryValueData' 'Url' |
| propertyValues | string[] |
AutomationRuleRunPlaybookAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | PlaybookActionProperties | |
| actionType | Az automatizálási szabályművelet típusa. | "RunPlaybook" (kötelező) |
AutomationRuleTriggeringLogic
| Name | Description | Value |
|---|---|---|
| conditions | A kiértékelendő feltételek annak megállapításához, hogy az automatizálási szabályt aktiválni kell-e egy adott objektumon. | AutomationRuleCondition[] |
| expirationTimeUtc | Meghatározza, hogy az automatizálási szabály mikor járjon le automatikusan, és mikor legyen letiltva. | karakterlánc |
| isEnabled | Meghatározza, hogy az automatizálási szabály engedélyezve vagy letiltva van-e. | bool (kötelező) |
| triggersOn | 'Alerts' "Incidensek" (kötelező) |
|
| triggersWhen | 'Created' "Frissítve" (kötelező) |
BooleanConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRuleBooleanCondition | |
| conditionType | "Logikai" (kötelező) |
IncidentLabel
| Name | Description | Value |
|---|---|---|
| labelName | A címke neve | karakterlánc (kötelező) |
IncidentOwnerInfo
| Name | Description | Value |
|---|---|---|
| assignedTo | Annak a felhasználónak a neve, akihez az incidens hozzá van rendelve. | karakterlánc |
| Annak a felhasználónak az e-mailje, amelyhez az incidens hozzá van rendelve. | karakterlánc | |
| objectId | Annak a felhasználónak az objektumazonosítója, amelyhez az incidens hozzá van rendelve. | string Constraints: Minimális hossz = 36 Maximális hossz = 36 Minta = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| ownerType | Annak a tulajdonosnak a típusa, amelyhez az incidens hozzá van rendelve. | 'Group' 'Unknown' 'User' |
| userPrincipalName | Annak a felhasználónak a felhasználóneve, amelyhez az incidens hozzá van rendelve. | karakterlánc |
IncidentPropertiesAction
| Name | Description | Value |
|---|---|---|
| classification | Az incidens lezárásának oka | 'BenignPositive' 'FalsePositive' 'TruePositive' 'Undetermined' |
| classificationComment | Az incidens bezárásának okát ismerteti. | karakterlánc |
| classificationReason | Az incidens besorolási oka | 'InaccurateData' 'IncorrectAlertLogic' 'SuspiciousActivity' 'SuspiciousButExpected' |
| labels | Az incidenshez hozzáadni kívánt címkék listája. | IncidentLabel[] |
| tulajdonos | Annak a felhasználónak az adatai, akihez incidens van rendelve | IncidentOwnerInfo |
| severity | Az incidens súlyossága | 'High' 'Informational' 'Low' 'Medium' |
| állapot | Az incidens állapota | 'Active' 'Closed' 'New' |
PlaybookActionProperties
| Name | Description | Value |
|---|---|---|
| logicAppResourceId | A forgatókönyv-erőforrás erőforrás-azonosítója. | karakterlánc |
| tenantId | A forgatókönyv-erőforrás bérlőazonosítója. | string Constraints: Minimális hossz = 36 Maximális hossz = 36 Minta = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
PropertyArrayChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayChangedValuesCondition | |
| conditionType | 'PropertyArrayChanged' (kötelező) |
PropertyArrayConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayValuesCondition | |
| conditionType | 'PropertyArray' (kötelező) |
PropertyChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesChangedCondition | |
| conditionType | 'PropertyChanged' (kötelező) |
PropertyConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesCondition | |
| conditionType | "Tulajdonság" (kötelező) |