resource "azurerm_eventhub" "${MyResource}" {
         name                = "acceptanceTestEventHub"
         namespace_name      = "\${azurerm_eventhub_namespace.test.name}"
         location            = "\${azurerm_resource_group.test.location}"
         resource_group_name = "\${azurerm_resource_group.test.name}"
         partition_count     = 2
         message_retention   = 2
      }
      Terraform language logo

      azurerm_eventhub

      Terraform snippets

      The code defines an Azure Event Hub named "acceptanceTestEventHub" in the test namespace. The event hub is located in the resource group "test" and its two partitions have a combined count of 2. The event hub will store messages for 2 days before deleting them.

      Shortcut: tf_azurerm_eventhub

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.