Not
Bu sayfaya erişim yetkilendirme gerektiriyor. Oturum açmayı veya dizinleri değiştirmeyi deneyebilirsiniz.
Bu sayfaya erişim yetkilendirme gerektiriyor. Dizinleri değiştirmeyi deneyebilirsiniz.
- Latest
- 2025-10-01-önizleme
- 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 kaynak tanımı
automationRules kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:
Her API sürümünde değiştirilen özelliklerin listesi için bkz. değişiklik günlüğü.
Kullanım Örnekleri
Bicep Örnekleri
Sentinel Otomasyon Kuralı'nı dağıtmanın temel bir örneği.
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'
}
}
}
Kaynak biçimi
Bir Microsoft yaratmak için. SecurityInsights/automationRules kaynağı için aşağıdaki Bicep'i şablonunuza ekleyin.
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 nesneleri
nesne türünü belirtmek için conditionType özelliğini ayarlayın.
boole
{
conditionProperties: {
innerConditions: [
{
conditionType: 'string'
// For remaining properties, see AutomationRuleCondition objects
}
]
operator: 'string'
}
conditionType: 'Boolean'
}
Özellikiçin şunu kullanın:
{
conditionProperties: {
operator: 'string'
propertyName: 'string'
propertyValues: [
'string'
]
}
conditionType: 'Property'
}
PropertyArrayiçin şunu kullanın:
{
conditionProperties: {
arrayConditionType: 'string'
arrayType: 'string'
itemConditions: [
{
conditionType: 'string'
// For remaining properties, see AutomationRuleCondition objects
}
]
}
conditionType: 'PropertyArray'
}
PropertyArrayChangediçin şunu kullanın:
{
conditionProperties: {
arrayType: 'string'
changeType: 'string'
}
conditionType: 'PropertyArrayChanged'
}
PropertyChangediçin şunu kullanın:
{
conditionProperties: {
changeType: 'string'
operator: 'string'
propertyName: 'string'
propertyValues: [
'string'
]
}
conditionType: 'PropertyChanged'
}
AutomationRuleAction nesneleri
nesne türünü belirtmek için actionType özelliğini ayarlayın.
AddIncidentTask
{
actionConfiguration: {
description: 'string'
title: 'string'
}
actionType: 'AddIncidentTask'
}
ModifyProperties
{
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'
}
RunPlaybookiçin şunu kullanın:
{
actionConfiguration: {
logicAppResourceId: 'string'
tenantId: 'string'
}
actionType: 'RunPlaybook'
}
Özellik Değerleri
Microsoft. SecurityInsights/automationRules
| Name | Description | Value |
|---|---|---|
| etag | Azure kaynağının etag'i | string |
| name | Kaynak adı | dize (gerekli) |
| properties | Otomasyon kuralı özellikleri | AutomationRuleProperties (gerekli) |
| scope | Dağıtım kapsamından farklı bir kapsamda kaynak oluştururken kullanın. | uzantısı kaynağınıuygulamak için bu özelliği kaynağın sembolik adı olarak ayarlayın. |
AddIncidentTaskActionProperties
| Name | Description | Value |
|---|---|---|
| description | Görevin açıklaması. | string |
| title | Görevin başlığı. | dize (gerekli) |
AutomationRuleAction
| Name | Description | Value |
|---|---|---|
| actionType | AutomationRuleAddIncidentTaskActiontürü |
'AddIncidentTask' 'ModifyProperties' 'RunPlaybook' (gerekli) |
| order | int (gerekli) |
AutomationRuleAddIncidentTaskAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | AddIncidentTaskActionProperties | |
| actionType | Otomasyon kuralı eyleminin türü. | 'AddIncidentTask' (gerekli) |
AutomationRuleBooleanCondition
| Name | Description | Value |
|---|---|---|
| innerConditions | AutomationRuleCondition[] | |
| operator | 'And' 'Or' |
AutomationRuleCondition
| Name | Description | Value |
|---|---|---|
| conditionType | BooleanConditionPropertiestürü |
'Boolean' 'Property' 'PropertyArray' 'PropertyArrayChanged' 'PropertyChanged' (gerekli) |
AutomationRuleModifyPropertiesAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | IncidentPropertiesAction | |
| actionType | Otomasyon kuralı eyleminin türü. | 'ModifyProperties' (gerekli) |
AutomationRuleProperties
| Name | Description | Value |
|---|---|---|
| actions | Otomasyon kuralı tetiklendiğinde yürütülecek eylemler. | AutomationRuleAction[] (gerekli) |
| displayName | Otomasyon kuralının görünen adı. | string Constraints: Maksimum uzunluk = 500 (gerekli) |
| order | Otomasyon kuralının yürütme sırası. | int Constraints: Min değer = 1 Maksimum değer = 1000 (gerekli) |
| triggeringLogic | Otomasyon kuralı tetikleme mantığını açıklar. | AutomationRuleTriggeringLogic (gerekli) |
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' |
|
| operator | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | 'IncidentOwner' 'IncidentSeverity' 'IncidentStatus' |
|
| propertyValues | string[] |
AutomationRulePropertyValuesCondition
| Name | Description | Value |
|---|---|---|
| operator | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | Otomasyon kuralı özellik koşulunda değerlendirilecek özellik. | '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 | Otomasyon kuralı eyleminin türü. | 'RunPlaybook' (gerekli) |
AutomationRuleTriggeringLogic
| Name | Description | Value |
|---|---|---|
| conditions | Otomasyon kuralının belirli bir nesne üzerinde tetiklenip tetiklenmediğini belirlemek için değerlendirilecek koşullar. | AutomationRuleCondition[] |
| expirationTimeUtc | Otomasyon kuralının süresinin otomatik olarak ne zaman dolması ve devre dışı bırakılması gerektiğini belirler. | string |
| isEnabled | Otomasyon kuralının etkin mi yoksa devre dışı mı olduğunu belirler. | bool (gerekli) |
| triggersOn | 'Alerts' 'Olaylar' (gerekli) |
|
| triggersWhen | 'Created' 'Güncellendi' (gerekli) |
BooleanConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRuleBooleanCondition | |
| conditionType | 'Boolean' (gerekli) |
IncidentLabel
| Name | Description | Value |
|---|---|---|
| labelName | Etiketin adı | dize (gerekli) |
IncidentOwnerInfo
| Name | Description | Value |
|---|---|---|
| assignedTo | Olayın atandığı kullanıcının adı. | string |
| Olayın atandığı kullanıcının e-postası. | string | |
| objectId | Olayın atandığı kullanıcının nesne kimliği. | string Constraints: En az uzunluk = 36 Maksimum uzunluk = 36 Desen = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| ownerType | Olayın atandığı sahibin türü. | 'Group' 'Unknown' 'User' |
| userPrincipalName | Olayın atandığı kullanıcının kullanıcı asıl adı. | string |
IncidentPropertiesAction
| Name | Description | Value |
|---|---|---|
| classification | Olayın kapanma nedeni | 'BenignPositive' 'FalsePositive' 'TruePositive' 'Undetermined' |
| classificationComment | Olayın kapanma nedenini açıklar. | string |
| classificationReason | Olayın kapatıldığı sınıflandırma nedeni | 'InaccurateData' 'IncorrectAlertLogic' 'SuspiciousActivity' 'SuspiciousButExpected' |
| labels | Olaya eklenecek etiketlerin listesi. | IncidentLabel[] |
| owner | Bir olayın atandığı kullanıcıyla ilgili bilgiler | IncidentOwnerInfo |
| severity | Olayın önem derecesi | 'High' 'Informational' 'Low' 'Medium' |
| status | Olayın durumu | 'Active' 'Closed' 'New' |
PlaybookActionProperties
| Name | Description | Value |
|---|---|---|
| logicAppResourceId | Playbook kaynağının kaynak kimliği. | string |
| tenantId | Playbook kaynağının kiracı kimliği. | string Constraints: En az uzunluk = 36 Maksimum uzunluk = 36 Desen = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
PropertyArrayChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayChangedValuesCondition | |
| conditionType | 'PropertyArrayChanged' (gerekli) |
PropertyArrayConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayValuesCondition | |
| conditionType | 'PropertyArray' (gerekli) |
PropertyChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesChangedCondition | |
| conditionType | 'PropertyChanged' (gerekli) |
PropertyConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesCondition | |
| conditionType | 'Özellik' (gerekli) |
ARM şablonu kaynak tanımı
automationRules kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:
Her API sürümünde değiştirilen özelliklerin listesi için bkz. değişiklik günlüğü.
Kullanım Örnekleri
Azure Quickstart Şablonları
Aşağıdaki Azure Hızlı başlat şablonları bu kaynak tipini dağıtır.
| Template | Description |
|---|---|
|
Yeni bir Microsoft Sentinel Otomasyon Kuralı oluşturur |
Bu örnek, Microsoft Sentinel'de yeni bir otomasyon kuralı nasıl oluşturulacağını gösterir |
Kaynak biçimi
Bir Microsoft yaratmak için. SecurityInsights/automationRules kaynağı için şablonunuza aşağıdaki JSON'u ekleyin.
{
"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 nesneleri
nesne türünü belirtmek için conditionType özelliğini ayarlayın.
boole
{
"conditionProperties": {
"innerConditions": [ {
"conditionType": "string"
// For remaining properties, see AutomationRuleCondition objects
} ],
"operator": "string"
},
"conditionType": "Boolean"
}
Özellikiçin şunu kullanın:
{
"conditionProperties": {
"operator": "string",
"propertyName": "string",
"propertyValues": [ "string" ]
},
"conditionType": "Property"
}
PropertyArrayiçin şunu kullanın:
{
"conditionProperties": {
"arrayConditionType": "string",
"arrayType": "string",
"itemConditions": [ {
"conditionType": "string"
// For remaining properties, see AutomationRuleCondition objects
} ]
},
"conditionType": "PropertyArray"
}
PropertyArrayChangediçin şunu kullanın:
{
"conditionProperties": {
"arrayType": "string",
"changeType": "string"
},
"conditionType": "PropertyArrayChanged"
}
PropertyChangediçin şunu kullanın:
{
"conditionProperties": {
"changeType": "string",
"operator": "string",
"propertyName": "string",
"propertyValues": [ "string" ]
},
"conditionType": "PropertyChanged"
}
AutomationRuleAction nesneleri
nesne türünü belirtmek için actionType özelliğini ayarlayın.
AddIncidentTask
{
"actionConfiguration": {
"description": "string",
"title": "string"
},
"actionType": "AddIncidentTask"
}
ModifyProperties
{
"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"
}
RunPlaybookiçin şunu kullanın:
{
"actionConfiguration": {
"logicAppResourceId": "string",
"tenantId": "string"
},
"actionType": "RunPlaybook"
}
Özellik Değerleri
Microsoft. SecurityInsights/automationRules
| Name | Description | Value |
|---|---|---|
| apiVersion | API sürümü | '2022-12-01-preview' |
| etag | Azure kaynağının etag'i | string |
| name | Kaynak adı | dize (gerekli) |
| properties | Otomasyon kuralı özellikleri | AutomationRuleProperties (gerekli) |
| type | Kaynak türü | 'Microsoft. SecurityInsights/automationRules' |
AddIncidentTaskActionProperties
| Name | Description | Value |
|---|---|---|
| description | Görevin açıklaması. | string |
| title | Görevin başlığı. | dize (gerekli) |
AutomationRuleAction
| Name | Description | Value |
|---|---|---|
| actionType | AutomationRuleAddIncidentTaskActiontürü |
'AddIncidentTask' 'ModifyProperties' 'RunPlaybook' (gerekli) |
| order | int (gerekli) |
AutomationRuleAddIncidentTaskAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | AddIncidentTaskActionProperties | |
| actionType | Otomasyon kuralı eyleminin türü. | 'AddIncidentTask' (gerekli) |
AutomationRuleBooleanCondition
| Name | Description | Value |
|---|---|---|
| innerConditions | AutomationRuleCondition[] | |
| operator | 'And' 'Or' |
AutomationRuleCondition
| Name | Description | Value |
|---|---|---|
| conditionType | BooleanConditionPropertiestürü |
'Boolean' 'Property' 'PropertyArray' 'PropertyArrayChanged' 'PropertyChanged' (gerekli) |
AutomationRuleModifyPropertiesAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | IncidentPropertiesAction | |
| actionType | Otomasyon kuralı eyleminin türü. | 'ModifyProperties' (gerekli) |
AutomationRuleProperties
| Name | Description | Value |
|---|---|---|
| actions | Otomasyon kuralı tetiklendiğinde yürütülecek eylemler. | AutomationRuleAction[] (gerekli) |
| displayName | Otomasyon kuralının görünen adı. | string Constraints: Maksimum uzunluk = 500 (gerekli) |
| order | Otomasyon kuralının yürütme sırası. | int Constraints: Min değer = 1 Maksimum değer = 1000 (gerekli) |
| triggeringLogic | Otomasyon kuralı tetikleme mantığını açıklar. | AutomationRuleTriggeringLogic (gerekli) |
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' |
|
| operator | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | 'IncidentOwner' 'IncidentSeverity' 'IncidentStatus' |
|
| propertyValues | string[] |
AutomationRulePropertyValuesCondition
| Name | Description | Value |
|---|---|---|
| operator | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | Otomasyon kuralı özellik koşulunda değerlendirilecek özellik. | '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 | Otomasyon kuralı eyleminin türü. | 'RunPlaybook' (gerekli) |
AutomationRuleTriggeringLogic
| Name | Description | Value |
|---|---|---|
| conditions | Otomasyon kuralının belirli bir nesne üzerinde tetiklenip tetiklenmediğini belirlemek için değerlendirilecek koşullar. | AutomationRuleCondition[] |
| expirationTimeUtc | Otomasyon kuralının süresinin otomatik olarak ne zaman dolması ve devre dışı bırakılması gerektiğini belirler. | string |
| isEnabled | Otomasyon kuralının etkin mi yoksa devre dışı mı olduğunu belirler. | bool (gerekli) |
| triggersOn | 'Alerts' 'Olaylar' (gerekli) |
|
| triggersWhen | 'Created' 'Güncellendi' (gerekli) |
BooleanConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRuleBooleanCondition | |
| conditionType | 'Boolean' (gerekli) |
IncidentLabel
| Name | Description | Value |
|---|---|---|
| labelName | Etiketin adı | dize (gerekli) |
IncidentOwnerInfo
| Name | Description | Value |
|---|---|---|
| assignedTo | Olayın atandığı kullanıcının adı. | string |
| Olayın atandığı kullanıcının e-postası. | string | |
| objectId | Olayın atandığı kullanıcının nesne kimliği. | string Constraints: En az uzunluk = 36 Maksimum uzunluk = 36 Desen = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| ownerType | Olayın atandığı sahibin türü. | 'Group' 'Unknown' 'User' |
| userPrincipalName | Olayın atandığı kullanıcının kullanıcı asıl adı. | string |
IncidentPropertiesAction
| Name | Description | Value |
|---|---|---|
| classification | Olayın kapanma nedeni | 'BenignPositive' 'FalsePositive' 'TruePositive' 'Undetermined' |
| classificationComment | Olayın kapanma nedenini açıklar. | string |
| classificationReason | Olayın kapatıldığı sınıflandırma nedeni | 'InaccurateData' 'IncorrectAlertLogic' 'SuspiciousActivity' 'SuspiciousButExpected' |
| labels | Olaya eklenecek etiketlerin listesi. | IncidentLabel[] |
| owner | Bir olayın atandığı kullanıcıyla ilgili bilgiler | IncidentOwnerInfo |
| severity | Olayın önem derecesi | 'High' 'Informational' 'Low' 'Medium' |
| status | Olayın durumu | 'Active' 'Closed' 'New' |
PlaybookActionProperties
| Name | Description | Value |
|---|---|---|
| logicAppResourceId | Playbook kaynağının kaynak kimliği. | string |
| tenantId | Playbook kaynağının kiracı kimliği. | string Constraints: En az uzunluk = 36 Maksimum uzunluk = 36 Desen = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
PropertyArrayChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayChangedValuesCondition | |
| conditionType | 'PropertyArrayChanged' (gerekli) |
PropertyArrayConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayValuesCondition | |
| conditionType | 'PropertyArray' (gerekli) |
PropertyChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesChangedCondition | |
| conditionType | 'PropertyChanged' (gerekli) |
PropertyConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesCondition | |
| conditionType | 'Özellik' (gerekli) |
Terraform (AzAPI sağlayıcısı) kaynak tanımı
automationRules kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:
Her API sürümünde değiştirilen özelliklerin listesi için bkz. değişiklik günlüğü.
Kullanım Örnekleri
Terraform Örnekleri
Sentinel Otomasyon Kuralı'nı dağıtmanın temel bir örneği.
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]
}
Kaynak biçimi
Bir Microsoft yaratmak için. SecurityInsights/automationRules kaynağı için aşağıdaki Terraform'u şablonunuza ekleyin.
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 nesneleri
nesne türünü belirtmek için conditionType özelliğini ayarlayın.
boole
{
conditionProperties = {
innerConditions = [
{
conditionType = "string"
// For remaining properties, see AutomationRuleCondition objects
}
]
operator = "string"
}
conditionType = "Boolean"
}
Özellikiçin şunu kullanın:
{
conditionProperties = {
operator = "string"
propertyName = "string"
propertyValues = [
"string"
]
}
conditionType = "Property"
}
PropertyArrayiçin şunu kullanın:
{
conditionProperties = {
arrayConditionType = "string"
arrayType = "string"
itemConditions = [
{
conditionType = "string"
// For remaining properties, see AutomationRuleCondition objects
}
]
}
conditionType = "PropertyArray"
}
PropertyArrayChangediçin şunu kullanın:
{
conditionProperties = {
arrayType = "string"
changeType = "string"
}
conditionType = "PropertyArrayChanged"
}
PropertyChangediçin şunu kullanın:
{
conditionProperties = {
changeType = "string"
operator = "string"
propertyName = "string"
propertyValues = [
"string"
]
}
conditionType = "PropertyChanged"
}
AutomationRuleAction nesneleri
nesne türünü belirtmek için actionType özelliğini ayarlayın.
AddIncidentTask
{
actionConfiguration = {
description = "string"
title = "string"
}
actionType = "AddIncidentTask"
}
ModifyProperties
{
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"
}
RunPlaybookiçin şunu kullanın:
{
actionConfiguration = {
logicAppResourceId = "string"
tenantId = "string"
}
actionType = "RunPlaybook"
}
Özellik Değerleri
Microsoft. SecurityInsights/automationRules
| Name | Description | Value |
|---|---|---|
| etag | Azure kaynağının etag'i | string |
| name | Kaynak adı | dize (gerekli) |
| parent_id | Bu uzantı kaynağının uygulanacağı kaynağın kimliği. | dize (gerekli) |
| properties | Otomasyon kuralı özellikleri | AutomationRuleProperties (gerekli) |
| type | Kaynak türü | "Microsoft. SecurityInsights/automationRules@2022-12-01-preview" |
AddIncidentTaskActionProperties
| Name | Description | Value |
|---|---|---|
| description | Görevin açıklaması. | string |
| title | Görevin başlığı. | dize (gerekli) |
AutomationRuleAction
| Name | Description | Value |
|---|---|---|
| actionType | AutomationRuleAddIncidentTaskActiontürü |
'AddIncidentTask' 'ModifyProperties' 'RunPlaybook' (gerekli) |
| order | int (gerekli) |
AutomationRuleAddIncidentTaskAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | AddIncidentTaskActionProperties | |
| actionType | Otomasyon kuralı eyleminin türü. | 'AddIncidentTask' (gerekli) |
AutomationRuleBooleanCondition
| Name | Description | Value |
|---|---|---|
| innerConditions | AutomationRuleCondition[] | |
| operator | 'And' 'Or' |
AutomationRuleCondition
| Name | Description | Value |
|---|---|---|
| conditionType | BooleanConditionPropertiestürü |
'Boolean' 'Property' 'PropertyArray' 'PropertyArrayChanged' 'PropertyChanged' (gerekli) |
AutomationRuleModifyPropertiesAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | IncidentPropertiesAction | |
| actionType | Otomasyon kuralı eyleminin türü. | 'ModifyProperties' (gerekli) |
AutomationRuleProperties
| Name | Description | Value |
|---|---|---|
| actions | Otomasyon kuralı tetiklendiğinde yürütülecek eylemler. | AutomationRuleAction[] (gerekli) |
| displayName | Otomasyon kuralının görünen adı. | string Constraints: Maksimum uzunluk = 500 (gerekli) |
| order | Otomasyon kuralının yürütme sırası. | int Constraints: Min değer = 1 Maksimum değer = 1000 (gerekli) |
| triggeringLogic | Otomasyon kuralı tetikleme mantığını açıklar. | AutomationRuleTriggeringLogic (gerekli) |
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' |
|
| operator | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | 'IncidentOwner' 'IncidentSeverity' 'IncidentStatus' |
|
| propertyValues | string[] |
AutomationRulePropertyValuesCondition
| Name | Description | Value |
|---|---|---|
| operator | 'Contains' 'EndsWith' 'Equals' 'NotContains' 'NotEndsWith' 'NotEquals' 'NotStartsWith' 'StartsWith' |
|
| propertyName | Otomasyon kuralı özellik koşulunda değerlendirilecek özellik. | '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 | Otomasyon kuralı eyleminin türü. | 'RunPlaybook' (gerekli) |
AutomationRuleTriggeringLogic
| Name | Description | Value |
|---|---|---|
| conditions | Otomasyon kuralının belirli bir nesne üzerinde tetiklenip tetiklenmediğini belirlemek için değerlendirilecek koşullar. | AutomationRuleCondition[] |
| expirationTimeUtc | Otomasyon kuralının süresinin otomatik olarak ne zaman dolması ve devre dışı bırakılması gerektiğini belirler. | string |
| isEnabled | Otomasyon kuralının etkin mi yoksa devre dışı mı olduğunu belirler. | bool (gerekli) |
| triggersOn | 'Alerts' 'Olaylar' (gerekli) |
|
| triggersWhen | 'Created' 'Güncellendi' (gerekli) |
BooleanConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRuleBooleanCondition | |
| conditionType | 'Boolean' (gerekli) |
IncidentLabel
| Name | Description | Value |
|---|---|---|
| labelName | Etiketin adı | dize (gerekli) |
IncidentOwnerInfo
| Name | Description | Value |
|---|---|---|
| assignedTo | Olayın atandığı kullanıcının adı. | string |
| Olayın atandığı kullanıcının e-postası. | string | |
| objectId | Olayın atandığı kullanıcının nesne kimliği. | string Constraints: En az uzunluk = 36 Maksimum uzunluk = 36 Desen = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| ownerType | Olayın atandığı sahibin türü. | 'Group' 'Unknown' 'User' |
| userPrincipalName | Olayın atandığı kullanıcının kullanıcı asıl adı. | string |
IncidentPropertiesAction
| Name | Description | Value |
|---|---|---|
| classification | Olayın kapanma nedeni | 'BenignPositive' 'FalsePositive' 'TruePositive' 'Undetermined' |
| classificationComment | Olayın kapanma nedenini açıklar. | string |
| classificationReason | Olayın kapatıldığı sınıflandırma nedeni | 'InaccurateData' 'IncorrectAlertLogic' 'SuspiciousActivity' 'SuspiciousButExpected' |
| labels | Olaya eklenecek etiketlerin listesi. | IncidentLabel[] |
| owner | Bir olayın atandığı kullanıcıyla ilgili bilgiler | IncidentOwnerInfo |
| severity | Olayın önem derecesi | 'High' 'Informational' 'Low' 'Medium' |
| status | Olayın durumu | 'Active' 'Closed' 'New' |
PlaybookActionProperties
| Name | Description | Value |
|---|---|---|
| logicAppResourceId | Playbook kaynağının kaynak kimliği. | string |
| tenantId | Playbook kaynağının kiracı kimliği. | string Constraints: En az uzunluk = 36 Maksimum uzunluk = 36 Desen = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
PropertyArrayChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayChangedValuesCondition | |
| conditionType | 'PropertyArrayChanged' (gerekli) |
PropertyArrayConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayValuesCondition | |
| conditionType | 'PropertyArray' (gerekli) |
PropertyChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesChangedCondition | |
| conditionType | 'PropertyChanged' (gerekli) |
PropertyConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesCondition | |
| conditionType | 'Özellik' (gerekli) |