azure-native.iotsecurity.DefenderSetting

Explore with Pulumi AI

IoT Defender settings API Version: 2021-02-01-preview.

Example Usage

Create or update IoT Defender settings

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var defenderSetting = new AzureNative.IoTSecurity.DefenderSetting("defenderSetting", new()
    {
        DeviceQuota = 2000,
        MdeIntegration = new AzureNative.IoTSecurity.Inputs.DefenderSettingsPropertiesMdeIntegrationArgs
        {
            Status = "Enabled",
        },
        OnboardingKind = "Default",
        SentinelWorkspaceResourceIds = new[]
        {
            "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1",
        },
    });

});
package main

import (
	iotsecurity "github.com/pulumi/pulumi-azure-native/sdk/go/azure/iotsecurity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iotsecurity.NewDefenderSetting(ctx, "defenderSetting", &iotsecurity.DefenderSettingArgs{
			DeviceQuota: pulumi.Int(2000),
			MdeIntegration: &iotsecurity.DefenderSettingsPropertiesMdeIntegrationArgs{
				Status: pulumi.String("Enabled"),
			},
			OnboardingKind: pulumi.String("Default"),
			SentinelWorkspaceResourceIds: pulumi.StringArray{
				pulumi.String("/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1"),
			},
		})
		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.iotsecurity.DefenderSetting;
import com.pulumi.azurenative.iotsecurity.DefenderSettingArgs;
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 defenderSetting = new DefenderSetting("defenderSetting", DefenderSettingArgs.builder()        
            .deviceQuota(2000)
            .mdeIntegration(Map.of("status", "Enabled"))
            .onboardingKind("Default")
            .sentinelWorkspaceResourceIds("/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

defender_setting = azure_native.iotsecurity.DefenderSetting("defenderSetting",
    device_quota=2000,
    mde_integration=azure_native.iotsecurity.DefenderSettingsPropertiesMdeIntegrationArgs(
        status="Enabled",
    ),
    onboarding_kind="Default",
    sentinel_workspace_resource_ids=["/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1"])
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const defenderSetting = new azure_native.iotsecurity.DefenderSetting("defenderSetting", {
    deviceQuota: 2000,
    mdeIntegration: {
        status: "Enabled",
    },
    onboardingKind: "Default",
    sentinelWorkspaceResourceIds: ["/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1"],
});
resources:
  defenderSetting:
    type: azure-native:iotsecurity:DefenderSetting
    properties:
      deviceQuota: 2000
      mdeIntegration:
        status: Enabled
      onboardingKind: Default
      sentinelWorkspaceResourceIds:
        - /subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1

Create DefenderSetting Resource

new DefenderSetting(name: string, args: DefenderSettingArgs, opts?: CustomResourceOptions);
@overload
def DefenderSetting(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    device_quota: Optional[int] = None,
                    mde_integration: Optional[DefenderSettingsPropertiesMdeIntegrationArgs] = None,
                    onboarding_kind: Optional[Union[str, OnboardingKind]] = None,
                    sentinel_workspace_resource_ids: Optional[Sequence[str]] = None)
@overload
def DefenderSetting(resource_name: str,
                    args: DefenderSettingArgs,
                    opts: Optional[ResourceOptions] = None)
func NewDefenderSetting(ctx *Context, name string, args DefenderSettingArgs, opts ...ResourceOption) (*DefenderSetting, error)
public DefenderSetting(string name, DefenderSettingArgs args, CustomResourceOptions? opts = null)
public DefenderSetting(String name, DefenderSettingArgs args)
public DefenderSetting(String name, DefenderSettingArgs args, CustomResourceOptions options)
type: azure-native:iotsecurity:DefenderSetting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DefenderSettingArgs
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 DefenderSettingArgs
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 DefenderSettingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DefenderSettingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DefenderSettingArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

DeviceQuota int

Size of the device quota. Value is required to be in multiples of 100.

MdeIntegration Pulumi.AzureNative.IoTSecurity.Inputs.DefenderSettingsPropertiesMdeIntegrationArgs

MDE integration configuration

OnboardingKind string | Pulumi.AzureNative.IoTSecurity.OnboardingKind

The kind of onboarding for the subscription

SentinelWorkspaceResourceIds List<string>

Sentinel Workspace Resource Ids

DeviceQuota int

Size of the device quota. Value is required to be in multiples of 100.

MdeIntegration DefenderSettingsPropertiesMdeIntegrationArgs

MDE integration configuration

OnboardingKind string | OnboardingKind

The kind of onboarding for the subscription

SentinelWorkspaceResourceIds []string

Sentinel Workspace Resource Ids

deviceQuota Integer

Size of the device quota. Value is required to be in multiples of 100.

mdeIntegration DefenderSettingsPropertiesMdeIntegrationArgs

MDE integration configuration

onboardingKind String | OnboardingKind

The kind of onboarding for the subscription

sentinelWorkspaceResourceIds List<String>

Sentinel Workspace Resource Ids

deviceQuota number

Size of the device quota. Value is required to be in multiples of 100.

mdeIntegration DefenderSettingsPropertiesMdeIntegrationArgs

MDE integration configuration

onboardingKind string | OnboardingKind

The kind of onboarding for the subscription

sentinelWorkspaceResourceIds string[]

Sentinel Workspace Resource Ids

device_quota int

Size of the device quota. Value is required to be in multiples of 100.

mde_integration DefenderSettingsPropertiesMdeIntegrationArgs

MDE integration configuration

onboarding_kind str | OnboardingKind

The kind of onboarding for the subscription

sentinel_workspace_resource_ids Sequence[str]

Sentinel Workspace Resource Ids

deviceQuota Number

Size of the device quota. Value is required to be in multiples of 100.

mdeIntegration Property Map

MDE integration configuration

onboardingKind String | "Default" | "MigratedToAzure" | "Evaluation" | "Purchased"

The kind of onboarding for the subscription

sentinelWorkspaceResourceIds List<String>

Sentinel Workspace Resource Ids

Outputs

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

EvaluationEndTime string

End time of the evaluation period, if such exist

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

Type string

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

EvaluationEndTime string

End time of the evaluation period, if such exist

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

Type string

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

evaluationEndTime String

End time of the evaluation period, if such exist

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

type String

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

evaluationEndTime string

End time of the evaluation period, if such exist

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

type string

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

evaluation_end_time str

End time of the evaluation period, if such exist

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

type str

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

evaluationEndTime String

End time of the evaluation period, if such exist

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

type String

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

Supporting Types

DefenderSettingsPropertiesMdeIntegration

Status string | MdeIntegration

Integration status

status String | MdeIntegration

Integration status

status string | MdeIntegration

Integration status

status str | MdeIntegration

Integration status

status String | "Disabled" | "Enabled"

Integration status

DefenderSettingsPropertiesResponseMdeIntegration

Status string

Integration status

Status string

Integration status

status String

Integration status

status string

Integration status

status str

Integration status

status String

Integration status

MdeIntegration

Disabled
Disabled
Enabled
Enabled
MdeIntegrationDisabled
Disabled
MdeIntegrationEnabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
DISABLED
Disabled
ENABLED
Enabled
"Disabled"
Disabled
"Enabled"
Enabled

OnboardingKind

Default
Default
MigratedToAzure
MigratedToAzure
Evaluation
Evaluation
Purchased
Purchased
OnboardingKindDefault
Default
OnboardingKindMigratedToAzure
MigratedToAzure
OnboardingKindEvaluation
Evaluation
OnboardingKindPurchased
Purchased
Default
Default
MigratedToAzure
MigratedToAzure
Evaluation
Evaluation
Purchased
Purchased
Default
Default
MigratedToAzure
MigratedToAzure
Evaluation
Evaluation
Purchased
Purchased
DEFAULT
Default
MIGRATED_TO_AZURE
MigratedToAzure
EVALUATION
Evaluation
PURCHASED
Purchased
"Default"
Default
"MigratedToAzure"
MigratedToAzure
"Evaluation"
Evaluation
"Purchased"
Purchased

Import

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

$ pulumi import azure-native:iotsecurity:DefenderSetting default /subscriptions/{subscriptionId}/providers/Microsoft.IoTSecurity/defenderSettings/default 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0