DefenderSetting

class DefenderSetting : KotlinCustomResource

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

Example Usage

Create or update IoT Defender settings

using System.Collections.Generic;
using System.Linq;
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/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

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

Properties

Link copied to clipboard
val deviceQuota: Output<Int>

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

Link copied to clipboard

End time of the evaluation period, if such exist

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

MDE integration configuration

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val onboardingKind: Output<String>

The kind of onboarding for the subscription

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

Sentinel Workspace Resource Ids

Link copied to clipboard
val type: Output<String>

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

Link copied to clipboard
val urn: Output<String>