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 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 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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DefenderSetting(name: string, args: DefenderSettingArgs, opts?: CustomResourceOptions);
@overload
def DefenderSetting(resource_name: str,
args: DefenderSettingArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var defenderSettingResource = new AzureNative.Iotsecurity.DefenderSetting("defenderSettingResource", new()
{
DeviceQuota = 0,
MdeIntegration =
{
{ "status", "string" },
},
OnboardingKind = "string",
SentinelWorkspaceResourceIds = new[]
{
"string",
},
});
example, err := iotsecurity.NewDefenderSetting(ctx, "defenderSettingResource", &iotsecurity.DefenderSettingArgs{
DeviceQuota: 0,
MdeIntegration: map[string]interface{}{
"status": "string",
},
OnboardingKind: "string",
SentinelWorkspaceResourceIds: []string{
"string",
},
})
var defenderSettingResource = new DefenderSetting("defenderSettingResource", DefenderSettingArgs.builder()
.deviceQuota(0)
.mdeIntegration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.onboardingKind("string")
.sentinelWorkspaceResourceIds("string")
.build());
defender_setting_resource = azure_native.iotsecurity.DefenderSetting("defenderSettingResource",
device_quota=0,
mde_integration={
status: string,
},
onboarding_kind=string,
sentinel_workspace_resource_ids=[string])
const defenderSettingResource = new azure_native.iotsecurity.DefenderSetting("defenderSettingResource", {
deviceQuota: 0,
mdeIntegration: {
status: "string",
},
onboardingKind: "string",
sentinelWorkspaceResourceIds: ["string"],
});
type: azure-native:iotsecurity:DefenderSetting
properties:
deviceQuota: 0
mdeIntegration:
status: string
onboardingKind: string
sentinelWorkspaceResourceIds:
- string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DefenderSetting resource accepts the following input properties:
- Device
Quota int - Size of the device quota. Value is required to be in multiples of 100.
- Mde
Integration Pulumi.Azure Native. Io TSecurity. Inputs. Defender Settings Properties Mde Integration - MDE integration configuration
- Onboarding
Kind string | Pulumi.Azure Native. Io TSecurity. Onboarding Kind - The kind of onboarding for the subscription
- Sentinel
Workspace List<string>Resource Ids - Sentinel Workspace Resource Ids
- Device
Quota int - Size of the device quota. Value is required to be in multiples of 100.
- Mde
Integration DefenderSettings Properties Mde Integration Args - MDE integration configuration
- Onboarding
Kind string | OnboardingKind - The kind of onboarding for the subscription
- Sentinel
Workspace []stringResource Ids - Sentinel Workspace Resource Ids
- device
Quota Integer - Size of the device quota. Value is required to be in multiples of 100.
- mde
Integration DefenderSettings Properties Mde Integration - MDE integration configuration
- onboarding
Kind String | OnboardingKind - The kind of onboarding for the subscription
- sentinel
Workspace List<String>Resource Ids - Sentinel Workspace Resource Ids
- device
Quota number - Size of the device quota. Value is required to be in multiples of 100.
- mde
Integration DefenderSettings Properties Mde Integration - MDE integration configuration
- onboarding
Kind string | OnboardingKind - The kind of onboarding for the subscription
- sentinel
Workspace string[]Resource Ids - Sentinel Workspace Resource Ids
- device_
quota int - Size of the device quota. Value is required to be in multiples of 100.
- mde_
integration DefenderSettings Properties Mde Integration Args - MDE integration configuration
- onboarding_
kind str | OnboardingKind - The kind of onboarding for the subscription
- sentinel_
workspace_ Sequence[str]resource_ ids - Sentinel Workspace Resource Ids
- device
Quota Number - Size of the device quota. Value is required to be in multiples of 100.
- mde
Integration Property Map - MDE integration configuration
- onboarding
Kind String | "Default" | "MigratedTo Azure" | "Evaluation" | "Purchased" - The kind of onboarding for the subscription
- sentinel
Workspace List<String>Resource Ids - Sentinel Workspace Resource Ids
Outputs
All input properties are implicitly available as output properties. Additionally, the DefenderSetting resource produces the following output properties:
- Evaluation
End stringTime - 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 stringTime - 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 StringTime - 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 stringTime - 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_ strtime - 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"
- evaluation
End StringTime - 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, DefenderSettingsPropertiesMdeIntegrationArgs
- Status
string | Pulumi.
Azure Native. Io TSecurity. Mde Integration - Integration status
- Status
string | Mde
Integration - Integration status
- status
String | Mde
Integration - Integration status
- status
string | Mde
Integration - Integration status
- status
str | Mde
Integration - Integration status
- status String | "Disabled" | "Enabled"
- Integration status
DefenderSettingsPropertiesResponseMdeIntegration, DefenderSettingsPropertiesResponseMdeIntegrationArgs
- 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, MdeIntegrationArgs
- Disabled
- Disabled
- Enabled
- Enabled
- Mde
Integration Disabled - Disabled
- Mde
Integration Enabled - Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- DISABLED
- Disabled
- ENABLED
- Enabled
- "Disabled"
- Disabled
- "Enabled"
- Enabled
OnboardingKind, OnboardingKindArgs
- Default
- Default
- Migrated
To Azure - MigratedToAzure
- Evaluation
- Evaluation
- Purchased
- Purchased
- Onboarding
Kind Default - Default
- Onboarding
Kind Migrated To Azure - MigratedToAzure
- Onboarding
Kind Evaluation - Evaluation
- Onboarding
Kind Purchased - Purchased
- Default
- Default
- Migrated
To Azure - MigratedToAzure
- Evaluation
- Evaluation
- Purchased
- Purchased
- Default
- Default
- Migrated
To Azure - MigratedToAzure
- Evaluation
- Evaluation
- Purchased
- Purchased
- DEFAULT
- Default
- MIGRATED_TO_AZURE
- MigratedToAzure
- EVALUATION
- Evaluation
- PURCHASED
- Purchased
- "Default"
- Default
- "Migrated
To Azure" - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0