azurerm_iothub_dps

Manages an IotHub Device Provisioning Service.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_iothub_dps" "example" {
  name                = "example"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  allocation_policy   = "Hashed"

  sku {
    name     = "S1"
    capacity = "1"
  }
}

Argument Reference

The following arguments are supported:


A sku block supports the following:


A linked_hub block supports the following:


An ip_filter_rule block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

IoT Device Provisioning Service can be imported using the resource id, e.g.

terraform import azurerm_iothub_dps.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Devices/provisioningServices/example