Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error making Read request on Azure EventHub Authorization Rule #7132

Closed
ivasylenko opened this issue May 29, 2020 · 1 comment · Fixed by #7122
Closed

Error making Read request on Azure EventHub Authorization Rule #7132

ivasylenko opened this issue May 29, 2020 · 1 comment · Fixed by #7122
Labels

Comments

@ivasylenko
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Affected Resource(s)

  • Terraform v0.12.26 for mac x64
  • provider.azurerm v2.12.0

Terraform Configuration Files

provider "azurerm" {
  version = ">= 2.10.0"
  features {}
}

resource "azurerm_resource_group" "gc" {
        name = "gcResourceGroup"
        location = "westus"
}

resource "azurerm_eventhub_namespace" "gc" {
  name                = "gcEventHubNamespace"
  location            = azurerm_resource_group.gc.location
  resource_group_name = azurerm_resource_group.gc.name
  sku                 = "Basic"
  capacity            = 1

  tags = {
    environment = "Production"
  }
}

resource "azurerm_eventhub" "gc" {
  name                = "gcEventHub"
  namespace_name      = azurerm_eventhub_namespace.gc.name
  resource_group_name = azurerm_resource_group.gc.name
  partition_count     = 2
  message_retention   = 1
}

resource "azurerm_eventhub_namespace_authorization_rule" "gc" {
  name                = "gcEventHubNamespaceAuthRule"
  namespace_name      = azurerm_eventhub_namespace.gc.name
  resource_group_name = azurerm_resource_group.gc.name

  listen = true
  send   = false
  manage = false
}

Debug Output

azurerm_eventhub_namespace_authorization_rule.gc: Refreshing state... [id=/subscriptions/xx-xx/resourceGroups/gcResourceGroup/providers/Microsoft.EventHub/namespaces/gcEventHubNamespace/authorizationRules/gcEventHubNamespaceAuthRule]
..
Error: Error making Read request on Azure EventHub Authorization Rule : eventhub.NamespacesClient#GetAuthorizationRule: Invalid input: autorest/validation: validation failed: parameter=authorizationRuleName constraint=MinLength value="" details: value length must be greater than or equal to 1

Panic Output

Expected Behavior

terraform apply should complete without errors.
Resource group gcResourceGroup and eventhub gcEventHub within eventhub namespace gcEventHubNamespace should be deployed and Auth Rule created on gcEventHubNamespace.

Actual Behavior

Resource group and all resources deployed but command ends with error.

Steps to Reproduce

Copy simple infra code and perform terraform apply

Important Factoids

References

  • #0000
@ghost
Copy link

ghost commented Jul 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Jul 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
2 participants