IoTHub

Manages an IotHub

NOTE: Endpoints can be defined either directly on the azure.iot.IoTHub resource, or using the azurerm_iothub_endpoint_* resources - but the two ways of defining the endpoints cannot be used together. If both are used against the same IoTHub, spurious changes will occur. Also, defining a azurerm_iothub_endpoint_* resource and another endpoint of a different type directly on the azure.iot.IoTHub resource is not supported.

NOTE: Routes can be defined either directly on the azure.iot.IoTHub resource, or using the azure.iot.Route resource - but the two cannot be used together. If both are used against the same IoTHub, spurious changes will occur.

NOTE: Enrichments can be defined either directly on the azure.iot.IoTHub resource, or using the azure.iot.Enrichment resource - but the two cannot be used together. If both are used against the same IoTHub, spurious changes will occur.

NOTE: Fallback route can be defined either directly on the azure.iot.IoTHub resource, or using the azure.iot.FallbackRoute resource - but the two cannot be used together. If both are used against the same IoTHub, spurious changes will occur.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
    });

    var exampleContainer = new Azure.Storage.Container("exampleContainer", new()
    {
        StorageAccountName = exampleAccount.Name,
        ContainerAccessType = "private",
    });

    var exampleEventHubNamespace = new Azure.EventHub.EventHubNamespace("exampleEventHubNamespace", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        Sku = "Basic",
    });

    var exampleEventHub = new Azure.EventHub.EventHub("exampleEventHub", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        NamespaceName = exampleEventHubNamespace.Name,
        PartitionCount = 2,
        MessageRetention = 1,
    });

    var exampleAuthorizationRule = new Azure.EventHub.AuthorizationRule("exampleAuthorizationRule", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        NamespaceName = exampleEventHubNamespace.Name,
        EventhubName = exampleEventHub.Name,
        Send = true,
    });

    var exampleIoTHub = new Azure.Iot.IoTHub("exampleIoTHub", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        Sku = new Azure.Iot.Inputs.IoTHubSkuArgs
        {
            Name = "S1",
            Capacity = 1,
        },
        Endpoints = new[]
        {
            new Azure.Iot.Inputs.IoTHubEndpointArgs
            {
                Type = "AzureIotHub.StorageContainer",
                ConnectionString = exampleAccount.PrimaryBlobConnectionString,
                Name = "export",
                BatchFrequencyInSeconds = 60,
                MaxChunkSizeInBytes = 10485760,
                ContainerName = exampleContainer.Name,
                Encoding = "Avro",
                FileNameFormat = "{iothub}/{partition}_{YYYY}_{MM}_{DD}_{HH}_{mm}",
            },
            new Azure.Iot.Inputs.IoTHubEndpointArgs
            {
                Type = "AzureIotHub.EventHub",
                ConnectionString = exampleAuthorizationRule.PrimaryConnectionString,
                Name = "export2",
            },
        },
        Routes = new[]
        {
            new Azure.Iot.Inputs.IoTHubRouteArgs
            {
                Name = "export",
                Source = "DeviceMessages",
                Condition = "true",
                EndpointNames = new[]
                {
                    "export",
                },
                Enabled = true,
            },
            new Azure.Iot.Inputs.IoTHubRouteArgs
            {
                Name = "export2",
                Source = "DeviceMessages",
                Condition = "true",
                EndpointNames = new[]
                {
                    "export2",
                },
                Enabled = true,
            },
        },
        Enrichments = new[]
        {
            new Azure.Iot.Inputs.IoTHubEnrichmentArgs
            {
                Key = "tenant",
                Value = "$twin.tags.Tenant",
                EndpointNames = new[]
                {
                    "export",
                    "export2",
                },
            },
        },
        CloudToDevice = new Azure.Iot.Inputs.IoTHubCloudToDeviceArgs
        {
            MaxDeliveryCount = 30,
            DefaultTtl = "PT1H",
            Feedbacks = new[]
            {
                new Azure.Iot.Inputs.IoTHubCloudToDeviceFeedbackArgs
                {
                    TimeToLive = "PT1H10M",
                    MaxDeliveryCount = 15,
                    LockDuration = "PT30S",
                },
            },
        },
        Tags = 
        {
            { "purpose", "testing" },
        },
    });

});
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/eventhub"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/iot"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		exampleContainer, err := storage.NewContainer(ctx, "exampleContainer", &storage.ContainerArgs{
			StorageAccountName:  exampleAccount.Name,
			ContainerAccessType: pulumi.String("private"),
		})
		if err != nil {
			return err
		}
		exampleEventHubNamespace, err := eventhub.NewEventHubNamespace(ctx, "exampleEventHubNamespace", &eventhub.EventHubNamespaceArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			Sku:               pulumi.String("Basic"),
		})
		if err != nil {
			return err
		}
		exampleEventHub, err := eventhub.NewEventHub(ctx, "exampleEventHub", &eventhub.EventHubArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			NamespaceName:     exampleEventHubNamespace.Name,
			PartitionCount:    pulumi.Int(2),
			MessageRetention:  pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		exampleAuthorizationRule, err := eventhub.NewAuthorizationRule(ctx, "exampleAuthorizationRule", &eventhub.AuthorizationRuleArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			NamespaceName:     exampleEventHubNamespace.Name,
			EventhubName:      exampleEventHub.Name,
			Send:              pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = iot.NewIoTHub(ctx, "exampleIoTHub", &iot.IoTHubArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			Sku: &iot.IoTHubSkuArgs{
				Name:     pulumi.String("S1"),
				Capacity: pulumi.Int(1),
			},
			Endpoints: iot.IoTHubEndpointArray{
				&iot.IoTHubEndpointArgs{
					Type:                    pulumi.String("AzureIotHub.StorageContainer"),
					ConnectionString:        exampleAccount.PrimaryBlobConnectionString,
					Name:                    pulumi.String("export"),
					BatchFrequencyInSeconds: pulumi.Int(60),
					MaxChunkSizeInBytes:     pulumi.Int(10485760),
					ContainerName:           exampleContainer.Name,
					Encoding:                pulumi.String("Avro"),
					FileNameFormat:          pulumi.String("{iothub}/{partition}_{YYYY}_{MM}_{DD}_{HH}_{mm}"),
				},
				&iot.IoTHubEndpointArgs{
					Type:             pulumi.String("AzureIotHub.EventHub"),
					ConnectionString: exampleAuthorizationRule.PrimaryConnectionString,
					Name:             pulumi.String("export2"),
				},
			},
			Routes: iot.IoTHubRouteArray{
				&iot.IoTHubRouteArgs{
					Name:      pulumi.String("export"),
					Source:    pulumi.String("DeviceMessages"),
					Condition: pulumi.String("true"),
					EndpointNames: pulumi.StringArray{
						pulumi.String("export"),
					},
					Enabled: pulumi.Bool(true),
				},
				&iot.IoTHubRouteArgs{
					Name:      pulumi.String("export2"),
					Source:    pulumi.String("DeviceMessages"),
					Condition: pulumi.String("true"),
					EndpointNames: pulumi.StringArray{
						pulumi.String("export2"),
					},
					Enabled: pulumi.Bool(true),
				},
			},
			Enrichments: iot.IoTHubEnrichmentArray{
				&iot.IoTHubEnrichmentArgs{
					Key:   pulumi.String("tenant"),
					Value: pulumi.String(fmt.Sprintf("$twin.tags.Tenant")),
					EndpointNames: pulumi.StringArray{
						pulumi.String("export"),
						pulumi.String("export2"),
					},
				},
			},
			CloudToDevice: &iot.IoTHubCloudToDeviceArgs{
				MaxDeliveryCount: pulumi.Int(30),
				DefaultTtl:       pulumi.String("PT1H"),
				Feedbacks: iot.IoTHubCloudToDeviceFeedbackArray{
					&iot.IoTHubCloudToDeviceFeedbackArgs{
						TimeToLive:       pulumi.String("PT1H10M"),
						MaxDeliveryCount: pulumi.Int(15),
						LockDuration:     pulumi.String("PT30S"),
					},
				},
			},
			Tags: pulumi.StringMap{
				"purpose": pulumi.String("testing"),
			},
		})
		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.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.Container;
import com.pulumi.azure.storage.ContainerArgs;
import com.pulumi.azure.eventhub.EventHubNamespace;
import com.pulumi.azure.eventhub.EventHubNamespaceArgs;
import com.pulumi.azure.eventhub.EventHub;
import com.pulumi.azure.eventhub.EventHubArgs;
import com.pulumi.azure.eventhub.AuthorizationRule;
import com.pulumi.azure.eventhub.AuthorizationRuleArgs;
import com.pulumi.azure.iot.IoTHub;
import com.pulumi.azure.iot.IoTHubArgs;
import com.pulumi.azure.iot.inputs.IoTHubSkuArgs;
import com.pulumi.azure.iot.inputs.IoTHubEndpointArgs;
import com.pulumi.azure.iot.inputs.IoTHubRouteArgs;
import com.pulumi.azure.iot.inputs.IoTHubEnrichmentArgs;
import com.pulumi.azure.iot.inputs.IoTHubCloudToDeviceArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .accountTier("Standard")
            .accountReplicationType("LRS")
            .build());

        var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()        
            .storageAccountName(exampleAccount.name())
            .containerAccessType("private")
            .build());

        var exampleEventHubNamespace = new EventHubNamespace("exampleEventHubNamespace", EventHubNamespaceArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .sku("Basic")
            .build());

        var exampleEventHub = new EventHub("exampleEventHub", EventHubArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .namespaceName(exampleEventHubNamespace.name())
            .partitionCount(2)
            .messageRetention(1)
            .build());

        var exampleAuthorizationRule = new AuthorizationRule("exampleAuthorizationRule", AuthorizationRuleArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .namespaceName(exampleEventHubNamespace.name())
            .eventhubName(exampleEventHub.name())
            .send(true)
            .build());

        var exampleIoTHub = new IoTHub("exampleIoTHub", IoTHubArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .sku(IoTHubSkuArgs.builder()
                .name("S1")
                .capacity("1")
                .build())
            .endpoints(            
                IoTHubEndpointArgs.builder()
                    .type("AzureIotHub.StorageContainer")
                    .connectionString(exampleAccount.primaryBlobConnectionString())
                    .name("export")
                    .batchFrequencyInSeconds(60)
                    .maxChunkSizeInBytes(10485760)
                    .containerName(exampleContainer.name())
                    .encoding("Avro")
                    .fileNameFormat("{iothub}/{partition}_{YYYY}_{MM}_{DD}_{HH}_{mm}")
                    .build(),
                IoTHubEndpointArgs.builder()
                    .type("AzureIotHub.EventHub")
                    .connectionString(exampleAuthorizationRule.primaryConnectionString())
                    .name("export2")
                    .build())
            .routes(            
                IoTHubRouteArgs.builder()
                    .name("export")
                    .source("DeviceMessages")
                    .condition("true")
                    .endpointNames("export")
                    .enabled(true)
                    .build(),
                IoTHubRouteArgs.builder()
                    .name("export2")
                    .source("DeviceMessages")
                    .condition("true")
                    .endpointNames("export2")
                    .enabled(true)
                    .build())
            .enrichments(IoTHubEnrichmentArgs.builder()
                .key("tenant")
                .value("$twin.tags.Tenant")
                .endpointNames(                
                    "export",
                    "export2")
                .build())
            .cloudToDevice(IoTHubCloudToDeviceArgs.builder()
                .maxDeliveryCount(30)
                .defaultTtl("PT1H")
                .feedbacks(IoTHubCloudToDeviceFeedbackArgs.builder()
                    .timeToLive("PT1H10M")
                    .maxDeliveryCount(15)
                    .lockDuration("PT30S")
                    .build())
                .build())
            .tags(Map.of("purpose", "testing"))
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.storage.Account("exampleAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="LRS")
example_container = azure.storage.Container("exampleContainer",
    storage_account_name=example_account.name,
    container_access_type="private")
example_event_hub_namespace = azure.eventhub.EventHubNamespace("exampleEventHubNamespace",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    sku="Basic")
example_event_hub = azure.eventhub.EventHub("exampleEventHub",
    resource_group_name=example_resource_group.name,
    namespace_name=example_event_hub_namespace.name,
    partition_count=2,
    message_retention=1)
example_authorization_rule = azure.eventhub.AuthorizationRule("exampleAuthorizationRule",
    resource_group_name=example_resource_group.name,
    namespace_name=example_event_hub_namespace.name,
    eventhub_name=example_event_hub.name,
    send=True)
example_io_t_hub = azure.iot.IoTHub("exampleIoTHub",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    sku=azure.iot.IoTHubSkuArgs(
        name="S1",
        capacity=1,
    ),
    endpoints=[
        azure.iot.IoTHubEndpointArgs(
            type="AzureIotHub.StorageContainer",
            connection_string=example_account.primary_blob_connection_string,
            name="export",
            batch_frequency_in_seconds=60,
            max_chunk_size_in_bytes=10485760,
            container_name=example_container.name,
            encoding="Avro",
            file_name_format="{iothub}/{partition}_{YYYY}_{MM}_{DD}_{HH}_{mm}",
        ),
        azure.iot.IoTHubEndpointArgs(
            type="AzureIotHub.EventHub",
            connection_string=example_authorization_rule.primary_connection_string,
            name="export2",
        ),
    ],
    routes=[
        azure.iot.IoTHubRouteArgs(
            name="export",
            source="DeviceMessages",
            condition="true",
            endpoint_names=["export"],
            enabled=True,
        ),
        azure.iot.IoTHubRouteArgs(
            name="export2",
            source="DeviceMessages",
            condition="true",
            endpoint_names=["export2"],
            enabled=True,
        ),
    ],
    enrichments=[azure.iot.IoTHubEnrichmentArgs(
        key="tenant",
        value="$twin.tags.Tenant",
        endpoint_names=[
            "export",
            "export2",
        ],
    )],
    cloud_to_device=azure.iot.IoTHubCloudToDeviceArgs(
        max_delivery_count=30,
        default_ttl="PT1H",
        feedbacks=[azure.iot.IoTHubCloudToDeviceFeedbackArgs(
            time_to_live="PT1H10M",
            max_delivery_count=15,
            lock_duration="PT30S",
        )],
    ),
    tags={
        "purpose": "testing",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
});
const exampleContainer = new azure.storage.Container("exampleContainer", {
    storageAccountName: exampleAccount.name,
    containerAccessType: "private",
});
const exampleEventHubNamespace = new azure.eventhub.EventHubNamespace("exampleEventHubNamespace", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    sku: "Basic",
});
const exampleEventHub = new azure.eventhub.EventHub("exampleEventHub", {
    resourceGroupName: exampleResourceGroup.name,
    namespaceName: exampleEventHubNamespace.name,
    partitionCount: 2,
    messageRetention: 1,
});
const exampleAuthorizationRule = new azure.eventhub.AuthorizationRule("exampleAuthorizationRule", {
    resourceGroupName: exampleResourceGroup.name,
    namespaceName: exampleEventHubNamespace.name,
    eventhubName: exampleEventHub.name,
    send: true,
});
const exampleIoTHub = new azure.iot.IoTHub("exampleIoTHub", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    sku: {
        name: "S1",
        capacity: 1,
    },
    endpoints: [
        {
            type: "AzureIotHub.StorageContainer",
            connectionString: exampleAccount.primaryBlobConnectionString,
            name: "export",
            batchFrequencyInSeconds: 60,
            maxChunkSizeInBytes: 10485760,
            containerName: exampleContainer.name,
            encoding: "Avro",
            fileNameFormat: "{iothub}/{partition}_{YYYY}_{MM}_{DD}_{HH}_{mm}",
        },
        {
            type: "AzureIotHub.EventHub",
            connectionString: exampleAuthorizationRule.primaryConnectionString,
            name: "export2",
        },
    ],
    routes: [
        {
            name: "export",
            source: "DeviceMessages",
            condition: "true",
            endpointNames: ["export"],
            enabled: true,
        },
        {
            name: "export2",
            source: "DeviceMessages",
            condition: "true",
            endpointNames: ["export2"],
            enabled: true,
        },
    ],
    enrichments: [{
        key: "tenant",
        value: `$twin.tags.Tenant`,
        endpointNames: [
            "export",
            "export2",
        ],
    }],
    cloudToDevice: {
        maxDeliveryCount: 30,
        defaultTtl: "PT1H",
        feedbacks: [{
            timeToLive: "PT1H10M",
            maxDeliveryCount: 15,
            lockDuration: "PT30S",
        }],
    },
    tags: {
        purpose: "testing",
    },
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleAccount:
    type: azure:storage:Account
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      accountTier: Standard
      accountReplicationType: LRS
  exampleContainer:
    type: azure:storage:Container
    properties:
      storageAccountName: ${exampleAccount.name}
      containerAccessType: private
  exampleEventHubNamespace:
    type: azure:eventhub:EventHubNamespace
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      sku: Basic
  exampleEventHub:
    type: azure:eventhub:EventHub
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      namespaceName: ${exampleEventHubNamespace.name}
      partitionCount: 2
      messageRetention: 1
  exampleAuthorizationRule:
    type: azure:eventhub:AuthorizationRule
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      namespaceName: ${exampleEventHubNamespace.name}
      eventhubName: ${exampleEventHub.name}
      send: true
  exampleIoTHub:
    type: azure:iot:IoTHub
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      sku:
        name: S1
        capacity: 1
      endpoints:
        - type: AzureIotHub.StorageContainer
          connectionString: ${exampleAccount.primaryBlobConnectionString}
          name: export
          batchFrequencyInSeconds: 60
          maxChunkSizeInBytes: 1.048576e+07
          containerName: ${exampleContainer.name}
          encoding: Avro
          fileNameFormat: '{iothub}/{partition}_{YYYY}_{MM}_{DD}_{HH}_{mm}'
        - type: AzureIotHub.EventHub
          connectionString: ${exampleAuthorizationRule.primaryConnectionString}
          name: export2
      routes:
        - name: export
          source: DeviceMessages
          condition: true
          endpointNames:
            - export
          enabled: true
        - name: export2
          source: DeviceMessages
          condition: true
          endpointNames:
            - export2
          enabled: true
      enrichments:
        - key: tenant
          value: $twin.tags.Tenant
          endpointNames:
            - export
            - export2
      cloudToDevice:
        maxDeliveryCount: 30
        defaultTtl: PT1H
        feedbacks:
          - timeToLive: PT1H10M
            maxDeliveryCount: 15
            lockDuration: PT30S
      tags:
        purpose: testing

Create IoTHub Resource

new IoTHub(name: string, args: IoTHubArgs, opts?: CustomResourceOptions);
@overload
def IoTHub(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           cloud_to_device: Optional[IoTHubCloudToDeviceArgs] = None,
           endpoints: Optional[Sequence[IoTHubEndpointArgs]] = None,
           enrichments: Optional[Sequence[IoTHubEnrichmentArgs]] = None,
           event_hub_partition_count: Optional[int] = None,
           event_hub_retention_in_days: Optional[int] = None,
           fallback_route: Optional[IoTHubFallbackRouteArgs] = None,
           file_upload: Optional[IoTHubFileUploadArgs] = None,
           identity: Optional[IoTHubIdentityArgs] = None,
           location: Optional[str] = None,
           min_tls_version: Optional[str] = None,
           name: Optional[str] = None,
           network_rule_sets: Optional[Sequence[IoTHubNetworkRuleSetArgs]] = None,
           public_network_access_enabled: Optional[bool] = None,
           resource_group_name: Optional[str] = None,
           routes: Optional[Sequence[IoTHubRouteArgs]] = None,
           sku: Optional[IoTHubSkuArgs] = None,
           tags: Optional[Mapping[str, str]] = None)
@overload
def IoTHub(resource_name: str,
           args: IoTHubArgs,
           opts: Optional[ResourceOptions] = None)
func NewIoTHub(ctx *Context, name string, args IoTHubArgs, opts ...ResourceOption) (*IoTHub, error)
public IoTHub(string name, IoTHubArgs args, CustomResourceOptions? opts = null)
public IoTHub(String name, IoTHubArgs args)
public IoTHub(String name, IoTHubArgs args, CustomResourceOptions options)
type: azure:iot:IoTHub
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

ResourceGroupName string

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

Sku IoTHubSkuArgs

A sku block as defined below.

CloudToDevice IoTHubCloudToDeviceArgs

A cloud_to_device block as defined below.

Endpoints List<IoTHubEndpointArgs>

An endpoint block as defined below.

Enrichments List<IoTHubEnrichmentArgs>

A enrichment block as defined below.

EventHubPartitionCount int

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

EventHubRetentionInDays int

The event hub retention to use in days. Must be between 1 and 7.

FallbackRoute IoTHubFallbackRouteArgs

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

FileUpload IoTHubFileUploadArgs

A file_upload block as defined below.

Identity IoTHubIdentityArgs

An identity block as defined below.

Location string

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

MinTlsVersion string

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

Name string

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

NetworkRuleSets List<IoTHubNetworkRuleSetArgs>

A network_rule_set block as defined below.

PublicNetworkAccessEnabled bool

Is the IotHub resource accessible from a public network?

Routes List<IoTHubRouteArgs>

A route block as defined below.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

ResourceGroupName string

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

Sku IoTHubSkuArgs

A sku block as defined below.

CloudToDevice IoTHubCloudToDeviceArgs

A cloud_to_device block as defined below.

Endpoints []IoTHubEndpointArgs

An endpoint block as defined below.

Enrichments []IoTHubEnrichmentArgs

A enrichment block as defined below.

EventHubPartitionCount int

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

EventHubRetentionInDays int

The event hub retention to use in days. Must be between 1 and 7.

FallbackRoute IoTHubFallbackRouteArgs

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

FileUpload IoTHubFileUploadArgs

A file_upload block as defined below.

Identity IoTHubIdentityArgs

An identity block as defined below.

Location string

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

MinTlsVersion string

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

Name string

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

NetworkRuleSets []IoTHubNetworkRuleSetArgs

A network_rule_set block as defined below.

PublicNetworkAccessEnabled bool

Is the IotHub resource accessible from a public network?

Routes []IoTHubRouteArgs

A route block as defined below.

Tags map[string]string

A mapping of tags to assign to the resource.

resourceGroupName String

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

sku IoTHubSkuArgs

A sku block as defined below.

cloudToDevice IoTHubCloudToDeviceArgs

A cloud_to_device block as defined below.

endpoints List<IoTHubEndpointArgs>

An endpoint block as defined below.

enrichments List<IoTHubEnrichmentArgs>

A enrichment block as defined below.

eventHubPartitionCount Integer

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

eventHubRetentionInDays Integer

The event hub retention to use in days. Must be between 1 and 7.

fallbackRoute IoTHubFallbackRouteArgs

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

fileUpload IoTHubFileUploadArgs

A file_upload block as defined below.

identity IoTHubIdentityArgs

An identity block as defined below.

location String

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

minTlsVersion String

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

name String

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

networkRuleSets List<IoTHubNetworkRuleSetArgs>

A network_rule_set block as defined below.

publicNetworkAccessEnabled Boolean

Is the IotHub resource accessible from a public network?

routes List<IoTHubRouteArgs>

A route block as defined below.

tags Map<String,String>

A mapping of tags to assign to the resource.

resourceGroupName string

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

sku IoTHubSkuArgs

A sku block as defined below.

cloudToDevice IoTHubCloudToDeviceArgs

A cloud_to_device block as defined below.

endpoints IoTHubEndpointArgs[]

An endpoint block as defined below.

enrichments IoTHubEnrichmentArgs[]

A enrichment block as defined below.

eventHubPartitionCount number

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

eventHubRetentionInDays number

The event hub retention to use in days. Must be between 1 and 7.

fallbackRoute IoTHubFallbackRouteArgs

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

fileUpload IoTHubFileUploadArgs

A file_upload block as defined below.

identity IoTHubIdentityArgs

An identity block as defined below.

location string

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

minTlsVersion string

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

name string

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

networkRuleSets IoTHubNetworkRuleSetArgs[]

A network_rule_set block as defined below.

publicNetworkAccessEnabled boolean

Is the IotHub resource accessible from a public network?

routes IoTHubRouteArgs[]

A route block as defined below.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

resource_group_name str

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

sku IoTHubSkuArgs

A sku block as defined below.

cloud_to_device IoTHubCloudToDeviceArgs

A cloud_to_device block as defined below.

endpoints Sequence[IoTHubEndpointArgs]

An endpoint block as defined below.

enrichments Sequence[IoTHubEnrichmentArgs]

A enrichment block as defined below.

event_hub_partition_count int

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

event_hub_retention_in_days int

The event hub retention to use in days. Must be between 1 and 7.

fallback_route IoTHubFallbackRouteArgs

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

file_upload IoTHubFileUploadArgs

A file_upload block as defined below.

identity IoTHubIdentityArgs

An identity block as defined below.

location str

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

min_tls_version str

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

name str

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

network_rule_sets Sequence[IoTHubNetworkRuleSetArgs]

A network_rule_set block as defined below.

public_network_access_enabled bool

Is the IotHub resource accessible from a public network?

routes Sequence[IoTHubRouteArgs]

A route block as defined below.

tags Mapping[str, str]

A mapping of tags to assign to the resource.

resourceGroupName String

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

sku Property Map

A sku block as defined below.

cloudToDevice Property Map

A cloud_to_device block as defined below.

endpoints List<Property Map>

An endpoint block as defined below.

enrichments List<Property Map>

A enrichment block as defined below.

eventHubPartitionCount Number

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

eventHubRetentionInDays Number

The event hub retention to use in days. Must be between 1 and 7.

fallbackRoute Property Map

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

fileUpload Property Map

A file_upload block as defined below.

identity Property Map

An identity block as defined below.

location String

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

minTlsVersion String

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

name String

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

networkRuleSets List<Property Map>

A network_rule_set block as defined below.

publicNetworkAccessEnabled Boolean

Is the IotHub resource accessible from a public network?

routes List<Property Map>

A route block as defined below.

tags Map<String>

A mapping of tags to assign to the resource.

Outputs

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

EventHubEventsEndpoint string

The EventHub compatible endpoint for events data

EventHubEventsNamespace string

The EventHub namespace for events data

EventHubEventsPath string

The EventHub compatible path for events data

EventHubOperationsEndpoint string

The EventHub compatible endpoint for operational data

EventHubOperationsPath string

The EventHub compatible path for operational data

Hostname string

The hostname of the IotHub Resource.

Id string

The provider-assigned unique ID for this managed resource.

SharedAccessPolicies List<IoTHubSharedAccessPolicy>

One or more shared_access_policy blocks as defined below.

Type string

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

EventHubEventsEndpoint string

The EventHub compatible endpoint for events data

EventHubEventsNamespace string

The EventHub namespace for events data

EventHubEventsPath string

The EventHub compatible path for events data

EventHubOperationsEndpoint string

The EventHub compatible endpoint for operational data

EventHubOperationsPath string

The EventHub compatible path for operational data

Hostname string

The hostname of the IotHub Resource.

Id string

The provider-assigned unique ID for this managed resource.

SharedAccessPolicies []IoTHubSharedAccessPolicy

One or more shared_access_policy blocks as defined below.

Type string

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

eventHubEventsEndpoint String

The EventHub compatible endpoint for events data

eventHubEventsNamespace String

The EventHub namespace for events data

eventHubEventsPath String

The EventHub compatible path for events data

eventHubOperationsEndpoint String

The EventHub compatible endpoint for operational data

eventHubOperationsPath String

The EventHub compatible path for operational data

hostname String

The hostname of the IotHub Resource.

id String

The provider-assigned unique ID for this managed resource.

sharedAccessPolicies List<IoTHubSharedAccessPolicy>

One or more shared_access_policy blocks as defined below.

type String

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

eventHubEventsEndpoint string

The EventHub compatible endpoint for events data

eventHubEventsNamespace string

The EventHub namespace for events data

eventHubEventsPath string

The EventHub compatible path for events data

eventHubOperationsEndpoint string

The EventHub compatible endpoint for operational data

eventHubOperationsPath string

The EventHub compatible path for operational data

hostname string

The hostname of the IotHub Resource.

id string

The provider-assigned unique ID for this managed resource.

sharedAccessPolicies IoTHubSharedAccessPolicy[]

One or more shared_access_policy blocks as defined below.

type string

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

event_hub_events_endpoint str

The EventHub compatible endpoint for events data

event_hub_events_namespace str

The EventHub namespace for events data

event_hub_events_path str

The EventHub compatible path for events data

event_hub_operations_endpoint str

The EventHub compatible endpoint for operational data

event_hub_operations_path str

The EventHub compatible path for operational data

hostname str

The hostname of the IotHub Resource.

id str

The provider-assigned unique ID for this managed resource.

shared_access_policies Sequence[IoTHubSharedAccessPolicy]

One or more shared_access_policy blocks as defined below.

type str

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

eventHubEventsEndpoint String

The EventHub compatible endpoint for events data

eventHubEventsNamespace String

The EventHub namespace for events data

eventHubEventsPath String

The EventHub compatible path for events data

eventHubOperationsEndpoint String

The EventHub compatible endpoint for operational data

eventHubOperationsPath String

The EventHub compatible path for operational data

hostname String

The hostname of the IotHub Resource.

id String

The provider-assigned unique ID for this managed resource.

sharedAccessPolicies List<Property Map>

One or more shared_access_policy blocks as defined below.

type String

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

Look up Existing IoTHub Resource

Get an existing IoTHub 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?: IoTHubState, opts?: CustomResourceOptions): IoTHub
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloud_to_device: Optional[IoTHubCloudToDeviceArgs] = None,
        endpoints: Optional[Sequence[IoTHubEndpointArgs]] = None,
        enrichments: Optional[Sequence[IoTHubEnrichmentArgs]] = None,
        event_hub_events_endpoint: Optional[str] = None,
        event_hub_events_namespace: Optional[str] = None,
        event_hub_events_path: Optional[str] = None,
        event_hub_operations_endpoint: Optional[str] = None,
        event_hub_operations_path: Optional[str] = None,
        event_hub_partition_count: Optional[int] = None,
        event_hub_retention_in_days: Optional[int] = None,
        fallback_route: Optional[IoTHubFallbackRouteArgs] = None,
        file_upload: Optional[IoTHubFileUploadArgs] = None,
        hostname: Optional[str] = None,
        identity: Optional[IoTHubIdentityArgs] = None,
        location: Optional[str] = None,
        min_tls_version: Optional[str] = None,
        name: Optional[str] = None,
        network_rule_sets: Optional[Sequence[IoTHubNetworkRuleSetArgs]] = None,
        public_network_access_enabled: Optional[bool] = None,
        resource_group_name: Optional[str] = None,
        routes: Optional[Sequence[IoTHubRouteArgs]] = None,
        shared_access_policies: Optional[Sequence[IoTHubSharedAccessPolicyArgs]] = None,
        sku: Optional[IoTHubSkuArgs] = None,
        tags: Optional[Mapping[str, str]] = None,
        type: Optional[str] = None) -> IoTHub
func GetIoTHub(ctx *Context, name string, id IDInput, state *IoTHubState, opts ...ResourceOption) (*IoTHub, error)
public static IoTHub Get(string name, Input<string> id, IoTHubState? state, CustomResourceOptions? opts = null)
public static IoTHub get(String name, Output<String> id, IoTHubState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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:
CloudToDevice IoTHubCloudToDeviceArgs

A cloud_to_device block as defined below.

Endpoints List<IoTHubEndpointArgs>

An endpoint block as defined below.

Enrichments List<IoTHubEnrichmentArgs>

A enrichment block as defined below.

EventHubEventsEndpoint string

The EventHub compatible endpoint for events data

EventHubEventsNamespace string

The EventHub namespace for events data

EventHubEventsPath string

The EventHub compatible path for events data

EventHubOperationsEndpoint string

The EventHub compatible endpoint for operational data

EventHubOperationsPath string

The EventHub compatible path for operational data

EventHubPartitionCount int

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

EventHubRetentionInDays int

The event hub retention to use in days. Must be between 1 and 7.

FallbackRoute IoTHubFallbackRouteArgs

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

FileUpload IoTHubFileUploadArgs

A file_upload block as defined below.

Hostname string

The hostname of the IotHub Resource.

Identity IoTHubIdentityArgs

An identity block as defined below.

Location string

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

MinTlsVersion string

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

Name string

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

NetworkRuleSets List<IoTHubNetworkRuleSetArgs>

A network_rule_set block as defined below.

PublicNetworkAccessEnabled bool

Is the IotHub resource accessible from a public network?

ResourceGroupName string

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

Routes List<IoTHubRouteArgs>

A route block as defined below.

SharedAccessPolicies List<IoTHubSharedAccessPolicyArgs>

One or more shared_access_policy blocks as defined below.

Sku IoTHubSkuArgs

A sku block as defined below.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

Type string

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

CloudToDevice IoTHubCloudToDeviceArgs

A cloud_to_device block as defined below.

Endpoints []IoTHubEndpointArgs

An endpoint block as defined below.

Enrichments []IoTHubEnrichmentArgs

A enrichment block as defined below.

EventHubEventsEndpoint string

The EventHub compatible endpoint for events data

EventHubEventsNamespace string

The EventHub namespace for events data

EventHubEventsPath string

The EventHub compatible path for events data

EventHubOperationsEndpoint string

The EventHub compatible endpoint for operational data

EventHubOperationsPath string

The EventHub compatible path for operational data

EventHubPartitionCount int

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

EventHubRetentionInDays int

The event hub retention to use in days. Must be between 1 and 7.

FallbackRoute IoTHubFallbackRouteArgs

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

FileUpload IoTHubFileUploadArgs

A file_upload block as defined below.

Hostname string

The hostname of the IotHub Resource.

Identity IoTHubIdentityArgs

An identity block as defined below.

Location string

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

MinTlsVersion string

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

Name string

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

NetworkRuleSets []IoTHubNetworkRuleSetArgs

A network_rule_set block as defined below.

PublicNetworkAccessEnabled bool

Is the IotHub resource accessible from a public network?

ResourceGroupName string

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

Routes []IoTHubRouteArgs

A route block as defined below.

SharedAccessPolicies []IoTHubSharedAccessPolicyArgs

One or more shared_access_policy blocks as defined below.

Sku IoTHubSkuArgs

A sku block as defined below.

Tags map[string]string

A mapping of tags to assign to the resource.

Type string

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

cloudToDevice IoTHubCloudToDeviceArgs

A cloud_to_device block as defined below.

endpoints List<IoTHubEndpointArgs>

An endpoint block as defined below.

enrichments List<IoTHubEnrichmentArgs>

A enrichment block as defined below.

eventHubEventsEndpoint String

The EventHub compatible endpoint for events data

eventHubEventsNamespace String

The EventHub namespace for events data

eventHubEventsPath String

The EventHub compatible path for events data

eventHubOperationsEndpoint String

The EventHub compatible endpoint for operational data

eventHubOperationsPath String

The EventHub compatible path for operational data

eventHubPartitionCount Integer

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

eventHubRetentionInDays Integer

The event hub retention to use in days. Must be between 1 and 7.

fallbackRoute IoTHubFallbackRouteArgs

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

fileUpload IoTHubFileUploadArgs

A file_upload block as defined below.

hostname String

The hostname of the IotHub Resource.

identity IoTHubIdentityArgs

An identity block as defined below.

location String

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

minTlsVersion String

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

name String

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

networkRuleSets List<IoTHubNetworkRuleSetArgs>

A network_rule_set block as defined below.

publicNetworkAccessEnabled Boolean

Is the IotHub resource accessible from a public network?

resourceGroupName String

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

routes List<IoTHubRouteArgs>

A route block as defined below.

sharedAccessPolicies List<IoTHubSharedAccessPolicyArgs>

One or more shared_access_policy blocks as defined below.

sku IoTHubSkuArgs

A sku block as defined below.

tags Map<String,String>

A mapping of tags to assign to the resource.

type String

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

cloudToDevice IoTHubCloudToDeviceArgs

A cloud_to_device block as defined below.

endpoints IoTHubEndpointArgs[]

An endpoint block as defined below.

enrichments IoTHubEnrichmentArgs[]

A enrichment block as defined below.

eventHubEventsEndpoint string

The EventHub compatible endpoint for events data

eventHubEventsNamespace string

The EventHub namespace for events data

eventHubEventsPath string

The EventHub compatible path for events data

eventHubOperationsEndpoint string

The EventHub compatible endpoint for operational data

eventHubOperationsPath string

The EventHub compatible path for operational data

eventHubPartitionCount number

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

eventHubRetentionInDays number

The event hub retention to use in days. Must be between 1 and 7.

fallbackRoute IoTHubFallbackRouteArgs

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

fileUpload IoTHubFileUploadArgs

A file_upload block as defined below.

hostname string

The hostname of the IotHub Resource.

identity IoTHubIdentityArgs

An identity block as defined below.

location string

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

minTlsVersion string

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

name string

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

networkRuleSets IoTHubNetworkRuleSetArgs[]

A network_rule_set block as defined below.

publicNetworkAccessEnabled boolean

Is the IotHub resource accessible from a public network?

resourceGroupName string

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

routes IoTHubRouteArgs[]

A route block as defined below.

sharedAccessPolicies IoTHubSharedAccessPolicyArgs[]

One or more shared_access_policy blocks as defined below.

sku IoTHubSkuArgs

A sku block as defined below.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

type string

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

cloud_to_device IoTHubCloudToDeviceArgs

A cloud_to_device block as defined below.

endpoints Sequence[IoTHubEndpointArgs]

An endpoint block as defined below.

enrichments Sequence[IoTHubEnrichmentArgs]

A enrichment block as defined below.

event_hub_events_endpoint str

The EventHub compatible endpoint for events data

event_hub_events_namespace str

The EventHub namespace for events data

event_hub_events_path str

The EventHub compatible path for events data

event_hub_operations_endpoint str

The EventHub compatible endpoint for operational data

event_hub_operations_path str

The EventHub compatible path for operational data

event_hub_partition_count int

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

event_hub_retention_in_days int

The event hub retention to use in days. Must be between 1 and 7.

fallback_route IoTHubFallbackRouteArgs

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

file_upload IoTHubFileUploadArgs

A file_upload block as defined below.

hostname str

The hostname of the IotHub Resource.

identity IoTHubIdentityArgs

An identity block as defined below.

location str

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

min_tls_version str

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

name str

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

network_rule_sets Sequence[IoTHubNetworkRuleSetArgs]

A network_rule_set block as defined below.

public_network_access_enabled bool

Is the IotHub resource accessible from a public network?

resource_group_name str

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

routes Sequence[IoTHubRouteArgs]

A route block as defined below.

shared_access_policies Sequence[IoTHubSharedAccessPolicyArgs]

One or more shared_access_policy blocks as defined below.

sku IoTHubSkuArgs

A sku block as defined below.

tags Mapping[str, str]

A mapping of tags to assign to the resource.

type str

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

cloudToDevice Property Map

A cloud_to_device block as defined below.

endpoints List<Property Map>

An endpoint block as defined below.

enrichments List<Property Map>

A enrichment block as defined below.

eventHubEventsEndpoint String

The EventHub compatible endpoint for events data

eventHubEventsNamespace String

The EventHub namespace for events data

eventHubEventsPath String

The EventHub compatible path for events data

eventHubOperationsEndpoint String

The EventHub compatible endpoint for operational data

eventHubOperationsPath String

The EventHub compatible path for operational data

eventHubPartitionCount Number

The number of device-to-cloud partitions used by backing event hubs. Must be between 2 and 128.

eventHubRetentionInDays Number

The event hub retention to use in days. Must be between 1 and 7.

fallbackRoute Property Map

A fallback_route block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.

fileUpload Property Map

A file_upload block as defined below.

hostname String

The hostname of the IotHub Resource.

identity Property Map

An identity block as defined below.

location String

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

minTlsVersion String

Specifies the minimum TLS version to support for this hub. The only valid value is 1.2. Changing this forces a new resource to be created.

name String

Specifies the name of the IotHub resource. Changing this forces a new resource to be created.

networkRuleSets List<Property Map>

A network_rule_set block as defined below.

publicNetworkAccessEnabled Boolean

Is the IotHub resource accessible from a public network?

resourceGroupName String

The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.

routes List<Property Map>

A route block as defined below.

sharedAccessPolicies List<Property Map>

One or more shared_access_policy blocks as defined below.

sku Property Map

A sku block as defined below.

tags Map<String>

A mapping of tags to assign to the resource.

type String

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

Supporting Types

IoTHubCloudToDevice

DefaultTtl string

The default time to live for cloud-to-device messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

Feedbacks List<IoTHubCloudToDeviceFeedback>

A feedback block as defined below.

MaxDeliveryCount int

The maximum delivery count for cloud-to-device per-device queues. This value must be between 1 and 100. Defaults to 10.

DefaultTtl string

The default time to live for cloud-to-device messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

Feedbacks []IoTHubCloudToDeviceFeedback

A feedback block as defined below.

MaxDeliveryCount int

The maximum delivery count for cloud-to-device per-device queues. This value must be between 1 and 100. Defaults to 10.

defaultTtl String

The default time to live for cloud-to-device messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

feedbacks List<IoTHubCloudToDeviceFeedback>

A feedback block as defined below.

maxDeliveryCount Integer

The maximum delivery count for cloud-to-device per-device queues. This value must be between 1 and 100. Defaults to 10.

defaultTtl string

The default time to live for cloud-to-device messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

feedbacks IoTHubCloudToDeviceFeedback[]

A feedback block as defined below.

maxDeliveryCount number

The maximum delivery count for cloud-to-device per-device queues. This value must be between 1 and 100. Defaults to 10.

default_ttl str

The default time to live for cloud-to-device messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

feedbacks Sequence[IoTHubCloudToDeviceFeedback]

A feedback block as defined below.

max_delivery_count int

The maximum delivery count for cloud-to-device per-device queues. This value must be between 1 and 100. Defaults to 10.

defaultTtl String

The default time to live for cloud-to-device messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

feedbacks List<Property Map>

A feedback block as defined below.

maxDeliveryCount Number

The maximum delivery count for cloud-to-device per-device queues. This value must be between 1 and 100. Defaults to 10.

IoTHubCloudToDeviceFeedback

LockDuration string

The lock duration for the feedback queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT60S.

MaxDeliveryCount int

The maximum delivery count for the feedback queue. This value must be between 1 and 100. Defaults to 10.

TimeToLive string

The retention time for service-bound feedback messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

LockDuration string

The lock duration for the feedback queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT60S.

MaxDeliveryCount int

The maximum delivery count for the feedback queue. This value must be between 1 and 100. Defaults to 10.

TimeToLive string

The retention time for service-bound feedback messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

lockDuration String

The lock duration for the feedback queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT60S.

maxDeliveryCount Integer

The maximum delivery count for the feedback queue. This value must be between 1 and 100. Defaults to 10.

timeToLive String

The retention time for service-bound feedback messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

lockDuration string

The lock duration for the feedback queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT60S.

maxDeliveryCount number

The maximum delivery count for the feedback queue. This value must be between 1 and 100. Defaults to 10.

timeToLive string

The retention time for service-bound feedback messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

lock_duration str

The lock duration for the feedback queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT60S.

max_delivery_count int

The maximum delivery count for the feedback queue. This value must be between 1 and 100. Defaults to 10.

time_to_live str

The retention time for service-bound feedback messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

lockDuration String

The lock duration for the feedback queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT60S.

maxDeliveryCount Number

The maximum delivery count for the feedback queue. This value must be between 1 and 100. Defaults to 10.

timeToLive String

The retention time for service-bound feedback messages, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

IoTHubEndpoint

Name string

The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: events, operationsMonitoringEvents, fileNotifications and $default.

Type string

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

AuthenticationType string

The type used to authenticate against the endpoint. Possible values are keyBased and identityBased. Defaults to keyBased.

BatchFrequencyInSeconds int

Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

ConnectionString string

The connection string for the endpoint. This attribute is mandatory and can only be specified when authentication_type is keyBased.

ContainerName string

The name of storage container in the storage account. This attribute is mandatory for endpoint type AzureIotHub.StorageContainer.

Encoding string

Encoding that is used to serialize messages to blobs. Supported values are Avro, AvroDeflate and JSON. Default value is Avro. This attribute is applicable for endpoint type AzureIotHub.StorageContainer. Changing this forces a new resource to be created.

EndpointUri string

URI of the Service Bus or Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

EntityPath string

Name of the Service Bus Queue/Topic or Event Hub. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

FileNameFormat string

File name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

IdentityId string

The ID of the User Managed Identity used to authenticate against the endpoint.

MaxChunkSizeInBytes int

Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

ResourceGroupName string

The resource group in which the endpoint will be created.

Name string

The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: events, operationsMonitoringEvents, fileNotifications and $default.

Type string

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

AuthenticationType string

The type used to authenticate against the endpoint. Possible values are keyBased and identityBased. Defaults to keyBased.

BatchFrequencyInSeconds int

Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

ConnectionString string

The connection string for the endpoint. This attribute is mandatory and can only be specified when authentication_type is keyBased.

ContainerName string

The name of storage container in the storage account. This attribute is mandatory for endpoint type AzureIotHub.StorageContainer.

Encoding string

Encoding that is used to serialize messages to blobs. Supported values are Avro, AvroDeflate and JSON. Default value is Avro. This attribute is applicable for endpoint type AzureIotHub.StorageContainer. Changing this forces a new resource to be created.

EndpointUri string

URI of the Service Bus or Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

EntityPath string

Name of the Service Bus Queue/Topic or Event Hub. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

FileNameFormat string

File name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

IdentityId string

The ID of the User Managed Identity used to authenticate against the endpoint.

MaxChunkSizeInBytes int

Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

ResourceGroupName string

The resource group in which the endpoint will be created.

name String

The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: events, operationsMonitoringEvents, fileNotifications and $default.

type String

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

authenticationType String

The type used to authenticate against the endpoint. Possible values are keyBased and identityBased. Defaults to keyBased.

batchFrequencyInSeconds Integer

Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

connectionString String

The connection string for the endpoint. This attribute is mandatory and can only be specified when authentication_type is keyBased.

containerName String

The name of storage container in the storage account. This attribute is mandatory for endpoint type AzureIotHub.StorageContainer.

encoding String

Encoding that is used to serialize messages to blobs. Supported values are Avro, AvroDeflate and JSON. Default value is Avro. This attribute is applicable for endpoint type AzureIotHub.StorageContainer. Changing this forces a new resource to be created.

endpointUri String

URI of the Service Bus or Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

entityPath String

Name of the Service Bus Queue/Topic or Event Hub. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

fileNameFormat String

File name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

identityId String

The ID of the User Managed Identity used to authenticate against the endpoint.

maxChunkSizeInBytes Integer

Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

resourceGroupName String

The resource group in which the endpoint will be created.

name string

The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: events, operationsMonitoringEvents, fileNotifications and $default.

type string

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

authenticationType string

The type used to authenticate against the endpoint. Possible values are keyBased and identityBased. Defaults to keyBased.

batchFrequencyInSeconds number

Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

connectionString string

The connection string for the endpoint. This attribute is mandatory and can only be specified when authentication_type is keyBased.

containerName string

The name of storage container in the storage account. This attribute is mandatory for endpoint type AzureIotHub.StorageContainer.

encoding string

Encoding that is used to serialize messages to blobs. Supported values are Avro, AvroDeflate and JSON. Default value is Avro. This attribute is applicable for endpoint type AzureIotHub.StorageContainer. Changing this forces a new resource to be created.

endpointUri string

URI of the Service Bus or Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

entityPath string

Name of the Service Bus Queue/Topic or Event Hub. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

fileNameFormat string

File name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

identityId string

The ID of the User Managed Identity used to authenticate against the endpoint.

maxChunkSizeInBytes number

Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

resourceGroupName string

The resource group in which the endpoint will be created.

name str

The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: events, operationsMonitoringEvents, fileNotifications and $default.

type str

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

authentication_type str

The type used to authenticate against the endpoint. Possible values are keyBased and identityBased. Defaults to keyBased.

batch_frequency_in_seconds int

Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

connection_string str

The connection string for the endpoint. This attribute is mandatory and can only be specified when authentication_type is keyBased.

container_name str

The name of storage container in the storage account. This attribute is mandatory for endpoint type AzureIotHub.StorageContainer.

encoding str

Encoding that is used to serialize messages to blobs. Supported values are Avro, AvroDeflate and JSON. Default value is Avro. This attribute is applicable for endpoint type AzureIotHub.StorageContainer. Changing this forces a new resource to be created.

endpoint_uri str

URI of the Service Bus or Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

entity_path str

Name of the Service Bus Queue/Topic or Event Hub. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

file_name_format str

File name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

identity_id str

The ID of the User Managed Identity used to authenticate against the endpoint.

max_chunk_size_in_bytes int

Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

resource_group_name str

The resource group in which the endpoint will be created.

name String

The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: events, operationsMonitoringEvents, fileNotifications and $default.

type String

The type of the endpoint. Possible values are AzureIotHub.StorageContainer, AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

authenticationType String

The type used to authenticate against the endpoint. Possible values are keyBased and identityBased. Defaults to keyBased.

batchFrequencyInSeconds Number

Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

connectionString String

The connection string for the endpoint. This attribute is mandatory and can only be specified when authentication_type is keyBased.

containerName String

The name of storage container in the storage account. This attribute is mandatory for endpoint type AzureIotHub.StorageContainer.

encoding String

Encoding that is used to serialize messages to blobs. Supported values are Avro, AvroDeflate and JSON. Default value is Avro. This attribute is applicable for endpoint type AzureIotHub.StorageContainer. Changing this forces a new resource to be created.

endpointUri String

URI of the Service Bus or Event Hubs Namespace endpoint. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

entityPath String

Name of the Service Bus Queue/Topic or Event Hub. This attribute can only be specified and is mandatory when authentication_type is identityBased for endpoint type AzureIotHub.ServiceBusQueue, AzureIotHub.ServiceBusTopic or AzureIotHub.EventHub.

fileNameFormat String

File name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

identityId String

The ID of the User Managed Identity used to authenticate against the endpoint.

maxChunkSizeInBytes Number

Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is applicable for endpoint type AzureIotHub.StorageContainer.

resourceGroupName String

The resource group in which the endpoint will be created.

IoTHubEnrichment

EndpointNames List<string>

The list of endpoints which will be enriched.

Key string

The key of the enrichment.

Value string

The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use $iothubname) or information from the device twin (ex: $twin.tags.latitude)

EndpointNames []string

The list of endpoints which will be enriched.

Key string

The key of the enrichment.

Value string

The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use $iothubname) or information from the device twin (ex: $twin.tags.latitude)

endpointNames List<String>

The list of endpoints which will be enriched.

key String

The key of the enrichment.

value String

The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use $iothubname) or information from the device twin (ex: $twin.tags.latitude)

endpointNames string[]

The list of endpoints which will be enriched.

key string

The key of the enrichment.

value string

The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use $iothubname) or information from the device twin (ex: $twin.tags.latitude)

endpoint_names Sequence[str]

The list of endpoints which will be enriched.

key str

The key of the enrichment.

value str

The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use $iothubname) or information from the device twin (ex: $twin.tags.latitude)

endpointNames List<String>

The list of endpoints which will be enriched.

key String

The key of the enrichment.

value String

The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use $iothubname) or information from the device twin (ex: $twin.tags.latitude)

IoTHubFallbackRoute

Condition string

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

Enabled bool

Used to specify whether the fallback route is enabled.

EndpointNames List<string>

The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.

Source string

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

Condition string

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

Enabled bool

Used to specify whether the fallback route is enabled.

EndpointNames []string

The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.

Source string

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

condition String

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

enabled Boolean

Used to specify whether the fallback route is enabled.

endpointNames List<String>

The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.

source String

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

condition string

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

enabled boolean

Used to specify whether the fallback route is enabled.

endpointNames string[]

The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.

source string

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

condition str

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

enabled bool

Used to specify whether the fallback route is enabled.

endpoint_names Sequence[str]

The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.

source str

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

condition String

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

enabled Boolean

Used to specify whether the fallback route is enabled.

endpointNames List<String>

The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.

source String

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

IoTHubFileUpload

ConnectionString string

The connection string for the Azure Storage account to which files are uploaded.

ContainerName string

The name of the root container where the files should be uploaded to. The container need not exist but should be creatable using the connection_string specified.

AuthenticationType string

The type used to authenticate against the storage account. Possible values are keyBased and identityBased. Defaults to keyBased.

DefaultTtl string

The period of time for which a file upload notification message is available to consume before it expires, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

IdentityId string

The ID of the User Managed Identity used to authenticate against the storage account.

LockDuration string

The lock duration for the file upload notifications queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT1M.

MaxDeliveryCount int

The number of times the IoT Hub attempts to deliver a file upload notification message. Defaults to 10.

Notifications bool

Used to specify whether file notifications are sent to IoT Hub on upload. Defaults to false.

SasTtl string

The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 24 hours. Defaults to PT1H.

ConnectionString string

The connection string for the Azure Storage account to which files are uploaded.

ContainerName string

The name of the root container where the files should be uploaded to. The container need not exist but should be creatable using the connection_string specified.

AuthenticationType string

The type used to authenticate against the storage account. Possible values are keyBased and identityBased. Defaults to keyBased.

DefaultTtl string

The period of time for which a file upload notification message is available to consume before it expires, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

IdentityId string

The ID of the User Managed Identity used to authenticate against the storage account.

LockDuration string

The lock duration for the file upload notifications queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT1M.

MaxDeliveryCount int

The number of times the IoT Hub attempts to deliver a file upload notification message. Defaults to 10.

Notifications bool

Used to specify whether file notifications are sent to IoT Hub on upload. Defaults to false.

SasTtl string

The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 24 hours. Defaults to PT1H.

connectionString String

The connection string for the Azure Storage account to which files are uploaded.

containerName String

The name of the root container where the files should be uploaded to. The container need not exist but should be creatable using the connection_string specified.

authenticationType String

The type used to authenticate against the storage account. Possible values are keyBased and identityBased. Defaults to keyBased.

defaultTtl String

The period of time for which a file upload notification message is available to consume before it expires, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

identityId String

The ID of the User Managed Identity used to authenticate against the storage account.

lockDuration String

The lock duration for the file upload notifications queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT1M.

maxDeliveryCount Integer

The number of times the IoT Hub attempts to deliver a file upload notification message. Defaults to 10.

notifications Boolean

Used to specify whether file notifications are sent to IoT Hub on upload. Defaults to false.

sasTtl String

The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 24 hours. Defaults to PT1H.

connectionString string

The connection string for the Azure Storage account to which files are uploaded.

containerName string

The name of the root container where the files should be uploaded to. The container need not exist but should be creatable using the connection_string specified.

authenticationType string

The type used to authenticate against the storage account. Possible values are keyBased and identityBased. Defaults to keyBased.

defaultTtl string

The period of time for which a file upload notification message is available to consume before it expires, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

identityId string

The ID of the User Managed Identity used to authenticate against the storage account.

lockDuration string

The lock duration for the file upload notifications queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT1M.

maxDeliveryCount number

The number of times the IoT Hub attempts to deliver a file upload notification message. Defaults to 10.

notifications boolean

Used to specify whether file notifications are sent to IoT Hub on upload. Defaults to false.

sasTtl string

The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 24 hours. Defaults to PT1H.

connection_string str

The connection string for the Azure Storage account to which files are uploaded.

container_name str

The name of the root container where the files should be uploaded to. The container need not exist but should be creatable using the connection_string specified.

authentication_type str

The type used to authenticate against the storage account. Possible values are keyBased and identityBased. Defaults to keyBased.

default_ttl str

The period of time for which a file upload notification message is available to consume before it expires, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

identity_id str

The ID of the User Managed Identity used to authenticate against the storage account.

lock_duration str

The lock duration for the file upload notifications queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT1M.

max_delivery_count int

The number of times the IoT Hub attempts to deliver a file upload notification message. Defaults to 10.

notifications bool

Used to specify whether file notifications are sent to IoT Hub on upload. Defaults to false.

sas_ttl str

The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 24 hours. Defaults to PT1H.

connectionString String

The connection string for the Azure Storage account to which files are uploaded.

containerName String

The name of the root container where the files should be uploaded to. The container need not exist but should be creatable using the connection_string specified.

authenticationType String

The type used to authenticate against the storage account. Possible values are keyBased and identityBased. Defaults to keyBased.

defaultTtl String

The period of time for which a file upload notification message is available to consume before it expires, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours. Defaults to PT1H.

identityId String

The ID of the User Managed Identity used to authenticate against the storage account.

lockDuration String

The lock duration for the file upload notifications queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds. Defaults to PT1M.

maxDeliveryCount Number

The number of times the IoT Hub attempts to deliver a file upload notification message. Defaults to 10.

notifications Boolean

Used to specify whether file notifications are sent to IoT Hub on upload. Defaults to false.

sasTtl String

The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 24 hours. Defaults to PT1H.

IoTHubIdentity

Type string

Specifies the type of Managed Service Identity that should be configured on this IoT Hub. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

IdentityIds List<string>

Specifies a list of User Assigned Managed Identity IDs to be assigned to this IoT Hub.

PrincipalId string

The Principal ID associated with this Managed Service Identity.

TenantId string

The Tenant ID associated with this Managed Service Identity.

Type string

Specifies the type of Managed Service Identity that should be configured on this IoT Hub. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

IdentityIds []string

Specifies a list of User Assigned Managed Identity IDs to be assigned to this IoT Hub.

PrincipalId string

The Principal ID associated with this Managed Service Identity.

TenantId string

The Tenant ID associated with this Managed Service Identity.

type String

Specifies the type of Managed Service Identity that should be configured on this IoT Hub. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

identityIds List<String>

Specifies a list of User Assigned Managed Identity IDs to be assigned to this IoT Hub.

principalId String

The Principal ID associated with this Managed Service Identity.

tenantId String

The Tenant ID associated with this Managed Service Identity.

type string

Specifies the type of Managed Service Identity that should be configured on this IoT Hub. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

identityIds string[]

Specifies a list of User Assigned Managed Identity IDs to be assigned to this IoT Hub.

principalId string

The Principal ID associated with this Managed Service Identity.

tenantId string

The Tenant ID associated with this Managed Service Identity.

type str

Specifies the type of Managed Service Identity that should be configured on this IoT Hub. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

identity_ids Sequence[str]

Specifies a list of User Assigned Managed Identity IDs to be assigned to this IoT Hub.

principal_id str

The Principal ID associated with this Managed Service Identity.

tenant_id str

The Tenant ID associated with this Managed Service Identity.

type String

Specifies the type of Managed Service Identity that should be configured on this IoT Hub. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

identityIds List<String>

Specifies a list of User Assigned Managed Identity IDs to be assigned to this IoT Hub.

principalId String

The Principal ID associated with this Managed Service Identity.

tenantId String

The Tenant ID associated with this Managed Service Identity.

IoTHubNetworkRuleSet

ApplyToBuiltinEventhubEndpoint bool

Determines if Network Rule Set is also applied to the BuiltIn EventHub EndPoint of the IotHub. Defaults to false.

DefaultAction string

Default Action for Network Rule Set. Possible values are DefaultActionDeny, DefaultActionAllow. Defaults to DefaultActionDeny.

IpRules List<IoTHubNetworkRuleSetIpRule>

One or more ip_rule blocks as defined below.

ApplyToBuiltinEventhubEndpoint bool

Determines if Network Rule Set is also applied to the BuiltIn EventHub EndPoint of the IotHub. Defaults to false.

DefaultAction string

Default Action for Network Rule Set. Possible values are DefaultActionDeny, DefaultActionAllow. Defaults to DefaultActionDeny.

IpRules []IoTHubNetworkRuleSetIpRule

One or more ip_rule blocks as defined below.

applyToBuiltinEventhubEndpoint Boolean

Determines if Network Rule Set is also applied to the BuiltIn EventHub EndPoint of the IotHub. Defaults to false.

defaultAction String

Default Action for Network Rule Set. Possible values are DefaultActionDeny, DefaultActionAllow. Defaults to DefaultActionDeny.

ipRules List<IoTHubNetworkRuleSetIpRule>

One or more ip_rule blocks as defined below.

applyToBuiltinEventhubEndpoint boolean

Determines if Network Rule Set is also applied to the BuiltIn EventHub EndPoint of the IotHub. Defaults to false.

defaultAction string

Default Action for Network Rule Set. Possible values are DefaultActionDeny, DefaultActionAllow. Defaults to DefaultActionDeny.

ipRules IoTHubNetworkRuleSetIpRule[]

One or more ip_rule blocks as defined below.

apply_to_builtin_eventhub_endpoint bool

Determines if Network Rule Set is also applied to the BuiltIn EventHub EndPoint of the IotHub. Defaults to false.

default_action str

Default Action for Network Rule Set. Possible values are DefaultActionDeny, DefaultActionAllow. Defaults to DefaultActionDeny.

ip_rules Sequence[IoTHubNetworkRuleSetIpRule]

One or more ip_rule blocks as defined below.

applyToBuiltinEventhubEndpoint Boolean

Determines if Network Rule Set is also applied to the BuiltIn EventHub EndPoint of the IotHub. Defaults to false.

defaultAction String

Default Action for Network Rule Set. Possible values are DefaultActionDeny, DefaultActionAllow. Defaults to DefaultActionDeny.

ipRules List<Property Map>

One or more ip_rule blocks as defined below.

IoTHubNetworkRuleSetIpRule

IpMask string

The IP address range in CIDR notation for the ip rule.

Name string

The name of the ip rule.

Action string

The desired action for requests captured by this rule. Possible values are Allow. Defaults to Allow.

IpMask string

The IP address range in CIDR notation for the ip rule.

Name string

The name of the ip rule.

Action string

The desired action for requests captured by this rule. Possible values are Allow. Defaults to Allow.

ipMask String

The IP address range in CIDR notation for the ip rule.

name String

The name of the ip rule.

action String

The desired action for requests captured by this rule. Possible values are Allow. Defaults to Allow.

ipMask string

The IP address range in CIDR notation for the ip rule.

name string

The name of the ip rule.

action string

The desired action for requests captured by this rule. Possible values are Allow. Defaults to Allow.

ip_mask str

The IP address range in CIDR notation for the ip rule.

name str

The name of the ip rule.

action str

The desired action for requests captured by this rule. Possible values are Allow. Defaults to Allow.

ipMask String

The IP address range in CIDR notation for the ip rule.

name String

The name of the ip rule.

action String

The desired action for requests captured by this rule. Possible values are Allow. Defaults to Allow.

IoTHubRoute

Enabled bool

Used to specify whether a route is enabled.

EndpointNames List<string>

The list of endpoints to which messages that satisfy the condition are routed.

Name string

The name of the route.

Source string

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

Condition string

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

Enabled bool

Used to specify whether a route is enabled.

EndpointNames []string

The list of endpoints to which messages that satisfy the condition are routed.

Name string

The name of the route.

Source string

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

Condition string

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

enabled Boolean

Used to specify whether a route is enabled.

endpointNames List<String>

The list of endpoints to which messages that satisfy the condition are routed.

name String

The name of the route.

source String

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

condition String

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

enabled boolean

Used to specify whether a route is enabled.

endpointNames string[]

The list of endpoints to which messages that satisfy the condition are routed.

name string

The name of the route.

source string

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

condition string

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

enabled bool

Used to specify whether a route is enabled.

endpoint_names Sequence[str]

The list of endpoints to which messages that satisfy the condition are routed.

name str

The name of the route.

source str

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

condition str

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

enabled Boolean

Used to specify whether a route is enabled.

endpointNames List<String>

The list of endpoints to which messages that satisfy the condition are routed.

name String

The name of the route.

source String

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceConnectionStateEvents, DeviceJobLifecycleEvents and DigitalTwinChangeEvents.

condition String

The condition that is evaluated to apply the routing rule. Defaults to true. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

IoTHubSharedAccessPolicy

KeyName string

The name of the shared access policy.

Permissions string

The permissions assigned to the shared access policy.

PrimaryKey string

The primary key.

SecondaryKey string

The secondary key.

KeyName string

The name of the shared access policy.

Permissions string

The permissions assigned to the shared access policy.

PrimaryKey string

The primary key.

SecondaryKey string

The secondary key.

keyName String

The name of the shared access policy.

permissions String

The permissions assigned to the shared access policy.

primaryKey String

The primary key.

secondaryKey String

The secondary key.

keyName string

The name of the shared access policy.

permissions string

The permissions assigned to the shared access policy.

primaryKey string

The primary key.

secondaryKey string

The secondary key.

key_name str

The name of the shared access policy.

permissions str

The permissions assigned to the shared access policy.

primary_key str

The primary key.

secondary_key str

The secondary key.

keyName String

The name of the shared access policy.

permissions String

The permissions assigned to the shared access policy.

primaryKey String

The primary key.

secondaryKey String

The secondary key.

IoTHubSku

Capacity int

The number of provisioned IoT Hub units.

Name string

The name of the sku. Possible values are B1, B2, B3, F1, S1, S2, and S3.

Capacity int

The number of provisioned IoT Hub units.

Name string

The name of the sku. Possible values are B1, B2, B3, F1, S1, S2, and S3.

capacity Integer

The number of provisioned IoT Hub units.

name String

The name of the sku. Possible values are B1, B2, B3, F1, S1, S2, and S3.

capacity number

The number of provisioned IoT Hub units.

name string

The name of the sku. Possible values are B1, B2, B3, F1, S1, S2, and S3.

capacity int

The number of provisioned IoT Hub units.

name str

The name of the sku. Possible values are B1, B2, B3, F1, S1, S2, and S3.

capacity Number

The number of provisioned IoT Hub units.

name String

The name of the sku. Possible values are B1, B2, B3, F1, S1, S2, and S3.

Import

IoTHubs can be imported using the resource id, e.g.

 $ pulumi import azure:iot/ioTHub:IoTHub hub1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Devices/IotHubs/hub1

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.