Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
- Latest
- 2025-10-01-preview
- 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
Définition des ressources sur les Biceps
Le type de ressource AutomationRules peut être déployé avec des opérations qui ciblent :
Pour obtenir la liste des propriétés modifiées dans chaque version de l’API, consultez journal des modifications.
Exemples d’utilisation
Échantillons de Biceps
Exemple de base de déploiement de la règle d’automatisation Sentinel.
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'
}
}
}
Format de la ressource
Pour créer un Microsoft. Ressource SecurityInsights/automationRules, ajoutez le Bicep suivant à votre modèle.
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'
}
}
}
Objets AutomationRuleCondition
Définissez la propriété conditionType
Pour booléen, utilisez :
{
conditionProperties: {
innerConditions: [
{
conditionType: 'string'
// For remaining properties, see AutomationRuleCondition objects
}
]
operator: 'string'
}
conditionType: 'Boolean'
}
Pour propriété, utilisez :
{
conditionProperties: {
operator: 'string'
propertyName: 'string'
propertyValues: [
'string'
]
}
conditionType: 'Property'
}
Pour PropertyArray, utilisez :
{
conditionProperties: {
arrayConditionType: 'string'
arrayType: 'string'
itemConditions: [
{
conditionType: 'string'
// For remaining properties, see AutomationRuleCondition objects
}
]
}
conditionType: 'PropertyArray'
}
Pour PropertyArrayChanged, utilisez :
{
conditionProperties: {
arrayType: 'string'
changeType: 'string'
}
conditionType: 'PropertyArrayChanged'
}
Pour PropertyChanged, utilisez :
{
conditionProperties: {
changeType: 'string'
operator: 'string'
propertyName: 'string'
propertyValues: [
'string'
]
}
conditionType: 'PropertyChanged'
}
Objets AutomationRuleAction
Définissez la propriété actionType pour spécifier le type d’objet.
Pour addIncidentTask, utilisez :
{
actionConfiguration: {
description: 'string'
title: 'string'
}
actionType: 'AddIncidentTask'
}
Pour ModifyProperties, utilisez :
{
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'
}
Pour RunPlaybook, utilisez :
{
actionConfiguration: {
logicAppResourceId: 'string'
tenantId: 'string'
}
actionType: 'RunPlaybook'
}
Valeurs immobilières
Microsoft. SecurityInsights/Règles d’automatisation
| Name | Description | Value |
|---|---|---|
| etag | Etag de la ressource Azure | string |
| name | Nom de la ressource | chaîne (obligatoire) |
| properties | Propriétés de règle Automation | AutomationRuleProperties (obligatoire) |
| scope | Utilisez-la lors de la création d’une ressource dans une étendue différente de l’étendue de déploiement. | Définissez cette propriété sur le nom symbolique d’une ressource pour appliquer la ressource d’extension . |
AddIncidentTaskActionProperties
| Name | Description | Value |
|---|---|---|
| description | Description de la tâche. | string |
| title | Titre de la tâche. | chaîne (obligatoire) |
AutomationRuleAction
| Name | Description | Value |
|---|---|---|
| actionType | Défini sur « AddIncidentTask » pour le type AutomationRuleAddIncidentTaskAction. Défini sur « ModifyProperties » pour le type AutomationRuleModifyPropertiesAction. Défini sur « RunPlaybook » pour le type AutomationRuleRunPlaybookAction. | 'AddIncidentTask' 'ModifyProperties' 'RunPlaybook' (obligatoire) |
| order | int (obligatoire) |
AutomationRuleAddIncidentTaskAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | AddIncidentTaskActionProperties | |
| actionType | Type de l’action de règle Automation. | 'AddIncidentTask' (obligatoire) |
AutomationRuleBooleanCondition
| Name | Description | Value |
|---|---|---|
| innerConditions | AutomationRuleCondition[] | |
| operator | 'And' 'Or' |
AutomationRuleCondition
| Name | Description | Value |
|---|---|---|
| conditionType | Défini sur « Boolean » pour le type BooleanConditionProperties. Défini sur « Property » pour le type PropertyConditionProperties. Défini sur « PropertyArray » pour le type PropertyArrayConditionProperties. Défini sur « PropertyArrayChanged » pour le type PropertyArrayChangedConditionProperties. Affectez la valeur « PropertyChanged » pour le type PropertyChangedConditionProperties. | 'Boolean' 'Property' 'PropertyArray' 'PropertyArrayChanged' 'PropertyChanged' (obligatoire) |
AutomationRuleModifyPropertiesAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | IncidentPropertiesAction | |
| actionType | Type de l’action de règle Automation. | 'ModifyProperties' (obligatoire) |
AutomationRuleProperties
| Name | Description | Value |
|---|---|---|
| actions | Actions à exécuter lorsque la règle d’automatisation est déclenchée. | AutomationRuleAction[] (obligatoire) |
| displayName | Nom complet de la règle Automation. | string Constraints: Longueur maximale = 500 (obligatoire) |
| order | Ordre d’exécution de la règle d’automatisation. | int Constraints: Valeur minimale = 1 Valeur maximale = 1 000 (obligatoire) |
| triggeringLogic | Décrit la logique de déclenchement de règle d’automatisation. | AutomationRuleTriggeringLogic (obligatoire) |
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 | Propriété à évaluer dans une condition de propriété de règle Automation. | '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 | Type de l’action de règle Automation. | 'RunPlaybook' (obligatoire) |
AutomationRuleTriggeringLogic
| Name | Description | Value |
|---|---|---|
| conditions | Conditions à évaluer pour déterminer si la règle d’automatisation doit être déclenchée sur un objet donné. | AutomationRuleCondition[] |
| expirationTimeUtc | Détermine quand la règle d’automatisation doit expirer et être désactivée automatiquement. | string |
| isEnabled | Détermine si la règle d’automatisation est activée ou désactivée. | bool (obligatoire) |
| triggersOn | 'Alerts' « Incidents » (obligatoire) |
|
| triggersWhen | 'Created' 'Mise à jour' (obligatoire) |
BooleanConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRuleBooleanCondition | |
| conditionType | 'Boolean' (obligatoire) |
IncidentLabel
| Name | Description | Value |
|---|---|---|
| labelName | Nom de l’étiquette | chaîne (obligatoire) |
IncidentOwnerInfo
| Name | Description | Value |
|---|---|---|
| assignedTo | Nom de l’utilisateur auquel l’incident est affecté. | string |
| E-mail de l’utilisateur auquel l’incident est affecté. | string | |
| objectId | ID d’objet de l’utilisateur auquel l’incident est affecté. | string Constraints: Longueur minimale = 36 Longueur maximale = 36 Modèle = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| ownerType | Type du propriétaire auquel l’incident est affecté. | 'Group' 'Unknown' 'User' |
| userPrincipalName | Nom d’utilisateur principal de l’utilisateur auquel l’incident est affecté. | string |
IncidentPropertiesAction
| Name | Description | Value |
|---|---|---|
| classification | La raison pour laquelle l’incident a été fermé | 'BenignPositive' 'FalsePositive' 'TruePositive' 'Undetermined' |
| classificationComment | Décrit la raison pour laquelle l’incident a été fermé. | string |
| classificationReason | La raison de classification avec laquelle l’incident a été fermé | 'InaccurateData' 'IncorrectAlertLogic' 'SuspiciousActivity' 'SuspiciousButExpected' |
| labels | Liste des étiquettes à ajouter à l’incident. | IncidentLabel[] |
| owner | Informations sur l’utilisateur auquel un incident est affecté | IncidentOwnerInfo |
| severity | Gravité de l’incident | 'High' 'Informational' 'Low' 'Medium' |
| status | État de l’incident | 'Active' 'Closed' 'New' |
PlaybookActionProperties
| Name | Description | Value |
|---|---|---|
| logicAppResourceId | ID de ressource de la ressource playbook. | string |
| tenantId | ID de locataire de la ressource playbook. | string Constraints: Longueur minimale = 36 Longueur maximale = 36 Modèle = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
PropertyArrayChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayChangedValuesCondition | |
| conditionType | 'PropertyArrayChanged' (obligatoire) |
PropertyArrayConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayValuesCondition | |
| conditionType | 'PropertyArray' (obligatoire) |
PropertyChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesChangedCondition | |
| conditionType | 'PropertyChanged' (obligatoire) |
PropertyConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesCondition | |
| conditionType | 'Property' (obligatoire) |
Définition de ressource de modèle ARM
Le type de ressource AutomationRules peut être déployé avec des opérations qui ciblent :
Pour obtenir la liste des propriétés modifiées dans chaque version de l’API, consultez journal des modifications.
Exemples d’utilisation
Modèles de démarrage rapide Azure
Les modèles suivants Azure Quickstart déployent ce type de ressource.
| Template | Description |
|---|---|
|
Crée une nouvelle règle d’automatisation Microsoft Sentinel |
Cet exemple montre comment créer une nouvelle règle d’automatisation dans Microsoft Sentinel |
Format de la ressource
Pour créer un Microsoft. Ressource SecurityInsights/automationRules, ajoutez le JSON suivant à votre modèle.
{
"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"
}
}
}
Objets AutomationRuleCondition
Définissez la propriété conditionType
Pour booléen, utilisez :
{
"conditionProperties": {
"innerConditions": [ {
"conditionType": "string"
// For remaining properties, see AutomationRuleCondition objects
} ],
"operator": "string"
},
"conditionType": "Boolean"
}
Pour propriété, utilisez :
{
"conditionProperties": {
"operator": "string",
"propertyName": "string",
"propertyValues": [ "string" ]
},
"conditionType": "Property"
}
Pour PropertyArray, utilisez :
{
"conditionProperties": {
"arrayConditionType": "string",
"arrayType": "string",
"itemConditions": [ {
"conditionType": "string"
// For remaining properties, see AutomationRuleCondition objects
} ]
},
"conditionType": "PropertyArray"
}
Pour PropertyArrayChanged, utilisez :
{
"conditionProperties": {
"arrayType": "string",
"changeType": "string"
},
"conditionType": "PropertyArrayChanged"
}
Pour PropertyChanged, utilisez :
{
"conditionProperties": {
"changeType": "string",
"operator": "string",
"propertyName": "string",
"propertyValues": [ "string" ]
},
"conditionType": "PropertyChanged"
}
Objets AutomationRuleAction
Définissez la propriété actionType pour spécifier le type d’objet.
Pour addIncidentTask, utilisez :
{
"actionConfiguration": {
"description": "string",
"title": "string"
},
"actionType": "AddIncidentTask"
}
Pour ModifyProperties, utilisez :
{
"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"
}
Pour RunPlaybook, utilisez :
{
"actionConfiguration": {
"logicAppResourceId": "string",
"tenantId": "string"
},
"actionType": "RunPlaybook"
}
Valeurs immobilières
Microsoft. SecurityInsights/Règles d’automatisation
| Name | Description | Value |
|---|---|---|
| apiVersion | Version de l’API | '2022-12-01-preview' |
| etag | Etag de la ressource Azure | string |
| name | Nom de la ressource | chaîne (obligatoire) |
| properties | Propriétés de règle Automation | AutomationRuleProperties (obligatoire) |
| type | Type de ressource | « Microsoft. SecurityInsights/Règles d'automatisation |
AddIncidentTaskActionProperties
| Name | Description | Value |
|---|---|---|
| description | Description de la tâche. | string |
| title | Titre de la tâche. | chaîne (obligatoire) |
AutomationRuleAction
| Name | Description | Value |
|---|---|---|
| actionType | Défini sur « AddIncidentTask » pour le type AutomationRuleAddIncidentTaskAction. Défini sur « ModifyProperties » pour le type AutomationRuleModifyPropertiesAction. Défini sur « RunPlaybook » pour le type AutomationRuleRunPlaybookAction. | 'AddIncidentTask' 'ModifyProperties' 'RunPlaybook' (obligatoire) |
| order | int (obligatoire) |
AutomationRuleAddIncidentTaskAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | AddIncidentTaskActionProperties | |
| actionType | Type de l’action de règle Automation. | 'AddIncidentTask' (obligatoire) |
AutomationRuleBooleanCondition
| Name | Description | Value |
|---|---|---|
| innerConditions | AutomationRuleCondition[] | |
| operator | 'And' 'Or' |
AutomationRuleCondition
| Name | Description | Value |
|---|---|---|
| conditionType | Défini sur « Boolean » pour le type BooleanConditionProperties. Défini sur « Property » pour le type PropertyConditionProperties. Défini sur « PropertyArray » pour le type PropertyArrayConditionProperties. Défini sur « PropertyArrayChanged » pour le type PropertyArrayChangedConditionProperties. Affectez la valeur « PropertyChanged » pour le type PropertyChangedConditionProperties. | 'Boolean' 'Property' 'PropertyArray' 'PropertyArrayChanged' 'PropertyChanged' (obligatoire) |
AutomationRuleModifyPropertiesAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | IncidentPropertiesAction | |
| actionType | Type de l’action de règle Automation. | 'ModifyProperties' (obligatoire) |
AutomationRuleProperties
| Name | Description | Value |
|---|---|---|
| actions | Actions à exécuter lorsque la règle d’automatisation est déclenchée. | AutomationRuleAction[] (obligatoire) |
| displayName | Nom complet de la règle Automation. | string Constraints: Longueur maximale = 500 (obligatoire) |
| order | Ordre d’exécution de la règle d’automatisation. | int Constraints: Valeur minimale = 1 Valeur maximale = 1 000 (obligatoire) |
| triggeringLogic | Décrit la logique de déclenchement de règle d’automatisation. | AutomationRuleTriggeringLogic (obligatoire) |
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 | Propriété à évaluer dans une condition de propriété de règle Automation. | '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 | Type de l’action de règle Automation. | 'RunPlaybook' (obligatoire) |
AutomationRuleTriggeringLogic
| Name | Description | Value |
|---|---|---|
| conditions | Conditions à évaluer pour déterminer si la règle d’automatisation doit être déclenchée sur un objet donné. | AutomationRuleCondition[] |
| expirationTimeUtc | Détermine quand la règle d’automatisation doit expirer et être désactivée automatiquement. | string |
| isEnabled | Détermine si la règle d’automatisation est activée ou désactivée. | bool (obligatoire) |
| triggersOn | 'Alerts' « Incidents » (obligatoire) |
|
| triggersWhen | 'Created' 'Mise à jour' (obligatoire) |
BooleanConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRuleBooleanCondition | |
| conditionType | 'Boolean' (obligatoire) |
IncidentLabel
| Name | Description | Value |
|---|---|---|
| labelName | Nom de l’étiquette | chaîne (obligatoire) |
IncidentOwnerInfo
| Name | Description | Value |
|---|---|---|
| assignedTo | Nom de l’utilisateur auquel l’incident est affecté. | string |
| E-mail de l’utilisateur auquel l’incident est affecté. | string | |
| objectId | ID d’objet de l’utilisateur auquel l’incident est affecté. | string Constraints: Longueur minimale = 36 Longueur maximale = 36 Modèle = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| ownerType | Type du propriétaire auquel l’incident est affecté. | 'Group' 'Unknown' 'User' |
| userPrincipalName | Nom d’utilisateur principal de l’utilisateur auquel l’incident est affecté. | string |
IncidentPropertiesAction
| Name | Description | Value |
|---|---|---|
| classification | La raison pour laquelle l’incident a été fermé | 'BenignPositive' 'FalsePositive' 'TruePositive' 'Undetermined' |
| classificationComment | Décrit la raison pour laquelle l’incident a été fermé. | string |
| classificationReason | La raison de classification avec laquelle l’incident a été fermé | 'InaccurateData' 'IncorrectAlertLogic' 'SuspiciousActivity' 'SuspiciousButExpected' |
| labels | Liste des étiquettes à ajouter à l’incident. | IncidentLabel[] |
| owner | Informations sur l’utilisateur auquel un incident est affecté | IncidentOwnerInfo |
| severity | Gravité de l’incident | 'High' 'Informational' 'Low' 'Medium' |
| status | État de l’incident | 'Active' 'Closed' 'New' |
PlaybookActionProperties
| Name | Description | Value |
|---|---|---|
| logicAppResourceId | ID de ressource de la ressource playbook. | string |
| tenantId | ID de locataire de la ressource playbook. | string Constraints: Longueur minimale = 36 Longueur maximale = 36 Modèle = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
PropertyArrayChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayChangedValuesCondition | |
| conditionType | 'PropertyArrayChanged' (obligatoire) |
PropertyArrayConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayValuesCondition | |
| conditionType | 'PropertyArray' (obligatoire) |
PropertyChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesChangedCondition | |
| conditionType | 'PropertyChanged' (obligatoire) |
PropertyConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesCondition | |
| conditionType | 'Property' (obligatoire) |
Définition de ressource Terraform (fournisseur AzAPI)
Le type de ressource AutomationRules peut être déployé avec des opérations qui ciblent :
Pour obtenir la liste des propriétés modifiées dans chaque version de l’API, consultez journal des modifications.
Exemples d’utilisation
Échantillons Terraform
Exemple de base de déploiement de la règle d’automatisation Sentinel.
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]
}
Format de la ressource
Pour créer un Microsoft. Ressource SecurityInsights/automationRules, ajoutez la Terraform suivante à votre modèle.
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"
}
}
}
}
Objets AutomationRuleCondition
Définissez la propriété conditionType
Pour booléen, utilisez :
{
conditionProperties = {
innerConditions = [
{
conditionType = "string"
// For remaining properties, see AutomationRuleCondition objects
}
]
operator = "string"
}
conditionType = "Boolean"
}
Pour propriété, utilisez :
{
conditionProperties = {
operator = "string"
propertyName = "string"
propertyValues = [
"string"
]
}
conditionType = "Property"
}
Pour PropertyArray, utilisez :
{
conditionProperties = {
arrayConditionType = "string"
arrayType = "string"
itemConditions = [
{
conditionType = "string"
// For remaining properties, see AutomationRuleCondition objects
}
]
}
conditionType = "PropertyArray"
}
Pour PropertyArrayChanged, utilisez :
{
conditionProperties = {
arrayType = "string"
changeType = "string"
}
conditionType = "PropertyArrayChanged"
}
Pour PropertyChanged, utilisez :
{
conditionProperties = {
changeType = "string"
operator = "string"
propertyName = "string"
propertyValues = [
"string"
]
}
conditionType = "PropertyChanged"
}
Objets AutomationRuleAction
Définissez la propriété actionType pour spécifier le type d’objet.
Pour addIncidentTask, utilisez :
{
actionConfiguration = {
description = "string"
title = "string"
}
actionType = "AddIncidentTask"
}
Pour ModifyProperties, utilisez :
{
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"
}
Pour RunPlaybook, utilisez :
{
actionConfiguration = {
logicAppResourceId = "string"
tenantId = "string"
}
actionType = "RunPlaybook"
}
Valeurs immobilières
Microsoft. SecurityInsights/Règles d’automatisation
| Name | Description | Value |
|---|---|---|
| etag | Etag de la ressource Azure | string |
| name | Nom de la ressource | chaîne (obligatoire) |
| parent_id | ID de la ressource à laquelle appliquer cette ressource d’extension. | chaîne (obligatoire) |
| properties | Propriétés de règle Automation | AutomationRuleProperties (obligatoire) |
| type | Type de ressource | « Microsoft. SecurityInsights/automationRules@2022-12-01-aperçu » |
AddIncidentTaskActionProperties
| Name | Description | Value |
|---|---|---|
| description | Description de la tâche. | string |
| title | Titre de la tâche. | chaîne (obligatoire) |
AutomationRuleAction
| Name | Description | Value |
|---|---|---|
| actionType | Défini sur « AddIncidentTask » pour le type AutomationRuleAddIncidentTaskAction. Défini sur « ModifyProperties » pour le type AutomationRuleModifyPropertiesAction. Défini sur « RunPlaybook » pour le type AutomationRuleRunPlaybookAction. | 'AddIncidentTask' 'ModifyProperties' 'RunPlaybook' (obligatoire) |
| order | int (obligatoire) |
AutomationRuleAddIncidentTaskAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | AddIncidentTaskActionProperties | |
| actionType | Type de l’action de règle Automation. | 'AddIncidentTask' (obligatoire) |
AutomationRuleBooleanCondition
| Name | Description | Value |
|---|---|---|
| innerConditions | AutomationRuleCondition[] | |
| operator | 'And' 'Or' |
AutomationRuleCondition
| Name | Description | Value |
|---|---|---|
| conditionType | Défini sur « Boolean » pour le type BooleanConditionProperties. Défini sur « Property » pour le type PropertyConditionProperties. Défini sur « PropertyArray » pour le type PropertyArrayConditionProperties. Défini sur « PropertyArrayChanged » pour le type PropertyArrayChangedConditionProperties. Affectez la valeur « PropertyChanged » pour le type PropertyChangedConditionProperties. | 'Boolean' 'Property' 'PropertyArray' 'PropertyArrayChanged' 'PropertyChanged' (obligatoire) |
AutomationRuleModifyPropertiesAction
| Name | Description | Value |
|---|---|---|
| actionConfiguration | IncidentPropertiesAction | |
| actionType | Type de l’action de règle Automation. | 'ModifyProperties' (obligatoire) |
AutomationRuleProperties
| Name | Description | Value |
|---|---|---|
| actions | Actions à exécuter lorsque la règle d’automatisation est déclenchée. | AutomationRuleAction[] (obligatoire) |
| displayName | Nom complet de la règle Automation. | string Constraints: Longueur maximale = 500 (obligatoire) |
| order | Ordre d’exécution de la règle d’automatisation. | int Constraints: Valeur minimale = 1 Valeur maximale = 1 000 (obligatoire) |
| triggeringLogic | Décrit la logique de déclenchement de règle d’automatisation. | AutomationRuleTriggeringLogic (obligatoire) |
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 | Propriété à évaluer dans une condition de propriété de règle Automation. | '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 | Type de l’action de règle Automation. | 'RunPlaybook' (obligatoire) |
AutomationRuleTriggeringLogic
| Name | Description | Value |
|---|---|---|
| conditions | Conditions à évaluer pour déterminer si la règle d’automatisation doit être déclenchée sur un objet donné. | AutomationRuleCondition[] |
| expirationTimeUtc | Détermine quand la règle d’automatisation doit expirer et être désactivée automatiquement. | string |
| isEnabled | Détermine si la règle d’automatisation est activée ou désactivée. | bool (obligatoire) |
| triggersOn | 'Alerts' « Incidents » (obligatoire) |
|
| triggersWhen | 'Created' 'Mise à jour' (obligatoire) |
BooleanConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRuleBooleanCondition | |
| conditionType | 'Boolean' (obligatoire) |
IncidentLabel
| Name | Description | Value |
|---|---|---|
| labelName | Nom de l’étiquette | chaîne (obligatoire) |
IncidentOwnerInfo
| Name | Description | Value |
|---|---|---|
| assignedTo | Nom de l’utilisateur auquel l’incident est affecté. | string |
| E-mail de l’utilisateur auquel l’incident est affecté. | string | |
| objectId | ID d’objet de l’utilisateur auquel l’incident est affecté. | string Constraints: Longueur minimale = 36 Longueur maximale = 36 Modèle = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| ownerType | Type du propriétaire auquel l’incident est affecté. | 'Group' 'Unknown' 'User' |
| userPrincipalName | Nom d’utilisateur principal de l’utilisateur auquel l’incident est affecté. | string |
IncidentPropertiesAction
| Name | Description | Value |
|---|---|---|
| classification | La raison pour laquelle l’incident a été fermé | 'BenignPositive' 'FalsePositive' 'TruePositive' 'Undetermined' |
| classificationComment | Décrit la raison pour laquelle l’incident a été fermé. | string |
| classificationReason | La raison de classification avec laquelle l’incident a été fermé | 'InaccurateData' 'IncorrectAlertLogic' 'SuspiciousActivity' 'SuspiciousButExpected' |
| labels | Liste des étiquettes à ajouter à l’incident. | IncidentLabel[] |
| owner | Informations sur l’utilisateur auquel un incident est affecté | IncidentOwnerInfo |
| severity | Gravité de l’incident | 'High' 'Informational' 'Low' 'Medium' |
| status | État de l’incident | 'Active' 'Closed' 'New' |
PlaybookActionProperties
| Name | Description | Value |
|---|---|---|
| logicAppResourceId | ID de ressource de la ressource playbook. | string |
| tenantId | ID de locataire de la ressource playbook. | string Constraints: Longueur minimale = 36 Longueur maximale = 36 Modèle = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
PropertyArrayChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayChangedValuesCondition | |
| conditionType | 'PropertyArrayChanged' (obligatoire) |
PropertyArrayConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyArrayValuesCondition | |
| conditionType | 'PropertyArray' (obligatoire) |
PropertyChangedConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesChangedCondition | |
| conditionType | 'PropertyChanged' (obligatoire) |
PropertyConditionProperties
| Name | Description | Value |
|---|---|---|
| conditionProperties | AutomationRulePropertyValuesCondition | |
| conditionType | 'Property' (obligatoire) |