SecuritySolution

class SecuritySolution : KotlinCustomResource

Manages an iot security solution.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleIoTHub = new azure.iot.IoTHub("example", {
name: "example-IoTHub",
resourceGroupName: example.name,
location: example.location,
sku: {
name: "S1",
capacity: 1,
},
});
const exampleSecuritySolution = new azure.iot.SecuritySolution("example", {
name: "example-Iot-Security-Solution",
resourceGroupName: example.name,
location: example.location,
displayName: "Iot Security Solution",
iothubIds: [exampleIoTHub.id],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_io_t_hub = azure.iot.IoTHub("example",
name="example-IoTHub",
resource_group_name=example.name,
location=example.location,
sku={
"name": "S1",
"capacity": 1,
})
example_security_solution = azure.iot.SecuritySolution("example",
name="example-Iot-Security-Solution",
resource_group_name=example.name,
location=example.location,
display_name="Iot Security Solution",
iothub_ids=[example_io_t_hub.id])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleIoTHub = new Azure.Iot.IoTHub("example", new()
{
Name = "example-IoTHub",
ResourceGroupName = example.Name,
Location = example.Location,
Sku = new Azure.Iot.Inputs.IoTHubSkuArgs
{
Name = "S1",
Capacity = 1,
},
});
var exampleSecuritySolution = new Azure.Iot.SecuritySolution("example", new()
{
Name = "example-Iot-Security-Solution",
ResourceGroupName = example.Name,
Location = example.Location,
DisplayName = "Iot Security Solution",
IothubIds = new[]
{
exampleIoTHub.Id,
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/iot"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleIoTHub, err := iot.NewIoTHub(ctx, "example", &iot.IoTHubArgs{
Name: pulumi.String("example-IoTHub"),
ResourceGroupName: example.Name,
Location: example.Location,
Sku: &iot.IoTHubSkuArgs{
Name: pulumi.String("S1"),
Capacity: pulumi.Int(1),
},
})
if err != nil {
return err
}
_, err = iot.NewSecuritySolution(ctx, "example", &iot.SecuritySolutionArgs{
Name: pulumi.String("example-Iot-Security-Solution"),
ResourceGroupName: example.Name,
Location: example.Location,
DisplayName: pulumi.String("Iot Security Solution"),
IothubIds: pulumi.StringArray{
exampleIoTHub.ID(),
},
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.iot.IoTHub;
import com.pulumi.azure.iot.IoTHubArgs;
import com.pulumi.azure.iot.inputs.IoTHubSkuArgs;
import com.pulumi.azure.iot.SecuritySolution;
import com.pulumi.azure.iot.SecuritySolutionArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleIoTHub = new IoTHub("exampleIoTHub", IoTHubArgs.builder()
.name("example-IoTHub")
.resourceGroupName(example.name())
.location(example.location())
.sku(IoTHubSkuArgs.builder()
.name("S1")
.capacity("1")
.build())
.build());
var exampleSecuritySolution = new SecuritySolution("exampleSecuritySolution", SecuritySolutionArgs.builder()
.name("example-Iot-Security-Solution")
.resourceGroupName(example.name())
.location(example.location())
.displayName("Iot Security Solution")
.iothubIds(exampleIoTHub.id())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleIoTHub:
type: azure:iot:IoTHub
name: example
properties:
name: example-IoTHub
resourceGroupName: ${example.name}
location: ${example.location}
sku:
name: S1
capacity: '1'
exampleSecuritySolution:
type: azure:iot:SecuritySolution
name: example
properties:
name: example-Iot-Security-Solution
resourceGroupName: ${example.name}
location: ${example.location}
displayName: Iot Security Solution
iothubIds:
- ${exampleIoTHub.id}

Import

Iot Security Solution can be imported using the resource id, e.g.

$ pulumi import azure:iot/securitySolution:SecuritySolution example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Security/iotSecuritySolutions/solution1

Properties

Link copied to clipboard

A additional_workspace block as defined below.

Link copied to clipboard

A list of disabled data sources for the Iot Security Solution. Possible value is TwinData.

Link copied to clipboard
val displayName: Output<String>

Specifies the Display Name for this Iot Security Solution.

Link copied to clipboard
val enabled: Output<Boolean>?

Is the Iot Security Solution enabled? Defaults to true.

Link copied to clipboard
val eventsToExports: Output<List<String>>?

A list of data which is to exported to analytic workspace. Valid values include RawEvents.

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

Specifies the IoT Hub resource IDs to which this Iot Security Solution is applied.

Link copied to clipboard
val location: Output<String>

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Link copied to clipboard

Specifies the Log Analytics Workspace ID to which the security data will be sent.

Link copied to clipboard

Should IP addressed be unmasked in the log? Defaults to false.

Link copied to clipboard
val name: Output<String>

Specifies the name of the Iot Security Solution. Changing this forces a new resource to be created.

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

An Azure Resource Graph query used to set the resources monitored.

Link copied to clipboard

A list of subscription Ids on which the user defined resources query should be executed.

Link copied to clipboard

A recommendations_enabled block of options to enable or disable as defined below.

Link copied to clipboard

Specifies the name of the resource group in which to create the Iot Security Solution. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>