1. Packages
  2. Azure Classic
  3. API Docs
  4. sentinel
  5. AlertRuleAnomalyBuiltIn

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

azure.sentinel.AlertRuleAnomalyBuiltIn

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
        name: "example-law",
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        sku: "PerGB2018",
    });
    const exampleLogAnalyticsWorkspaceOnboarding = new azure.sentinel.LogAnalyticsWorkspaceOnboarding("example", {
        workspaceId: exampleAnalyticsWorkspace.id,
        customerManagedKeyEnabled: false,
    });
    const example = azure.sentinel.getAlertRuleAnomalyOutput({
        logAnalyticsWorkspaceId: exampleLogAnalyticsWorkspaceOnboarding.workspaceId,
        displayName: "Potential data staging",
    });
    const exampleAlertRuleAnomalyBuiltIn = new azure.sentinel.AlertRuleAnomalyBuiltIn("example", {
        displayName: "Potential data staging",
        logAnalyticsWorkspaceId: exampleAnalyticsWorkspace.id,
        mode: "Production",
        enabled: false,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("example",
        name="example-law",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        sku="PerGB2018")
    example_log_analytics_workspace_onboarding = azure.sentinel.LogAnalyticsWorkspaceOnboarding("example",
        workspace_id=example_analytics_workspace.id,
        customer_managed_key_enabled=False)
    example = azure.sentinel.get_alert_rule_anomaly_output(log_analytics_workspace_id=example_log_analytics_workspace_onboarding.workspace_id,
        display_name="Potential data staging")
    example_alert_rule_anomaly_built_in = azure.sentinel.AlertRuleAnomalyBuiltIn("example",
        display_name="Potential data staging",
        log_analytics_workspace_id=example_analytics_workspace.id,
        mode="Production",
        enabled=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/sentinel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
    			Name:              pulumi.String("example-law"),
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			Sku:               pulumi.String("PerGB2018"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleLogAnalyticsWorkspaceOnboarding, err := sentinel.NewLogAnalyticsWorkspaceOnboarding(ctx, "example", &sentinel.LogAnalyticsWorkspaceOnboardingArgs{
    			WorkspaceId:               exampleAnalyticsWorkspace.ID(),
    			CustomerManagedKeyEnabled: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		_ = sentinel.GetAlertRuleAnomalyOutput(ctx, sentinel.GetAlertRuleAnomalyOutputArgs{
    			LogAnalyticsWorkspaceId: exampleLogAnalyticsWorkspaceOnboarding.WorkspaceId,
    			DisplayName:             pulumi.String("Potential data staging"),
    		}, nil)
    		_, err = sentinel.NewAlertRuleAnomalyBuiltIn(ctx, "example", &sentinel.AlertRuleAnomalyBuiltInArgs{
    			DisplayName:             pulumi.String("Potential data staging"),
    			LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(),
    			Mode:                    pulumi.String("Production"),
    			Enabled:                 pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("example", new()
        {
            Name = "example-law",
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            Sku = "PerGB2018",
        });
    
        var exampleLogAnalyticsWorkspaceOnboarding = new Azure.Sentinel.LogAnalyticsWorkspaceOnboarding("example", new()
        {
            WorkspaceId = exampleAnalyticsWorkspace.Id,
            CustomerManagedKeyEnabled = false,
        });
    
        var example = Azure.Sentinel.GetAlertRuleAnomaly.Invoke(new()
        {
            LogAnalyticsWorkspaceId = exampleLogAnalyticsWorkspaceOnboarding.WorkspaceId,
            DisplayName = "Potential data staging",
        });
    
        var exampleAlertRuleAnomalyBuiltIn = new Azure.Sentinel.AlertRuleAnomalyBuiltIn("example", new()
        {
            DisplayName = "Potential data staging",
            LogAnalyticsWorkspaceId = exampleAnalyticsWorkspace.Id,
            Mode = "Production",
            Enabled = false,
        });
    
    });
    
    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.AlertRuleAnomalyBuiltIn;
    import com.pulumi.azure.sentinel.AlertRuleAnomalyBuiltInArgs;
    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()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
                .name("example-law")
                .location(exampleResourceGroup.location())
                .resourceGroupName(exampleResourceGroup.name())
                .sku("PerGB2018")
                .build());
    
            var exampleLogAnalyticsWorkspaceOnboarding = new LogAnalyticsWorkspaceOnboarding("exampleLogAnalyticsWorkspaceOnboarding", LogAnalyticsWorkspaceOnboardingArgs.builder()
                .workspaceId(exampleAnalyticsWorkspace.id())
                .customerManagedKeyEnabled(false)
                .build());
    
            final var example = SentinelFunctions.getAlertRuleAnomaly(GetAlertRuleAnomalyArgs.builder()
                .logAnalyticsWorkspaceId(exampleLogAnalyticsWorkspaceOnboarding.workspaceId())
                .displayName("Potential data staging")
                .build());
    
            var exampleAlertRuleAnomalyBuiltIn = new AlertRuleAnomalyBuiltIn("exampleAlertRuleAnomalyBuiltIn", AlertRuleAnomalyBuiltInArgs.builder()
                .displayName("Potential data staging")
                .logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
                .mode("Production")
                .enabled(false)
                .build());
    
        }
    }
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        name: example
        properties:
          name: example-resources
          location: West Europe
      exampleAnalyticsWorkspace:
        type: azure:operationalinsights:AnalyticsWorkspace
        name: example
        properties:
          name: example-law
          location: ${exampleResourceGroup.location}
          resourceGroupName: ${exampleResourceGroup.name}
          sku: PerGB2018
      exampleLogAnalyticsWorkspaceOnboarding:
        type: azure:sentinel:LogAnalyticsWorkspaceOnboarding
        name: example
        properties:
          workspaceId: ${exampleAnalyticsWorkspace.id}
          customerManagedKeyEnabled: false
      exampleAlertRuleAnomalyBuiltIn:
        type: azure:sentinel:AlertRuleAnomalyBuiltIn
        name: example
        properties:
          displayName: Potential data staging
          logAnalyticsWorkspaceId: ${exampleAnalyticsWorkspace.id}
          mode: Production
          enabled: false
    variables:
      example:
        fn::invoke:
          Function: azure:sentinel:getAlertRuleAnomaly
          Arguments:
            logAnalyticsWorkspaceId: ${exampleLogAnalyticsWorkspaceOnboarding.workspaceId}
            displayName: Potential data staging
    

    Create AlertRuleAnomalyBuiltIn Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AlertRuleAnomalyBuiltIn(name: string, args: AlertRuleAnomalyBuiltInArgs, opts?: CustomResourceOptions);
    @overload
    def AlertRuleAnomalyBuiltIn(resource_name: str,
                                args: AlertRuleAnomalyBuiltInArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlertRuleAnomalyBuiltIn(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                enabled: Optional[bool] = None,
                                log_analytics_workspace_id: Optional[str] = None,
                                mode: Optional[str] = None,
                                display_name: Optional[str] = None,
                                name: Optional[str] = None)
    func NewAlertRuleAnomalyBuiltIn(ctx *Context, name string, args AlertRuleAnomalyBuiltInArgs, opts ...ResourceOption) (*AlertRuleAnomalyBuiltIn, error)
    public AlertRuleAnomalyBuiltIn(string name, AlertRuleAnomalyBuiltInArgs args, CustomResourceOptions? opts = null)
    public AlertRuleAnomalyBuiltIn(String name, AlertRuleAnomalyBuiltInArgs args)
    public AlertRuleAnomalyBuiltIn(String name, AlertRuleAnomalyBuiltInArgs args, CustomResourceOptions options)
    
    type: azure:sentinel:AlertRuleAnomalyBuiltIn
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AlertRuleAnomalyBuiltInArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AlertRuleAnomalyBuiltInArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AlertRuleAnomalyBuiltInArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertRuleAnomalyBuiltInArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertRuleAnomalyBuiltInArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var alertRuleAnomalyBuiltInResource = new Azure.Sentinel.AlertRuleAnomalyBuiltIn("alertRuleAnomalyBuiltInResource", new()
    {
        Enabled = false,
        LogAnalyticsWorkspaceId = "string",
        Mode = "string",
        DisplayName = "string",
        Name = "string",
    });
    
    example, err := sentinel.NewAlertRuleAnomalyBuiltIn(ctx, "alertRuleAnomalyBuiltInResource", &sentinel.AlertRuleAnomalyBuiltInArgs{
    	Enabled:                 pulumi.Bool(false),
    	LogAnalyticsWorkspaceId: pulumi.String("string"),
    	Mode:                    pulumi.String("string"),
    	DisplayName:             pulumi.String("string"),
    	Name:                    pulumi.String("string"),
    })
    
    var alertRuleAnomalyBuiltInResource = new AlertRuleAnomalyBuiltIn("alertRuleAnomalyBuiltInResource", AlertRuleAnomalyBuiltInArgs.builder()
        .enabled(false)
        .logAnalyticsWorkspaceId("string")
        .mode("string")
        .displayName("string")
        .name("string")
        .build());
    
    alert_rule_anomaly_built_in_resource = azure.sentinel.AlertRuleAnomalyBuiltIn("alertRuleAnomalyBuiltInResource",
        enabled=False,
        log_analytics_workspace_id="string",
        mode="string",
        display_name="string",
        name="string")
    
    const alertRuleAnomalyBuiltInResource = new azure.sentinel.AlertRuleAnomalyBuiltIn("alertRuleAnomalyBuiltInResource", {
        enabled: false,
        logAnalyticsWorkspaceId: "string",
        mode: "string",
        displayName: "string",
        name: "string",
    });
    
    type: azure:sentinel:AlertRuleAnomalyBuiltIn
    properties:
        displayName: string
        enabled: false
        logAnalyticsWorkspaceId: string
        mode: string
        name: string
    

    AlertRuleAnomalyBuiltIn Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AlertRuleAnomalyBuiltIn resource accepts the following input properties:

    Enabled bool
    Should the Built-in Anomaly Alert Rule be enabled?
    LogAnalyticsWorkspaceId string
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    Mode string
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    DisplayName string

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    Name string
    The Name of the built-in Anomaly Alert Rule.
    Enabled bool
    Should the Built-in Anomaly Alert Rule be enabled?
    LogAnalyticsWorkspaceId string
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    Mode string
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    DisplayName string

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    Name string
    The Name of the built-in Anomaly Alert Rule.
    enabled Boolean
    Should the Built-in Anomaly Alert Rule be enabled?
    logAnalyticsWorkspaceId String
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    mode String
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    displayName String

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    name String
    The Name of the built-in Anomaly Alert Rule.
    enabled boolean
    Should the Built-in Anomaly Alert Rule be enabled?
    logAnalyticsWorkspaceId string
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    mode string
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    displayName string

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    name string
    The Name of the built-in Anomaly Alert Rule.
    enabled bool
    Should the Built-in Anomaly Alert Rule be enabled?
    log_analytics_workspace_id str
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    mode str
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    display_name str

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    name str
    The Name of the built-in Anomaly Alert Rule.
    enabled Boolean
    Should the Built-in Anomaly Alert Rule be enabled?
    logAnalyticsWorkspaceId String
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    mode String
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    displayName String

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    name String
    The Name of the built-in Anomaly Alert Rule.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AlertRuleAnomalyBuiltIn resource produces the following output properties:

    AnomalySettingsVersion int
    The version of the Anomaly Security ML Analytics Settings.
    AnomalyVersion string
    The anomaly version of the Anomaly Alert Rule.
    Description string
    The description of the threshold observation.
    Frequency string
    The frequency the Anomaly Alert Rule will be run.
    Id string
    The provider-assigned unique ID for this managed resource.
    MultiSelectObservations List<AlertRuleAnomalyBuiltInMultiSelectObservation>
    A list of multi_select_observation blocks as defined below.
    PrioritizedExcludeObservations List<AlertRuleAnomalyBuiltInPrioritizedExcludeObservation>
    A list of prioritized_exclude_observation blocks as defined below.
    RequiredDataConnectors List<AlertRuleAnomalyBuiltInRequiredDataConnector>
    A required_data_connector block as defined below.
    SettingsDefinitionId string
    The ID of the anomaly settings definition Id.
    SingleSelectObservations List<AlertRuleAnomalyBuiltInSingleSelectObservation>
    A list of single_select_observation blocks as defined below.
    Tactics List<string>
    A list of categories of attacks by which to classify the rule.
    Techniques List<string>
    A list of techniques of attacks by which to classify the rule.
    ThresholdObservations List<AlertRuleAnomalyBuiltInThresholdObservation>
    A list of threshold_observation blocks as defined below.
    AnomalySettingsVersion int
    The version of the Anomaly Security ML Analytics Settings.
    AnomalyVersion string
    The anomaly version of the Anomaly Alert Rule.
    Description string
    The description of the threshold observation.
    Frequency string
    The frequency the Anomaly Alert Rule will be run.
    Id string
    The provider-assigned unique ID for this managed resource.
    MultiSelectObservations []AlertRuleAnomalyBuiltInMultiSelectObservation
    A list of multi_select_observation blocks as defined below.
    PrioritizedExcludeObservations []AlertRuleAnomalyBuiltInPrioritizedExcludeObservation
    A list of prioritized_exclude_observation blocks as defined below.
    RequiredDataConnectors []AlertRuleAnomalyBuiltInRequiredDataConnector
    A required_data_connector block as defined below.
    SettingsDefinitionId string
    The ID of the anomaly settings definition Id.
    SingleSelectObservations []AlertRuleAnomalyBuiltInSingleSelectObservation
    A list of single_select_observation blocks as defined below.
    Tactics []string
    A list of categories of attacks by which to classify the rule.
    Techniques []string
    A list of techniques of attacks by which to classify the rule.
    ThresholdObservations []AlertRuleAnomalyBuiltInThresholdObservation
    A list of threshold_observation blocks as defined below.
    anomalySettingsVersion Integer
    The version of the Anomaly Security ML Analytics Settings.
    anomalyVersion String
    The anomaly version of the Anomaly Alert Rule.
    description String
    The description of the threshold observation.
    frequency String
    The frequency the Anomaly Alert Rule will be run.
    id String
    The provider-assigned unique ID for this managed resource.
    multiSelectObservations List<AlertRuleAnomalyBuiltInMultiSelectObservation>
    A list of multi_select_observation blocks as defined below.
    prioritizedExcludeObservations List<AlertRuleAnomalyBuiltInPrioritizedExcludeObservation>
    A list of prioritized_exclude_observation blocks as defined below.
    requiredDataConnectors List<AlertRuleAnomalyBuiltInRequiredDataConnector>
    A required_data_connector block as defined below.
    settingsDefinitionId String
    The ID of the anomaly settings definition Id.
    singleSelectObservations List<AlertRuleAnomalyBuiltInSingleSelectObservation>
    A list of single_select_observation blocks as defined below.
    tactics List<String>
    A list of categories of attacks by which to classify the rule.
    techniques List<String>
    A list of techniques of attacks by which to classify the rule.
    thresholdObservations List<AlertRuleAnomalyBuiltInThresholdObservation>
    A list of threshold_observation blocks as defined below.
    anomalySettingsVersion number
    The version of the Anomaly Security ML Analytics Settings.
    anomalyVersion string
    The anomaly version of the Anomaly Alert Rule.
    description string
    The description of the threshold observation.
    frequency string
    The frequency the Anomaly Alert Rule will be run.
    id string
    The provider-assigned unique ID for this managed resource.
    multiSelectObservations AlertRuleAnomalyBuiltInMultiSelectObservation[]
    A list of multi_select_observation blocks as defined below.
    prioritizedExcludeObservations AlertRuleAnomalyBuiltInPrioritizedExcludeObservation[]
    A list of prioritized_exclude_observation blocks as defined below.
    requiredDataConnectors AlertRuleAnomalyBuiltInRequiredDataConnector[]
    A required_data_connector block as defined below.
    settingsDefinitionId string
    The ID of the anomaly settings definition Id.
    singleSelectObservations AlertRuleAnomalyBuiltInSingleSelectObservation[]
    A list of single_select_observation blocks as defined below.
    tactics string[]
    A list of categories of attacks by which to classify the rule.
    techniques string[]
    A list of techniques of attacks by which to classify the rule.
    thresholdObservations AlertRuleAnomalyBuiltInThresholdObservation[]
    A list of threshold_observation blocks as defined below.
    anomaly_settings_version int
    The version of the Anomaly Security ML Analytics Settings.
    anomaly_version str
    The anomaly version of the Anomaly Alert Rule.
    description str
    The description of the threshold observation.
    frequency str
    The frequency the Anomaly Alert Rule will be run.
    id str
    The provider-assigned unique ID for this managed resource.
    multi_select_observations Sequence[AlertRuleAnomalyBuiltInMultiSelectObservation]
    A list of multi_select_observation blocks as defined below.
    prioritized_exclude_observations Sequence[AlertRuleAnomalyBuiltInPrioritizedExcludeObservation]
    A list of prioritized_exclude_observation blocks as defined below.
    required_data_connectors Sequence[AlertRuleAnomalyBuiltInRequiredDataConnector]
    A required_data_connector block as defined below.
    settings_definition_id str
    The ID of the anomaly settings definition Id.
    single_select_observations Sequence[AlertRuleAnomalyBuiltInSingleSelectObservation]
    A list of single_select_observation blocks as defined below.
    tactics Sequence[str]
    A list of categories of attacks by which to classify the rule.
    techniques Sequence[str]
    A list of techniques of attacks by which to classify the rule.
    threshold_observations Sequence[AlertRuleAnomalyBuiltInThresholdObservation]
    A list of threshold_observation blocks as defined below.
    anomalySettingsVersion Number
    The version of the Anomaly Security ML Analytics Settings.
    anomalyVersion String
    The anomaly version of the Anomaly Alert Rule.
    description String
    The description of the threshold observation.
    frequency String
    The frequency the Anomaly Alert Rule will be run.
    id String
    The provider-assigned unique ID for this managed resource.
    multiSelectObservations List<Property Map>
    A list of multi_select_observation blocks as defined below.
    prioritizedExcludeObservations List<Property Map>
    A list of prioritized_exclude_observation blocks as defined below.
    requiredDataConnectors List<Property Map>
    A required_data_connector block as defined below.
    settingsDefinitionId String
    The ID of the anomaly settings definition Id.
    singleSelectObservations List<Property Map>
    A list of single_select_observation blocks as defined below.
    tactics List<String>
    A list of categories of attacks by which to classify the rule.
    techniques List<String>
    A list of techniques of attacks by which to classify the rule.
    thresholdObservations List<Property Map>
    A list of threshold_observation blocks as defined below.

    Look up Existing AlertRuleAnomalyBuiltIn Resource

    Get an existing AlertRuleAnomalyBuiltIn resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AlertRuleAnomalyBuiltInState, opts?: CustomResourceOptions): AlertRuleAnomalyBuiltIn
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            anomaly_settings_version: Optional[int] = None,
            anomaly_version: Optional[str] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            enabled: Optional[bool] = None,
            frequency: Optional[str] = None,
            log_analytics_workspace_id: Optional[str] = None,
            mode: Optional[str] = None,
            multi_select_observations: Optional[Sequence[AlertRuleAnomalyBuiltInMultiSelectObservationArgs]] = None,
            name: Optional[str] = None,
            prioritized_exclude_observations: Optional[Sequence[AlertRuleAnomalyBuiltInPrioritizedExcludeObservationArgs]] = None,
            required_data_connectors: Optional[Sequence[AlertRuleAnomalyBuiltInRequiredDataConnectorArgs]] = None,
            settings_definition_id: Optional[str] = None,
            single_select_observations: Optional[Sequence[AlertRuleAnomalyBuiltInSingleSelectObservationArgs]] = None,
            tactics: Optional[Sequence[str]] = None,
            techniques: Optional[Sequence[str]] = None,
            threshold_observations: Optional[Sequence[AlertRuleAnomalyBuiltInThresholdObservationArgs]] = None) -> AlertRuleAnomalyBuiltIn
    func GetAlertRuleAnomalyBuiltIn(ctx *Context, name string, id IDInput, state *AlertRuleAnomalyBuiltInState, opts ...ResourceOption) (*AlertRuleAnomalyBuiltIn, error)
    public static AlertRuleAnomalyBuiltIn Get(string name, Input<string> id, AlertRuleAnomalyBuiltInState? state, CustomResourceOptions? opts = null)
    public static AlertRuleAnomalyBuiltIn get(String name, Output<String> id, AlertRuleAnomalyBuiltInState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AnomalySettingsVersion int
    The version of the Anomaly Security ML Analytics Settings.
    AnomalyVersion string
    The anomaly version of the Anomaly Alert Rule.
    Description string
    The description of the threshold observation.
    DisplayName string

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    Enabled bool
    Should the Built-in Anomaly Alert Rule be enabled?
    Frequency string
    The frequency the Anomaly Alert Rule will be run.
    LogAnalyticsWorkspaceId string
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    Mode string
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    MultiSelectObservations List<AlertRuleAnomalyBuiltInMultiSelectObservation>
    A list of multi_select_observation blocks as defined below.
    Name string
    The Name of the built-in Anomaly Alert Rule.
    PrioritizedExcludeObservations List<AlertRuleAnomalyBuiltInPrioritizedExcludeObservation>
    A list of prioritized_exclude_observation blocks as defined below.
    RequiredDataConnectors List<AlertRuleAnomalyBuiltInRequiredDataConnector>
    A required_data_connector block as defined below.
    SettingsDefinitionId string
    The ID of the anomaly settings definition Id.
    SingleSelectObservations List<AlertRuleAnomalyBuiltInSingleSelectObservation>
    A list of single_select_observation blocks as defined below.
    Tactics List<string>
    A list of categories of attacks by which to classify the rule.
    Techniques List<string>
    A list of techniques of attacks by which to classify the rule.
    ThresholdObservations List<AlertRuleAnomalyBuiltInThresholdObservation>
    A list of threshold_observation blocks as defined below.
    AnomalySettingsVersion int
    The version of the Anomaly Security ML Analytics Settings.
    AnomalyVersion string
    The anomaly version of the Anomaly Alert Rule.
    Description string
    The description of the threshold observation.
    DisplayName string

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    Enabled bool
    Should the Built-in Anomaly Alert Rule be enabled?
    Frequency string
    The frequency the Anomaly Alert Rule will be run.
    LogAnalyticsWorkspaceId string
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    Mode string
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    MultiSelectObservations []AlertRuleAnomalyBuiltInMultiSelectObservationArgs
    A list of multi_select_observation blocks as defined below.
    Name string
    The Name of the built-in Anomaly Alert Rule.
    PrioritizedExcludeObservations []AlertRuleAnomalyBuiltInPrioritizedExcludeObservationArgs
    A list of prioritized_exclude_observation blocks as defined below.
    RequiredDataConnectors []AlertRuleAnomalyBuiltInRequiredDataConnectorArgs
    A required_data_connector block as defined below.
    SettingsDefinitionId string
    The ID of the anomaly settings definition Id.
    SingleSelectObservations []AlertRuleAnomalyBuiltInSingleSelectObservationArgs
    A list of single_select_observation blocks as defined below.
    Tactics []string
    A list of categories of attacks by which to classify the rule.
    Techniques []string
    A list of techniques of attacks by which to classify the rule.
    ThresholdObservations []AlertRuleAnomalyBuiltInThresholdObservationArgs
    A list of threshold_observation blocks as defined below.
    anomalySettingsVersion Integer
    The version of the Anomaly Security ML Analytics Settings.
    anomalyVersion String
    The anomaly version of the Anomaly Alert Rule.
    description String
    The description of the threshold observation.
    displayName String

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    enabled Boolean
    Should the Built-in Anomaly Alert Rule be enabled?
    frequency String
    The frequency the Anomaly Alert Rule will be run.
    logAnalyticsWorkspaceId String
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    mode String
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    multiSelectObservations List<AlertRuleAnomalyBuiltInMultiSelectObservation>
    A list of multi_select_observation blocks as defined below.
    name String
    The Name of the built-in Anomaly Alert Rule.
    prioritizedExcludeObservations List<AlertRuleAnomalyBuiltInPrioritizedExcludeObservation>
    A list of prioritized_exclude_observation blocks as defined below.
    requiredDataConnectors List<AlertRuleAnomalyBuiltInRequiredDataConnector>
    A required_data_connector block as defined below.
    settingsDefinitionId String
    The ID of the anomaly settings definition Id.
    singleSelectObservations List<AlertRuleAnomalyBuiltInSingleSelectObservation>
    A list of single_select_observation blocks as defined below.
    tactics List<String>
    A list of categories of attacks by which to classify the rule.
    techniques List<String>
    A list of techniques of attacks by which to classify the rule.
    thresholdObservations List<AlertRuleAnomalyBuiltInThresholdObservation>
    A list of threshold_observation blocks as defined below.
    anomalySettingsVersion number
    The version of the Anomaly Security ML Analytics Settings.
    anomalyVersion string
    The anomaly version of the Anomaly Alert Rule.
    description string
    The description of the threshold observation.
    displayName string

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    enabled boolean
    Should the Built-in Anomaly Alert Rule be enabled?
    frequency string
    The frequency the Anomaly Alert Rule will be run.
    logAnalyticsWorkspaceId string
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    mode string
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    multiSelectObservations AlertRuleAnomalyBuiltInMultiSelectObservation[]
    A list of multi_select_observation blocks as defined below.
    name string
    The Name of the built-in Anomaly Alert Rule.
    prioritizedExcludeObservations AlertRuleAnomalyBuiltInPrioritizedExcludeObservation[]
    A list of prioritized_exclude_observation blocks as defined below.
    requiredDataConnectors AlertRuleAnomalyBuiltInRequiredDataConnector[]
    A required_data_connector block as defined below.
    settingsDefinitionId string
    The ID of the anomaly settings definition Id.
    singleSelectObservations AlertRuleAnomalyBuiltInSingleSelectObservation[]
    A list of single_select_observation blocks as defined below.
    tactics string[]
    A list of categories of attacks by which to classify the rule.
    techniques string[]
    A list of techniques of attacks by which to classify the rule.
    thresholdObservations AlertRuleAnomalyBuiltInThresholdObservation[]
    A list of threshold_observation blocks as defined below.
    anomaly_settings_version int
    The version of the Anomaly Security ML Analytics Settings.
    anomaly_version str
    The anomaly version of the Anomaly Alert Rule.
    description str
    The description of the threshold observation.
    display_name str

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    enabled bool
    Should the Built-in Anomaly Alert Rule be enabled?
    frequency str
    The frequency the Anomaly Alert Rule will be run.
    log_analytics_workspace_id str
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    mode str
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    multi_select_observations Sequence[AlertRuleAnomalyBuiltInMultiSelectObservationArgs]
    A list of multi_select_observation blocks as defined below.
    name str
    The Name of the built-in Anomaly Alert Rule.
    prioritized_exclude_observations Sequence[AlertRuleAnomalyBuiltInPrioritizedExcludeObservationArgs]
    A list of prioritized_exclude_observation blocks as defined below.
    required_data_connectors Sequence[AlertRuleAnomalyBuiltInRequiredDataConnectorArgs]
    A required_data_connector block as defined below.
    settings_definition_id str
    The ID of the anomaly settings definition Id.
    single_select_observations Sequence[AlertRuleAnomalyBuiltInSingleSelectObservationArgs]
    A list of single_select_observation blocks as defined below.
    tactics Sequence[str]
    A list of categories of attacks by which to classify the rule.
    techniques Sequence[str]
    A list of techniques of attacks by which to classify the rule.
    threshold_observations Sequence[AlertRuleAnomalyBuiltInThresholdObservationArgs]
    A list of threshold_observation blocks as defined below.
    anomalySettingsVersion Number
    The version of the Anomaly Security ML Analytics Settings.
    anomalyVersion String
    The anomaly version of the Anomaly Alert Rule.
    description String
    The description of the threshold observation.
    displayName String

    The Display Name of the built-in Anomaly Alert Rule.

    Note: One of name or display_name block must be specified.

    enabled Boolean
    Should the Built-in Anomaly Alert Rule be enabled?
    frequency String
    The frequency the Anomaly Alert Rule will be run.
    logAnalyticsWorkspaceId String
    The ID of the Log Analytics Workspace. Changing this forces a new Built-in Anomaly Alert Rule to be created.
    mode String
    mode of the Built-in Anomaly Alert Rule. Possible Values are Production and Flighting.
    multiSelectObservations List<Property Map>
    A list of multi_select_observation blocks as defined below.
    name String
    The Name of the built-in Anomaly Alert Rule.
    prioritizedExcludeObservations List<Property Map>
    A list of prioritized_exclude_observation blocks as defined below.
    requiredDataConnectors List<Property Map>
    A required_data_connector block as defined below.
    settingsDefinitionId String
    The ID of the anomaly settings definition Id.
    singleSelectObservations List<Property Map>
    A list of single_select_observation blocks as defined below.
    tactics List<String>
    A list of categories of attacks by which to classify the rule.
    techniques List<String>
    A list of techniques of attacks by which to classify the rule.
    thresholdObservations List<Property Map>
    A list of threshold_observation blocks as defined below.

    Supporting Types

    AlertRuleAnomalyBuiltInMultiSelectObservation, AlertRuleAnomalyBuiltInMultiSelectObservationArgs

    Description string
    The description of the threshold observation.
    Name string
    The Name of the built-in Anomaly Alert Rule.
    SupportedValues List<string>
    A list of supported values of the single select observation.
    Values List<string>
    A list of values of the single select observation.
    Description string
    The description of the threshold observation.
    Name string
    The Name of the built-in Anomaly Alert Rule.
    SupportedValues []string
    A list of supported values of the single select observation.
    Values []string
    A list of values of the single select observation.
    description String
    The description of the threshold observation.
    name String
    The Name of the built-in Anomaly Alert Rule.
    supportedValues List<String>
    A list of supported values of the single select observation.
    values List<String>
    A list of values of the single select observation.
    description string
    The description of the threshold observation.
    name string
    The Name of the built-in Anomaly Alert Rule.
    supportedValues string[]
    A list of supported values of the single select observation.
    values string[]
    A list of values of the single select observation.
    description str
    The description of the threshold observation.
    name str
    The Name of the built-in Anomaly Alert Rule.
    supported_values Sequence[str]
    A list of supported values of the single select observation.
    values Sequence[str]
    A list of values of the single select observation.
    description String
    The description of the threshold observation.
    name String
    The Name of the built-in Anomaly Alert Rule.
    supportedValues List<String>
    A list of supported values of the single select observation.
    values List<String>
    A list of values of the single select observation.

    AlertRuleAnomalyBuiltInPrioritizedExcludeObservation, AlertRuleAnomalyBuiltInPrioritizedExcludeObservationArgs

    Description string
    The description of the threshold observation.
    Exclude string
    The excluded value per description.
    Name string
    The Name of the built-in Anomaly Alert Rule.
    Prioritize string
    The prioritized value per description.
    Description string
    The description of the threshold observation.
    Exclude string
    The excluded value per description.
    Name string
    The Name of the built-in Anomaly Alert Rule.
    Prioritize string
    The prioritized value per description.
    description String
    The description of the threshold observation.
    exclude String
    The excluded value per description.
    name String
    The Name of the built-in Anomaly Alert Rule.
    prioritize String
    The prioritized value per description.
    description string
    The description of the threshold observation.
    exclude string
    The excluded value per description.
    name string
    The Name of the built-in Anomaly Alert Rule.
    prioritize string
    The prioritized value per description.
    description str
    The description of the threshold observation.
    exclude str
    The excluded value per description.
    name str
    The Name of the built-in Anomaly Alert Rule.
    prioritize str
    The prioritized value per description.
    description String
    The description of the threshold observation.
    exclude String
    The excluded value per description.
    name String
    The Name of the built-in Anomaly Alert Rule.
    prioritize String
    The prioritized value per description.

    AlertRuleAnomalyBuiltInRequiredDataConnector, AlertRuleAnomalyBuiltInRequiredDataConnectorArgs

    ConnectorId string
    The ID of the required Data Connector.
    DataTypes List<string>
    A list of data types of the required Data Connector.
    ConnectorId string
    The ID of the required Data Connector.
    DataTypes []string
    A list of data types of the required Data Connector.
    connectorId String
    The ID of the required Data Connector.
    dataTypes List<String>
    A list of data types of the required Data Connector.
    connectorId string
    The ID of the required Data Connector.
    dataTypes string[]
    A list of data types of the required Data Connector.
    connector_id str
    The ID of the required Data Connector.
    data_types Sequence[str]
    A list of data types of the required Data Connector.
    connectorId String
    The ID of the required Data Connector.
    dataTypes List<String>
    A list of data types of the required Data Connector.

    AlertRuleAnomalyBuiltInSingleSelectObservation, AlertRuleAnomalyBuiltInSingleSelectObservationArgs

    Description string
    The description of the threshold observation.
    Name string
    The Name of the built-in Anomaly Alert Rule.
    SupportedValues List<string>
    A list of supported values of the single select observation.
    Value string
    The value of the threshold observation.
    Description string
    The description of the threshold observation.
    Name string
    The Name of the built-in Anomaly Alert Rule.
    SupportedValues []string
    A list of supported values of the single select observation.
    Value string
    The value of the threshold observation.
    description String
    The description of the threshold observation.
    name String
    The Name of the built-in Anomaly Alert Rule.
    supportedValues List<String>
    A list of supported values of the single select observation.
    value String
    The value of the threshold observation.
    description string
    The description of the threshold observation.
    name string
    The Name of the built-in Anomaly Alert Rule.
    supportedValues string[]
    A list of supported values of the single select observation.
    value string
    The value of the threshold observation.
    description str
    The description of the threshold observation.
    name str
    The Name of the built-in Anomaly Alert Rule.
    supported_values Sequence[str]
    A list of supported values of the single select observation.
    value str
    The value of the threshold observation.
    description String
    The description of the threshold observation.
    name String
    The Name of the built-in Anomaly Alert Rule.
    supportedValues List<String>
    A list of supported values of the single select observation.
    value String
    The value of the threshold observation.

    AlertRuleAnomalyBuiltInThresholdObservation, AlertRuleAnomalyBuiltInThresholdObservationArgs

    Description string
    The description of the threshold observation.
    Max string
    The max value of the threshold observation.
    Min string
    The min value of the threshold observation.
    Name string
    The Name of the built-in Anomaly Alert Rule.
    Value string
    The value of the threshold observation.
    Description string
    The description of the threshold observation.
    Max string
    The max value of the threshold observation.
    Min string
    The min value of the threshold observation.
    Name string
    The Name of the built-in Anomaly Alert Rule.
    Value string
    The value of the threshold observation.
    description String
    The description of the threshold observation.
    max String
    The max value of the threshold observation.
    min String
    The min value of the threshold observation.
    name String
    The Name of the built-in Anomaly Alert Rule.
    value String
    The value of the threshold observation.
    description string
    The description of the threshold observation.
    max string
    The max value of the threshold observation.
    min string
    The min value of the threshold observation.
    name string
    The Name of the built-in Anomaly Alert Rule.
    value string
    The value of the threshold observation.
    description str
    The description of the threshold observation.
    max str
    The max value of the threshold observation.
    min str
    The min value of the threshold observation.
    name str
    The Name of the built-in Anomaly Alert Rule.
    value str
    The value of the threshold observation.
    description String
    The description of the threshold observation.
    max String
    The max value of the threshold observation.
    min String
    The min value of the threshold observation.
    name String
    The Name of the built-in Anomaly Alert Rule.
    value String
    The value of the threshold observation.

    Import

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

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi