azurerm_iotcentral_organization

Manages an IoT Central Organization

Example Usage

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

resource "azurerm_iotcentral_application" "example" {
  name                = "example-iotcentral-app"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  sub_domain          = "example-iotcentral-app-subdomain"
  display_name        = "example-iotcentral-app-display-name"
  sku                 = "ST1"
  template            = "iotc-default@1.0.0"
  tags = {
    Foo = "Bar"
  }
}

resource "azurerm_iotcentral_organization" "example_parent" {
  iotcentral_application_id = azurerm_iotcentral_application.example.id
  organization_id           = "example-parent-organization-id"
  display_name              = "Org example parent"
}

resource "azurerm_iotcentral_organization" "example" {
  iotcentral_application_id = azurerm_iotcentral_application.example.id
  organization_id           = "example-child-organization-id"
  display_name              = "Org example"
  parent_organization_id    = azurerm_iotcentral_organization.example_parent.organization_id
}

Argument Reference

The following arguments are supported:

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

The IoT Central Organization can be imported using the id, e.g.

terraform import azurerm_iotcentral_organization.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.IoTCentral/iotApps/example/organizations/example