1. Packages
  2. Azure Classic
  3. API Docs
  4. iot
  5. SecurityDeviceGroup

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.iot.SecurityDeviceGroup

Explore with Pulumi AI

Manages a Iot Security Device Group.

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],
});
const exampleSecurityDeviceGroup = new azure.iot.SecurityDeviceGroup("example", {
    name: "example-device-security-group",
    iothubId: exampleIoTHub.id,
    allowRule: {
        connectionToIpsNotAlloweds: ["10.0.0.0/24"],
    },
    rangeRules: [{
        type: "ActiveConnectionsNotInAllowedRange",
        min: 0,
        max: 30,
        duration: "PT5M",
    }],
}, {
    dependsOn: [exampleSecuritySolution],
});
Copy
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])
example_security_device_group = azure.iot.SecurityDeviceGroup("example",
    name="example-device-security-group",
    iothub_id=example_io_t_hub.id,
    allow_rule={
        "connection_to_ips_not_alloweds": ["10.0.0.0/24"],
    },
    range_rules=[{
        "type": "ActiveConnectionsNotInAllowedRange",
        "min": 0,
        "max": 30,
        "duration": "PT5M",
    }],
    opts = pulumi.ResourceOptions(depends_on=[example_security_solution]))
Copy
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
		}
		exampleSecuritySolution, 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
		}
		_, err = iot.NewSecurityDeviceGroup(ctx, "example", &iot.SecurityDeviceGroupArgs{
			Name:     pulumi.String("example-device-security-group"),
			IothubId: exampleIoTHub.ID(),
			AllowRule: &iot.SecurityDeviceGroupAllowRuleArgs{
				ConnectionToIpsNotAlloweds: pulumi.StringArray{
					pulumi.String("10.0.0.0/24"),
				},
			},
			RangeRules: iot.SecurityDeviceGroupRangeRuleArray{
				&iot.SecurityDeviceGroupRangeRuleArgs{
					Type:     pulumi.String("ActiveConnectionsNotInAllowedRange"),
					Min:      pulumi.Int(0),
					Max:      pulumi.Int(30),
					Duration: pulumi.String("PT5M"),
				},
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleSecuritySolution,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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,
        },
    });

    var exampleSecurityDeviceGroup = new Azure.Iot.SecurityDeviceGroup("example", new()
    {
        Name = "example-device-security-group",
        IothubId = exampleIoTHub.Id,
        AllowRule = new Azure.Iot.Inputs.SecurityDeviceGroupAllowRuleArgs
        {
            ConnectionToIpsNotAlloweds = new[]
            {
                "10.0.0.0/24",
            },
        },
        RangeRules = new[]
        {
            new Azure.Iot.Inputs.SecurityDeviceGroupRangeRuleArgs
            {
                Type = "ActiveConnectionsNotInAllowedRange",
                Min = 0,
                Max = 30,
                Duration = "PT5M",
            },
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            exampleSecuritySolution,
        },
    });

});
Copy
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 com.pulumi.azure.iot.SecurityDeviceGroup;
import com.pulumi.azure.iot.SecurityDeviceGroupArgs;
import com.pulumi.azure.iot.inputs.SecurityDeviceGroupAllowRuleArgs;
import com.pulumi.azure.iot.inputs.SecurityDeviceGroupRangeRuleArgs;
import com.pulumi.resources.CustomResourceOptions;
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());

        var exampleSecurityDeviceGroup = new SecurityDeviceGroup("exampleSecurityDeviceGroup", SecurityDeviceGroupArgs.builder()
            .name("example-device-security-group")
            .iothubId(exampleIoTHub.id())
            .allowRule(SecurityDeviceGroupAllowRuleArgs.builder()
                .connectionToIpsNotAlloweds("10.0.0.0/24")
                .build())
            .rangeRules(SecurityDeviceGroupRangeRuleArgs.builder()
                .type("ActiveConnectionsNotInAllowedRange")
                .min(0)
                .max(30)
                .duration("PT5M")
                .build())
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleSecuritySolution)
                .build());

    }
}
Copy
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}
  exampleSecurityDeviceGroup:
    type: azure:iot:SecurityDeviceGroup
    name: example
    properties:
      name: example-device-security-group
      iothubId: ${exampleIoTHub.id}
      allowRule:
        connectionToIpsNotAlloweds:
          - 10.0.0.0/24
      rangeRules:
        - type: ActiveConnectionsNotInAllowedRange
          min: 0
          max: 30
          duration: PT5M
    options:
      dependsOn:
        - ${exampleSecuritySolution}
Copy

Create SecurityDeviceGroup Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SecurityDeviceGroup(name: string, args: SecurityDeviceGroupArgs, opts?: CustomResourceOptions);
@overload
def SecurityDeviceGroup(resource_name: str,
                        args: SecurityDeviceGroupArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def SecurityDeviceGroup(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        iothub_id: Optional[str] = None,
                        allow_rule: Optional[SecurityDeviceGroupAllowRuleArgs] = None,
                        name: Optional[str] = None,
                        range_rules: Optional[Sequence[SecurityDeviceGroupRangeRuleArgs]] = None)
func NewSecurityDeviceGroup(ctx *Context, name string, args SecurityDeviceGroupArgs, opts ...ResourceOption) (*SecurityDeviceGroup, error)
public SecurityDeviceGroup(string name, SecurityDeviceGroupArgs args, CustomResourceOptions? opts = null)
public SecurityDeviceGroup(String name, SecurityDeviceGroupArgs args)
public SecurityDeviceGroup(String name, SecurityDeviceGroupArgs args, CustomResourceOptions options)
type: azure:iot:SecurityDeviceGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SecurityDeviceGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SecurityDeviceGroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SecurityDeviceGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SecurityDeviceGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SecurityDeviceGroupArgs
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 securityDeviceGroupResource = new Azure.Iot.SecurityDeviceGroup("securityDeviceGroupResource", new()
{
    IothubId = "string",
    AllowRule = new Azure.Iot.Inputs.SecurityDeviceGroupAllowRuleArgs
    {
        ConnectionFromIpsNotAlloweds = new[]
        {
            "string",
        },
        ConnectionToIpsNotAlloweds = new[]
        {
            "string",
        },
        LocalUsersNotAlloweds = new[]
        {
            "string",
        },
        ProcessesNotAlloweds = new[]
        {
            "string",
        },
    },
    Name = "string",
    RangeRules = new[]
    {
        new Azure.Iot.Inputs.SecurityDeviceGroupRangeRuleArgs
        {
            Duration = "string",
            Max = 0,
            Min = 0,
            Type = "string",
        },
    },
});
Copy
example, err := iot.NewSecurityDeviceGroup(ctx, "securityDeviceGroupResource", &iot.SecurityDeviceGroupArgs{
	IothubId: pulumi.String("string"),
	AllowRule: &iot.SecurityDeviceGroupAllowRuleArgs{
		ConnectionFromIpsNotAlloweds: pulumi.StringArray{
			pulumi.String("string"),
		},
		ConnectionToIpsNotAlloweds: pulumi.StringArray{
			pulumi.String("string"),
		},
		LocalUsersNotAlloweds: pulumi.StringArray{
			pulumi.String("string"),
		},
		ProcessesNotAlloweds: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	Name: pulumi.String("string"),
	RangeRules: iot.SecurityDeviceGroupRangeRuleArray{
		&iot.SecurityDeviceGroupRangeRuleArgs{
			Duration: pulumi.String("string"),
			Max:      pulumi.Int(0),
			Min:      pulumi.Int(0),
			Type:     pulumi.String("string"),
		},
	},
})
Copy
var securityDeviceGroupResource = new SecurityDeviceGroup("securityDeviceGroupResource", SecurityDeviceGroupArgs.builder()
    .iothubId("string")
    .allowRule(SecurityDeviceGroupAllowRuleArgs.builder()
        .connectionFromIpsNotAlloweds("string")
        .connectionToIpsNotAlloweds("string")
        .localUsersNotAlloweds("string")
        .processesNotAlloweds("string")
        .build())
    .name("string")
    .rangeRules(SecurityDeviceGroupRangeRuleArgs.builder()
        .duration("string")
        .max(0)
        .min(0)
        .type("string")
        .build())
    .build());
Copy
security_device_group_resource = azure.iot.SecurityDeviceGroup("securityDeviceGroupResource",
    iothub_id="string",
    allow_rule={
        "connection_from_ips_not_alloweds": ["string"],
        "connection_to_ips_not_alloweds": ["string"],
        "local_users_not_alloweds": ["string"],
        "processes_not_alloweds": ["string"],
    },
    name="string",
    range_rules=[{
        "duration": "string",
        "max": 0,
        "min": 0,
        "type": "string",
    }])
Copy
const securityDeviceGroupResource = new azure.iot.SecurityDeviceGroup("securityDeviceGroupResource", {
    iothubId: "string",
    allowRule: {
        connectionFromIpsNotAlloweds: ["string"],
        connectionToIpsNotAlloweds: ["string"],
        localUsersNotAlloweds: ["string"],
        processesNotAlloweds: ["string"],
    },
    name: "string",
    rangeRules: [{
        duration: "string",
        max: 0,
        min: 0,
        type: "string",
    }],
});
Copy
type: azure:iot:SecurityDeviceGroup
properties:
    allowRule:
        connectionFromIpsNotAlloweds:
            - string
        connectionToIpsNotAlloweds:
            - string
        localUsersNotAlloweds:
            - string
        processesNotAlloweds:
            - string
    iothubId: string
    name: string
    rangeRules:
        - duration: string
          max: 0
          min: 0
          type: string
Copy

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

IothubId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
AllowRule SecurityDeviceGroupAllowRule
an allow_rule blocks as defined below.
Name Changes to this property will trigger replacement. string
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
RangeRules List<SecurityDeviceGroupRangeRule>
One or more range_rule blocks as defined below.
IothubId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
AllowRule SecurityDeviceGroupAllowRuleArgs
an allow_rule blocks as defined below.
Name Changes to this property will trigger replacement. string
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
RangeRules []SecurityDeviceGroupRangeRuleArgs
One or more range_rule blocks as defined below.
iothubId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
allowRule SecurityDeviceGroupAllowRule
an allow_rule blocks as defined below.
name Changes to this property will trigger replacement. String
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
rangeRules List<SecurityDeviceGroupRangeRule>
One or more range_rule blocks as defined below.
iothubId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
allowRule SecurityDeviceGroupAllowRule
an allow_rule blocks as defined below.
name Changes to this property will trigger replacement. string
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
rangeRules SecurityDeviceGroupRangeRule[]
One or more range_rule blocks as defined below.
iothub_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
allow_rule SecurityDeviceGroupAllowRuleArgs
an allow_rule blocks as defined below.
name Changes to this property will trigger replacement. str
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
range_rules Sequence[SecurityDeviceGroupRangeRuleArgs]
One or more range_rule blocks as defined below.
iothubId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
allowRule Property Map
an allow_rule blocks as defined below.
name Changes to this property will trigger replacement. String
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
rangeRules List<Property Map>
One or more range_rule blocks as defined below.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing SecurityDeviceGroup Resource

Get an existing SecurityDeviceGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SecurityDeviceGroupState, opts?: CustomResourceOptions): SecurityDeviceGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        allow_rule: Optional[SecurityDeviceGroupAllowRuleArgs] = None,
        iothub_id: Optional[str] = None,
        name: Optional[str] = None,
        range_rules: Optional[Sequence[SecurityDeviceGroupRangeRuleArgs]] = None) -> SecurityDeviceGroup
func GetSecurityDeviceGroup(ctx *Context, name string, id IDInput, state *SecurityDeviceGroupState, opts ...ResourceOption) (*SecurityDeviceGroup, error)
public static SecurityDeviceGroup Get(string name, Input<string> id, SecurityDeviceGroupState? state, CustomResourceOptions? opts = null)
public static SecurityDeviceGroup get(String name, Output<String> id, SecurityDeviceGroupState state, CustomResourceOptions options)
resources:  _:    type: azure:iot:SecurityDeviceGroup    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AllowRule SecurityDeviceGroupAllowRule
an allow_rule blocks as defined below.
IothubId Changes to this property will trigger replacement. string
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
RangeRules List<SecurityDeviceGroupRangeRule>
One or more range_rule blocks as defined below.
AllowRule SecurityDeviceGroupAllowRuleArgs
an allow_rule blocks as defined below.
IothubId Changes to this property will trigger replacement. string
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
RangeRules []SecurityDeviceGroupRangeRuleArgs
One or more range_rule blocks as defined below.
allowRule SecurityDeviceGroupAllowRule
an allow_rule blocks as defined below.
iothubId Changes to this property will trigger replacement. String
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
rangeRules List<SecurityDeviceGroupRangeRule>
One or more range_rule blocks as defined below.
allowRule SecurityDeviceGroupAllowRule
an allow_rule blocks as defined below.
iothubId Changes to this property will trigger replacement. string
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. string
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
rangeRules SecurityDeviceGroupRangeRule[]
One or more range_rule blocks as defined below.
allow_rule SecurityDeviceGroupAllowRuleArgs
an allow_rule blocks as defined below.
iothub_id Changes to this property will trigger replacement. str
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. str
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
range_rules Sequence[SecurityDeviceGroupRangeRuleArgs]
One or more range_rule blocks as defined below.
allowRule Property Map
an allow_rule blocks as defined below.
iothubId Changes to this property will trigger replacement. String
The ID of the IoT Hub which to link the Security Device Group to. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
Specifies the name of the Device Security Group. Changing this forces a new resource to be created.
rangeRules List<Property Map>
One or more range_rule blocks as defined below.

Supporting Types

SecurityDeviceGroupAllowRule
, SecurityDeviceGroupAllowRuleArgs

ConnectionFromIpsNotAlloweds List<string>
Specifies which IP is not allowed to be connected to in current device group for inbound connection.
ConnectionToIpsNotAlloweds List<string>
Specifies which IP is not allowed to be connected to in current device group for outbound connection.
LocalUsersNotAlloweds List<string>
Specifies which local user is not allowed to login in current device group.
ProcessesNotAlloweds List<string>
Specifies which process is not allowed to be executed in current device group.
ConnectionFromIpsNotAlloweds []string
Specifies which IP is not allowed to be connected to in current device group for inbound connection.
ConnectionToIpsNotAlloweds []string
Specifies which IP is not allowed to be connected to in current device group for outbound connection.
LocalUsersNotAlloweds []string
Specifies which local user is not allowed to login in current device group.
ProcessesNotAlloweds []string
Specifies which process is not allowed to be executed in current device group.
connectionFromIpsNotAlloweds List<String>
Specifies which IP is not allowed to be connected to in current device group for inbound connection.
connectionToIpsNotAlloweds List<String>
Specifies which IP is not allowed to be connected to in current device group for outbound connection.
localUsersNotAlloweds List<String>
Specifies which local user is not allowed to login in current device group.
processesNotAlloweds List<String>
Specifies which process is not allowed to be executed in current device group.
connectionFromIpsNotAlloweds string[]
Specifies which IP is not allowed to be connected to in current device group for inbound connection.
connectionToIpsNotAlloweds string[]
Specifies which IP is not allowed to be connected to in current device group for outbound connection.
localUsersNotAlloweds string[]
Specifies which local user is not allowed to login in current device group.
processesNotAlloweds string[]
Specifies which process is not allowed to be executed in current device group.
connection_from_ips_not_alloweds Sequence[str]
Specifies which IP is not allowed to be connected to in current device group for inbound connection.
connection_to_ips_not_alloweds Sequence[str]
Specifies which IP is not allowed to be connected to in current device group for outbound connection.
local_users_not_alloweds Sequence[str]
Specifies which local user is not allowed to login in current device group.
processes_not_alloweds Sequence[str]
Specifies which process is not allowed to be executed in current device group.
connectionFromIpsNotAlloweds List<String>
Specifies which IP is not allowed to be connected to in current device group for inbound connection.
connectionToIpsNotAlloweds List<String>
Specifies which IP is not allowed to be connected to in current device group for outbound connection.
localUsersNotAlloweds List<String>
Specifies which local user is not allowed to login in current device group.
processesNotAlloweds List<String>
Specifies which process is not allowed to be executed in current device group.

SecurityDeviceGroupRangeRule
, SecurityDeviceGroupRangeRuleArgs

Duration This property is required. string
Specifies the time range. represented in ISO 8601 duration format.
Max This property is required. int
The maximum threshold in the given time window.
Min This property is required. int
The minimum threshold in the given time window.
Type This property is required. string
The type of supported rule type. Possible Values are ActiveConnectionsNotInAllowedRange, AmqpC2DMessagesNotInAllowedRange, MqttC2DMessagesNotInAllowedRange, HttpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, AmqpD2CMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, DirectMethodInvokesNotInAllowedRange, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, QueuePurgesNotInAllowedRange, TwinUpdatesNotInAllowedRange and UnauthorizedOperationsNotInAllowedRange.
Duration This property is required. string
Specifies the time range. represented in ISO 8601 duration format.
Max This property is required. int
The maximum threshold in the given time window.
Min This property is required. int
The minimum threshold in the given time window.
Type This property is required. string
The type of supported rule type. Possible Values are ActiveConnectionsNotInAllowedRange, AmqpC2DMessagesNotInAllowedRange, MqttC2DMessagesNotInAllowedRange, HttpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, AmqpD2CMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, DirectMethodInvokesNotInAllowedRange, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, QueuePurgesNotInAllowedRange, TwinUpdatesNotInAllowedRange and UnauthorizedOperationsNotInAllowedRange.
duration This property is required. String
Specifies the time range. represented in ISO 8601 duration format.
max This property is required. Integer
The maximum threshold in the given time window.
min This property is required. Integer
The minimum threshold in the given time window.
type This property is required. String
The type of supported rule type. Possible Values are ActiveConnectionsNotInAllowedRange, AmqpC2DMessagesNotInAllowedRange, MqttC2DMessagesNotInAllowedRange, HttpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, AmqpD2CMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, DirectMethodInvokesNotInAllowedRange, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, QueuePurgesNotInAllowedRange, TwinUpdatesNotInAllowedRange and UnauthorizedOperationsNotInAllowedRange.
duration This property is required. string
Specifies the time range. represented in ISO 8601 duration format.
max This property is required. number
The maximum threshold in the given time window.
min This property is required. number
The minimum threshold in the given time window.
type This property is required. string
The type of supported rule type. Possible Values are ActiveConnectionsNotInAllowedRange, AmqpC2DMessagesNotInAllowedRange, MqttC2DMessagesNotInAllowedRange, HttpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, AmqpD2CMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, DirectMethodInvokesNotInAllowedRange, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, QueuePurgesNotInAllowedRange, TwinUpdatesNotInAllowedRange and UnauthorizedOperationsNotInAllowedRange.
duration This property is required. str
Specifies the time range. represented in ISO 8601 duration format.
max This property is required. int
The maximum threshold in the given time window.
min This property is required. int
The minimum threshold in the given time window.
type This property is required. str
The type of supported rule type. Possible Values are ActiveConnectionsNotInAllowedRange, AmqpC2DMessagesNotInAllowedRange, MqttC2DMessagesNotInAllowedRange, HttpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, AmqpD2CMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, DirectMethodInvokesNotInAllowedRange, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, QueuePurgesNotInAllowedRange, TwinUpdatesNotInAllowedRange and UnauthorizedOperationsNotInAllowedRange.
duration This property is required. String
Specifies the time range. represented in ISO 8601 duration format.
max This property is required. Number
The maximum threshold in the given time window.
min This property is required. Number
The minimum threshold in the given time window.
type This property is required. String
The type of supported rule type. Possible Values are ActiveConnectionsNotInAllowedRange, AmqpC2DMessagesNotInAllowedRange, MqttC2DMessagesNotInAllowedRange, HttpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, AmqpD2CMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, DirectMethodInvokesNotInAllowedRange, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, QueuePurgesNotInAllowedRange, TwinUpdatesNotInAllowedRange and UnauthorizedOperationsNotInAllowedRange.

Import

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

$ pulumi import azure:iot/securityDeviceGroup:SecurityDeviceGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Devices/iotHubs/hub1/providers/Microsoft.Security/deviceSecurityGroups/group1
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.