AlertRuleAnomalyDuplicate

class AlertRuleAnomalyDuplicate : KotlinCustomResource

Manages a Duplicated Anomaly Alert Rule.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.sentinel.LogAnalyticsWorkspaceOnboarding;
import com.pulumi.azure.sentinel.LogAnalyticsWorkspaceOnboardingArgs;
import com.pulumi.azure.sentinel.SentinelFunctions;
import com.pulumi.azure.sentinel.inputs.GetAlertRuleAnomalyArgs;
import com.pulumi.azure.sentinel.AlertRuleAnomalyDuplicate;
import com.pulumi.azure.sentinel.AlertRuleAnomalyDuplicateArgs;
import com.pulumi.azure.sentinel.inputs.AlertRuleAnomalyDuplicateThresholdObservationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("PerGB2018")
.build());
var exampleLogAnalyticsWorkspaceOnboarding = new LogAnalyticsWorkspaceOnboarding("exampleLogAnalyticsWorkspaceOnboarding", LogAnalyticsWorkspaceOnboardingArgs.builder()
.workspaceId(exampleAnalyticsWorkspace.id())
.customerManagedKeyEnabled(false)
.build());
final var exampleAlertRuleAnomaly = SentinelFunctions.getAlertRuleAnomaly(GetAlertRuleAnomalyArgs.builder()
.logAnalyticsWorkspaceId(exampleLogAnalyticsWorkspaceOnboarding.workspaceId())
.displayName("UEBA Anomalous Sign In")
.build());
var exampleAlertRuleAnomalyDuplicate = new AlertRuleAnomalyDuplicate("exampleAlertRuleAnomalyDuplicate", AlertRuleAnomalyDuplicateArgs.builder()
.displayName("example duplicated UEBA Anomalous Sign In")
.logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
.builtInRuleId(exampleAlertRuleAnomaly.applyValue(getAlertRuleAnomalyResult -> getAlertRuleAnomalyResult).applyValue(exampleAlertRuleAnomaly -> exampleAlertRuleAnomaly.applyValue(getAlertRuleAnomalyResult -> getAlertRuleAnomalyResult.id())))
.enabled(true)
.mode("Flighting")
.thresholdObservations(AlertRuleAnomalyDuplicateThresholdObservationArgs.builder()
.name("Anomaly score threshold")
.value("0.6")
.build())
.build());
}
}

Import

Built In Anomaly Alert Rules can be imported using the resource id, e.g.

$ pulumi import azure:sentinel/alertRuleAnomalyDuplicate:AlertRuleAnomalyDuplicate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings/setting1

Properties

Link copied to clipboard

The version of the Anomaly Security ML Analytics Settings.

Link copied to clipboard
val anomalyVersion: Output<String>

The anomaly version of the Anomaly Alert Rule.

Link copied to clipboard
val builtInRuleId: Output<String>

The ID of the built-in Anomaly Alert Rule. Changing this forces a new Duplicated Anomaly Alert Rule to be created.

Link copied to clipboard
val description: Output<String>

The description of the multi select observation.

Link copied to clipboard
val displayName: Output<String>

The Display Name of the built-in Anomaly Alert Rule. Changing this forces a new Duplicated Anomaly Alert Rule to be created.

Link copied to clipboard
val enabled: Output<Boolean>

Should the Duplicated Anomaly Alert Rule be enabled?

Link copied to clipboard
val frequency: Output<String>

The frequency the Anomaly Alert Rule will be run, such as "P1D".

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Whether the current settings of the Anomaly Alert Rule equals default settings.

Link copied to clipboard

The ID of the Log Analytics Workspace. Changing this forces a new Duplicated Anomaly Alert Rule to be created.

Link copied to clipboard
val mode: Output<String>

mode of the Duplicated Anomaly Alert Rule. Possible Values are Production and Flighting.

Link copied to clipboard

A list of multi_select_observation blocks as defined below.

Link copied to clipboard
val name: Output<String>

The name of the multi select observation.

Link copied to clipboard

A list of prioritized_exclude_observation blocks as defined below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A required_data_connector block as defined below.

Link copied to clipboard

The ID of the anomaly settings definition Id.

Link copied to clipboard

A list of single_select_observation blocks as defined below.

Link copied to clipboard
val tactics: Output<List<String>>

A list of categories of attacks by which to classify the rule.

Link copied to clipboard
val techniques: Output<List<String>>

A list of techniques of attacks by which to classify the rule.

Link copied to clipboard

A list of threshold_observation blocks as defined below.

Link copied to clipboard
val urn: Output<String>