azurerm_eventhub_namespace_schema_group

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "exampleRG-ehn-schemaGroup"
  location = "East US"
}

resource "azurerm_eventhub_namespace" "test" {
  name                = "example-ehn-schemaGroup"
  location            = azurerm_resource_group.test.location
  resource_group_name = azurerm_resource_group.test.name
  sku                 = "Standard"
}

resource "azurerm_eventhub_namespace_schema_group" "test" {
  name                 = "example-schemaGroup"
  namespace_id         = azurerm_eventhub_namespace.test.id
  schema_compatibility = "Forward"
  schema_type          = "Avro"
}

Arguments 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

Schema Group for a EventHub Namespace can be imported using the resource id, e.g.

terraform import azurerm_eventhub_namespace_schema_group.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventHub/namespaces/namespace1/schemaGroups/group1