azurerm_iotcentral_application_network_rule_set

Manages an IoT Central Application Network Rule Set.

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"

  tags = {
    Foo = "Bar"
  }
}

resource "azurerm_iotcentral_application_network_rule_set" "example" {
  iotcentral_application_id = azurerm_iotcentral_application.example.id

  ip_rule {
    name    = "rule1"
    ip_mask = "10.0.1.0/24"
  }

  ip_rule {
    name    = "rule2"
    ip_mask = "10.1.1.0/24"
  }
}

Arguments Reference

The following arguments are supported:


A ip_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 Central Application Network Rule Sets can be imported using the resource id, e.g.

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