1. Packages
  2. Azure Native
  3. API Docs
  4. securityinsights
  5. FusionAlertRule
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi

azure-native.securityinsights.FusionAlertRule

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi

    Represents Fusion alert rule. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-01-01

    Example Usage

    Creates or updates a Fusion alert rule.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var fusionAlertRule = new AzureNative.SecurityInsights.FusionAlertRule("fusionAlertRule", new()
        {
            AlertRuleTemplateName = "f71aba3d-28fb-450b-b192-4e76a83015c8",
            Enabled = true,
            Kind = "Fusion",
            ResourceGroupName = "myRg",
            RuleId = "myFirstFusionRule",
            WorkspaceName = "myWorkspace",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/securityinsights/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := securityinsights.NewFusionAlertRule(ctx, "fusionAlertRule", &securityinsights.FusionAlertRuleArgs{
    			AlertRuleTemplateName: pulumi.String("f71aba3d-28fb-450b-b192-4e76a83015c8"),
    			Enabled:               pulumi.Bool(true),
    			Kind:                  pulumi.String("Fusion"),
    			ResourceGroupName:     pulumi.String("myRg"),
    			RuleId:                pulumi.String("myFirstFusionRule"),
    			WorkspaceName:         pulumi.String("myWorkspace"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.securityinsights.FusionAlertRule;
    import com.pulumi.azurenative.securityinsights.FusionAlertRuleArgs;
    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 fusionAlertRule = new FusionAlertRule("fusionAlertRule", FusionAlertRuleArgs.builder()        
                .alertRuleTemplateName("f71aba3d-28fb-450b-b192-4e76a83015c8")
                .enabled(true)
                .kind("Fusion")
                .resourceGroupName("myRg")
                .ruleId("myFirstFusionRule")
                .workspaceName("myWorkspace")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    fusion_alert_rule = azure_native.securityinsights.FusionAlertRule("fusionAlertRule",
        alert_rule_template_name="f71aba3d-28fb-450b-b192-4e76a83015c8",
        enabled=True,
        kind="Fusion",
        resource_group_name="myRg",
        rule_id="myFirstFusionRule",
        workspace_name="myWorkspace")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const fusionAlertRule = new azure_native.securityinsights.FusionAlertRule("fusionAlertRule", {
        alertRuleTemplateName: "f71aba3d-28fb-450b-b192-4e76a83015c8",
        enabled: true,
        kind: "Fusion",
        resourceGroupName: "myRg",
        ruleId: "myFirstFusionRule",
        workspaceName: "myWorkspace",
    });
    
    resources:
      fusionAlertRule:
        type: azure-native:securityinsights:FusionAlertRule
        properties:
          alertRuleTemplateName: f71aba3d-28fb-450b-b192-4e76a83015c8
          enabled: true
          kind: Fusion
          resourceGroupName: myRg
          ruleId: myFirstFusionRule
          workspaceName: myWorkspace
    

    Creates or updates a MicrosoftSecurityIncidentCreation rule.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var fusionAlertRule = new AzureNative.SecurityInsights.FusionAlertRule("fusionAlertRule", new()
        {
            ResourceGroupName = "myRg",
            RuleId = "microsoftSecurityIncidentCreationRuleExample",
            WorkspaceName = "myWorkspace",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/securityinsights/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := securityinsights.NewFusionAlertRule(ctx, "fusionAlertRule", &securityinsights.FusionAlertRuleArgs{
    			ResourceGroupName: pulumi.String("myRg"),
    			RuleId:            pulumi.String("microsoftSecurityIncidentCreationRuleExample"),
    			WorkspaceName:     pulumi.String("myWorkspace"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.securityinsights.FusionAlertRule;
    import com.pulumi.azurenative.securityinsights.FusionAlertRuleArgs;
    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 fusionAlertRule = new FusionAlertRule("fusionAlertRule", FusionAlertRuleArgs.builder()        
                .resourceGroupName("myRg")
                .ruleId("microsoftSecurityIncidentCreationRuleExample")
                .workspaceName("myWorkspace")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    fusion_alert_rule = azure_native.securityinsights.FusionAlertRule("fusionAlertRule",
        resource_group_name="myRg",
        rule_id="microsoftSecurityIncidentCreationRuleExample",
        workspace_name="myWorkspace")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const fusionAlertRule = new azure_native.securityinsights.FusionAlertRule("fusionAlertRule", {
        resourceGroupName: "myRg",
        ruleId: "microsoftSecurityIncidentCreationRuleExample",
        workspaceName: "myWorkspace",
    });
    
    resources:
      fusionAlertRule:
        type: azure-native:securityinsights:FusionAlertRule
        properties:
          resourceGroupName: myRg
          ruleId: microsoftSecurityIncidentCreationRuleExample
          workspaceName: myWorkspace
    

    Creates or updates a Scheduled alert rule.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var fusionAlertRule = new AzureNative.SecurityInsights.FusionAlertRule("fusionAlertRule", new()
        {
            ResourceGroupName = "myRg",
            RuleId = "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
            WorkspaceName = "myWorkspace",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/securityinsights/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := securityinsights.NewFusionAlertRule(ctx, "fusionAlertRule", &securityinsights.FusionAlertRuleArgs{
    			ResourceGroupName: pulumi.String("myRg"),
    			RuleId:            pulumi.String("73e01a99-5cd7-4139-a149-9f2736ff2ab5"),
    			WorkspaceName:     pulumi.String("myWorkspace"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.securityinsights.FusionAlertRule;
    import com.pulumi.azurenative.securityinsights.FusionAlertRuleArgs;
    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 fusionAlertRule = new FusionAlertRule("fusionAlertRule", FusionAlertRuleArgs.builder()        
                .resourceGroupName("myRg")
                .ruleId("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
                .workspaceName("myWorkspace")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    fusion_alert_rule = azure_native.securityinsights.FusionAlertRule("fusionAlertRule",
        resource_group_name="myRg",
        rule_id="73e01a99-5cd7-4139-a149-9f2736ff2ab5",
        workspace_name="myWorkspace")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const fusionAlertRule = new azure_native.securityinsights.FusionAlertRule("fusionAlertRule", {
        resourceGroupName: "myRg",
        ruleId: "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
        workspaceName: "myWorkspace",
    });
    
    resources:
      fusionAlertRule:
        type: azure-native:securityinsights:FusionAlertRule
        properties:
          resourceGroupName: myRg
          ruleId: 73e01a99-5cd7-4139-a149-9f2736ff2ab5
          workspaceName: myWorkspace
    

    Create FusionAlertRule Resource

    new FusionAlertRule(name: string, args: FusionAlertRuleArgs, opts?: CustomResourceOptions);
    @overload
    def FusionAlertRule(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        alert_rule_template_name: Optional[str] = None,
                        enabled: Optional[bool] = None,
                        resource_group_name: Optional[str] = None,
                        rule_id: Optional[str] = None,
                        workspace_name: Optional[str] = None)
    @overload
    def FusionAlertRule(resource_name: str,
                        args: FusionAlertRuleArgs,
                        opts: Optional[ResourceOptions] = None)
    func NewFusionAlertRule(ctx *Context, name string, args FusionAlertRuleArgs, opts ...ResourceOption) (*FusionAlertRule, error)
    public FusionAlertRule(string name, FusionAlertRuleArgs args, CustomResourceOptions? opts = null)
    public FusionAlertRule(String name, FusionAlertRuleArgs args)
    public FusionAlertRule(String name, FusionAlertRuleArgs args, CustomResourceOptions options)
    
    type: azure-native:securityinsights:FusionAlertRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args FusionAlertRuleArgs
    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 FusionAlertRuleArgs
    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 FusionAlertRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FusionAlertRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FusionAlertRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    FusionAlertRule 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 FusionAlertRule resource accepts the following input properties:

    AlertRuleTemplateName string

    The Name of the alert rule template used to create this rule.

    Enabled bool

    Determines whether this alert rule is enabled or disabled.

    ResourceGroupName string

    The name of the resource group. The name is case insensitive.

    WorkspaceName string

    The name of the workspace.

    RuleId string

    Alert rule ID

    AlertRuleTemplateName string

    The Name of the alert rule template used to create this rule.

    Enabled bool

    Determines whether this alert rule is enabled or disabled.

    ResourceGroupName string

    The name of the resource group. The name is case insensitive.

    WorkspaceName string

    The name of the workspace.

    RuleId string

    Alert rule ID

    alertRuleTemplateName String

    The Name of the alert rule template used to create this rule.

    enabled Boolean

    Determines whether this alert rule is enabled or disabled.

    resourceGroupName String

    The name of the resource group. The name is case insensitive.

    workspaceName String

    The name of the workspace.

    ruleId String

    Alert rule ID

    alertRuleTemplateName string

    The Name of the alert rule template used to create this rule.

    enabled boolean

    Determines whether this alert rule is enabled or disabled.

    resourceGroupName string

    The name of the resource group. The name is case insensitive.

    workspaceName string

    The name of the workspace.

    ruleId string

    Alert rule ID

    alert_rule_template_name str

    The Name of the alert rule template used to create this rule.

    enabled bool

    Determines whether this alert rule is enabled or disabled.

    resource_group_name str

    The name of the resource group. The name is case insensitive.

    workspace_name str

    The name of the workspace.

    rule_id str

    Alert rule ID

    alertRuleTemplateName String

    The Name of the alert rule template used to create this rule.

    enabled Boolean

    Determines whether this alert rule is enabled or disabled.

    resourceGroupName String

    The name of the resource group. The name is case insensitive.

    workspaceName String

    The name of the workspace.

    ruleId String

    Alert rule ID

    Outputs

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

    Description string

    The description of the alert rule.

    DisplayName string

    The display name for alerts created by this alert rule.

    Id string

    The provider-assigned unique ID for this managed resource.

    LastModifiedUtc string

    The last time that this alert has been modified.

    Name string

    The name of the resource

    Severity string

    The severity for alerts created by this alert rule.

    SystemData Pulumi.AzureNative.SecurityInsights.Outputs.SystemDataResponse

    Azure Resource Manager metadata containing createdBy and modifiedBy information.

    Tactics List<string>

    The tactics of the alert rule

    Techniques List<string>

    The techniques of the alert rule

    Type string

    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Etag string

    Etag of the azure resource

    Description string

    The description of the alert rule.

    DisplayName string

    The display name for alerts created by this alert rule.

    Id string

    The provider-assigned unique ID for this managed resource.

    LastModifiedUtc string

    The last time that this alert has been modified.

    Name string

    The name of the resource

    Severity string

    The severity for alerts created by this alert rule.

    SystemData SystemDataResponse

    Azure Resource Manager metadata containing createdBy and modifiedBy information.

    Tactics []string

    The tactics of the alert rule

    Techniques []string

    The techniques of the alert rule

    Type string

    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Etag string

    Etag of the azure resource

    description String

    The description of the alert rule.

    displayName String

    The display name for alerts created by this alert rule.

    id String

    The provider-assigned unique ID for this managed resource.

    lastModifiedUtc String

    The last time that this alert has been modified.

    name String

    The name of the resource

    severity String

    The severity for alerts created by this alert rule.

    systemData SystemDataResponse

    Azure Resource Manager metadata containing createdBy and modifiedBy information.

    tactics List<String>

    The tactics of the alert rule

    techniques List<String>

    The techniques of the alert rule

    type String

    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    etag String

    Etag of the azure resource

    description string

    The description of the alert rule.

    displayName string

    The display name for alerts created by this alert rule.

    id string

    The provider-assigned unique ID for this managed resource.

    lastModifiedUtc string

    The last time that this alert has been modified.

    name string

    The name of the resource

    severity string

    The severity for alerts created by this alert rule.

    systemData SystemDataResponse

    Azure Resource Manager metadata containing createdBy and modifiedBy information.

    tactics string[]

    The tactics of the alert rule

    techniques string[]

    The techniques of the alert rule

    type string

    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    etag string

    Etag of the azure resource

    description str

    The description of the alert rule.

    display_name str

    The display name for alerts created by this alert rule.

    id str

    The provider-assigned unique ID for this managed resource.

    last_modified_utc str

    The last time that this alert has been modified.

    name str

    The name of the resource

    severity str

    The severity for alerts created by this alert rule.

    system_data SystemDataResponse

    Azure Resource Manager metadata containing createdBy and modifiedBy information.

    tactics Sequence[str]

    The tactics of the alert rule

    techniques Sequence[str]

    The techniques of the alert rule

    type str

    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    etag str

    Etag of the azure resource

    description String

    The description of the alert rule.

    displayName String

    The display name for alerts created by this alert rule.

    id String

    The provider-assigned unique ID for this managed resource.

    lastModifiedUtc String

    The last time that this alert has been modified.

    name String

    The name of the resource

    severity String

    The severity for alerts created by this alert rule.

    systemData Property Map

    Azure Resource Manager metadata containing createdBy and modifiedBy information.

    tactics List<String>

    The tactics of the alert rule

    techniques List<String>

    The techniques of the alert rule

    type String

    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    etag String

    Etag of the azure resource

    Supporting Types

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string

    The timestamp of resource creation (UTC).

    CreatedBy string

    The identity that created the resource.

    CreatedByType string

    The type of identity that created the resource.

    LastModifiedAt string

    The timestamp of resource last modification (UTC)

    LastModifiedBy string

    The identity that last modified the resource.

    LastModifiedByType string

    The type of identity that last modified the resource.

    CreatedAt string

    The timestamp of resource creation (UTC).

    CreatedBy string

    The identity that created the resource.

    CreatedByType string

    The type of identity that created the resource.

    LastModifiedAt string

    The timestamp of resource last modification (UTC)

    LastModifiedBy string

    The identity that last modified the resource.

    LastModifiedByType string

    The type of identity that last modified the resource.

    createdAt String

    The timestamp of resource creation (UTC).

    createdBy String

    The identity that created the resource.

    createdByType String

    The type of identity that created the resource.

    lastModifiedAt String

    The timestamp of resource last modification (UTC)

    lastModifiedBy String

    The identity that last modified the resource.

    lastModifiedByType String

    The type of identity that last modified the resource.

    createdAt string

    The timestamp of resource creation (UTC).

    createdBy string

    The identity that created the resource.

    createdByType string

    The type of identity that created the resource.

    lastModifiedAt string

    The timestamp of resource last modification (UTC)

    lastModifiedBy string

    The identity that last modified the resource.

    lastModifiedByType string

    The type of identity that last modified the resource.

    created_at str

    The timestamp of resource creation (UTC).

    created_by str

    The identity that created the resource.

    created_by_type str

    The type of identity that created the resource.

    last_modified_at str

    The timestamp of resource last modification (UTC)

    last_modified_by str

    The identity that last modified the resource.

    last_modified_by_type str

    The type of identity that last modified the resource.

    createdAt String

    The timestamp of resource creation (UTC).

    createdBy String

    The identity that created the resource.

    createdByType String

    The type of identity that created the resource.

    lastModifiedAt String

    The timestamp of resource last modification (UTC)

    lastModifiedBy String

    The identity that last modified the resource.

    lastModifiedByType String

    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:securityinsights:FusionAlertRule 73e01a99-5cd7-4139-a149-9f2736ff2ab5 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi