Creating Event Hub Endpoint via Terraform it shows the status as "Unreachable" and "Unauthorized". But the same Endpoint when created manually seems to be working fine as expected. I would like to know if this can be a bug or am I missing out something?
Event Hub Endpoint via Terraform:
resource "azurerm_iothub_endpoint_eventhub" "jd-endpoint" {
resource_group_name = data.azurerm_iothub.jd-iot.resource_group_name
iothub_id = data.azurerm_iothub.jd-iot.id
name = "jd-endpoint"
connection_string = azurerm_eventhub_authorization_rule.staging.primary_connection_string
}
Provider Version:
terraform {
required_providers {
azurerm = {
version = "~> 3.24.0"
}
}