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 #7162

Closed
clperei opened this issue Jun 1, 2020 · 6 comments · Fixed by #7248
Closed

Error making Read request on Azure EventHub Authorization Rule #7162

clperei opened this issue Jun 1, 2020 · 6 comments · Fixed by #7248
Milestone

Comments

@clperei
Copy link

clperei commented Jun 1, 2020

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 12.25 azurerm_v2.11.0

Terraform Configuration Files

resource "azurerm_eventhub_namespace_authorization_rule" "log_eventhub_ns_listen_rule" {
  name                = var.log_eventhub_ns_listen_rule_name
  namespace_name      = azurerm_eventhub_namespace.log_eventhub_ns.name
  resource_group_name = azurerm_resource_group.log_eventhub_rg.name

  listen = true
  send   = true
  manage = true
}

Debug Output

Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

module.helpers.random_integer.naming: Refreshing state... [id=267]
module.monitorEventHub.azurerm_resource_group.log_eventhub_rg: Refreshing state... [id=/subscriptions/****/resourceGroups/rg-dcdiag-telh-qa1-wus2]
module.monitorEventHub.azurerm_eventhub_namespace.log_eventhub_ns: Refreshing state... [id=/subscriptions/****/resourceGroups/rg-dcdiag-telh-qa1-wus2/providers/Microsoft.EventHub/namespaces/ehvns-dcdiag-telh-qa1-wus2]
module.monitorEventHub.azurerm_eventhub.activity_log_eventhub: Refreshing state... [id=/subscriptions/****/resourceGroups/rg-dcdiag-telh-qa1-wus2/providers/Microsoft.EventHub/namespaces/ehvns-dcdiag-telh-qa1-wus2/eventhubs/ehv-dcdiag-telh-qa1-wus2]
module.monitorEventHub.azurerm_eventhub_namespace_authorization_rule.log_eventhub_ns_send_rule: Refreshing state... [id=/subscriptions/****/resourceGroups/rg-dcdiag-telh-qa1-wus2/providers/Microsoft.EventHub/namespaces/ehvns-dcdiag-telh-qa1-wus2/authorizationRules/sr-ehvns-dcdiag-telh-qa1-wus2]
module.monitorEventHub.azurerm_eventhub_namespace_authorization_rule.log_eventhub_ns_listen_rule: Refreshing state... [id=/subscriptions/****/resourceGroups/rg-dcdiag-telh-qa1-wus2/providers/Microsoft.EventHub/namespaces/ehvns-dcdiag-telh-qa1-wus2/authorizationRules/lr-ehvns-dcdiag-telh-qa1-wus2]

Warning: Experimental feature "variable_validation" is active

  on deployments/hub/main.tf line 8, in terraform:
   8:   experiments = [variable_validation]

Experimental features are subject to breaking changes in future minor or patch
releases, based on feedback.

If you have feedback on the design of this feature, please open a GitHub issue
to discuss it.


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

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@clperei
Copy link
Author

clperei commented Jun 1, 2020

Please note similar to #6879 I see the resource set to non-capitalized 'A':
Refreshing state... [id=/subscriptions/****/resourceGroups/rg-dcdiag-telh-qa1-wus2/providers/Microsoft.EventHub/namespaces/ehvns-dcdiag-telh-qa1-wus2/authorizationRules/sr-ehvns-dcdiag-telh-qa1-wus2]

@tombuildsstuff
Copy link
Member

This'll be fixed by #7147

@neil-yechenwei

This comment has been minimized.

@enorlando
Copy link

I have just updated the azurerm provider from 2.12.0 to 2.13.0 and get the same issue

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

@ghost
Copy link

ghost commented Jun 11, 2020

This has been released in version 2.14.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.14.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Jul 9, 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!

@hashicorp hashicorp locked and limited conversation to collaborators Jul 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.