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

Event Hub name does not allow underscores #1767

Closed
ducas opened this issue Aug 15, 2018 · 4 comments · Fixed by #1768
Closed

Event Hub name does not allow underscores #1767

ducas opened this issue Aug 15, 2018 · 4 comments · Fixed by #1768
Milestone

Comments

@ducas
Copy link

ducas commented Aug 15, 2018

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 Version

0.11.7

Affected Resource(s)

  • azurerm_eventhub

Terraform Configuration Files

terraform {
}

provider "azurerm" {
}

resource "azurerm_eventhub" "test_events_v0" {
  name                = "my_hub"
  resource_group_name = "my-group"
  namespace_name      = "mynamespace"
  partition_count     = "2"
  message_retention   = "3"
}

Debug Output

2018/08/15 11:58:07 [INFO] Terraform version: 0.11.7
2018/08/15 11:58:07 [INFO] Go runtime version: go1.10.1
2018/08/15 11:58:07 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.7/bin/terraform", "validate"}
2018/08/15 11:58:07 [DEBUG] Attempting to open CLI config file: /Users/ducas/.terraformrc
2018/08/15 11:58:07 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/08/15 11:58:07 [INFO] CLI command args: []string{"validate"}
2018/08/15 11:58:07 [DEBUG] checking for provider in "."
2018/08/15 11:58:07 [DEBUG] checking for provider in "/usr/local/Cellar/terraform/0.11.7/bin"
2018/08/15 11:58:07 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2018/08/15 11:58:07 [DEBUG] found provider "terraform-provider-azurerm_v1.12.0_x4"
2018/08/15 11:58:07 [DEBUG] found valid plugin: "azurerm", "1.12.0", "/Users/ducas/Code/EventHub/test/.terraform/plugins/darwin_amd64/terraform-provider-azurerm_v1.12.0_x4"
2018/08/15 11:58:07 [DEBUG] checking for provisioner in "."
2018/08/15 11:58:07 [DEBUG] checking for provisioner in "/usr/local/Cellar/terraform/0.11.7/bin"
2018/08/15 11:58:07 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2018/08/15 11:58:07 [DEBUG] New state was assigned lineage "89b0b165-7332-7572-e7ab-c010992f9d57"
2018/08/15 11:58:07 [INFO] terraform: building graph: GraphTypeValidate
2018/08/15 11:58:07 [DEBUG] Resource state not found for "azurerm_eventhub.test_events_v0": azurerm_eventhub.test_events_v0
2018/08/15 11:58:07 [TRACE] Graph after step *terraform.AttachStateTransformer:

azurerm_eventhub.test_events_v0 - *terraform.NodeValidatableResource
2018/08/15 11:58:07 [TRACE] Graph after step *terraform.RootVariableTransformer:

azurerm_eventhub.test_events_v0 - *terraform.NodeValidatableResource
2018/08/15 11:58:07 [TRACE] ProviderConfigTransformer: Starting for path: []
2018/08/15 11:58:07 [DEBUG] resource azurerm_eventhub.test_events_v0 using provider provider.azurerm
2018/08/15 11:58:07 [DEBUG] ReferenceTransformer: "azurerm_eventhub.test_events_v0" references: []
2018/08/15 11:58:07 [DEBUG] ReferenceTransformer: "provider.azurerm" references: []
2018/08/15 11:58:07 [DEBUG] Starting graph walk: walkValidate
2018-08-15T11:58:07.702+1000 [DEBUG] plugin: starting plugin: path=/Users/ducas/Code/EventHub/test/.terraform/plugins/darwin_amd64/terraform-provider-azurerm_v1.12.0_x4 args=[/Users/ducas/Code/EventHub/test/.terraform/plugins/darwin_amd64/terraform-provider-azurerm_v1.12.0_x4]
2018-08-15T11:58:07.712+1000 [DEBUG] plugin: waiting for RPC address: path=/Users/ducas/Code/EventHub/test/.terraform/plugins/darwin_amd64/terraform-provider-azurerm_v1.12.0_x4
2018-08-15T11:58:07.722+1000 [DEBUG] plugin.terraform-provider-azurerm_v1.12.0_x4: plugin address: timestamp=2018-08-15T11:58:07.721+1000 address=/var/folders/05/jzcw1_q924d3mxf7fg_gl_3m0000gn/T/plugin815612218 network=unix
2018/08/15 11:58:07 [DEBUG] Resource state not found for "azurerm_eventhub.test_events_v0": azurerm_eventhub.test_events_v0
2018/08/15 11:58:07 [DEBUG] ReferenceTransformer: "azurerm_eventhub.test_events_v0" references: []
2018/08/15 11:58:07 [TRACE] Graph after step *terraform.ReferenceTransformer:

azurerm_eventhub.test_events_v0 - *terraform.NodeValidatableResourceInstance
2018/08/15 11:58:07 [TRACE] Graph after step *terraform.RootTransformer:

azurerm_eventhub.test_events_v0 - *terraform.NodeValidatableResourceInstance
2018/08/15 11:58:07 [ERROR] root: eval: *terraform.EvalValidateResource, err: Warnings: []. Errors: [invalid value for name (The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number and be between 6 and 50 characters long.)]
2018/08/15 11:58:07 [ERROR] root: eval: *terraform.EvalSequence, err: Warnings: []. Errors: [invalid value for name (The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number and be between 6 and 50 characters long.)]
2018/08/15 11:58:07 [TRACE] [walkValidate] Exiting eval tree: azurerm_eventhub.test_events_v0
2018/08/15 11:58:07 [DEBUG] plugin: waiting for all plugin processes to complete...

Error: azurerm_eventhub.test_events_v0: invalid value for name (The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number and be between 6 and 50 characters long.)


2018-08-15T11:58:07.744+1000 [DEBUG] plugin: plugin process exited: path=/Users/ducas/Code/EventHub/test/.terraform/plugins/darwin_amd64/terraform-provider-azurerm_v1.12.0_x4

Panic Output

N/A

Expected Behavior

Hub created successfully as per portal and provider version 1.9.0.

Actual Behavior

Error: module.test_hub_secondary.azurerm_eventhub.test_events_v0: invalid value for name (The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number and be between 6 and 50 characters long.)

Steps to Reproduce

  1. terraform init
  2. terraform validate => error
  3. Change provider to version 1.9.0
  4. terraform init
  5. terraform validate => success

Important Factoids

N/A

References

N/A

@katbyte
Copy link
Collaborator

katbyte commented Aug 15, 2018

Hi @ducas,

Thank you for letting us know about this oversight, I have opened #1768 to allow underscores in the name.

@ducas
Copy link
Author

ducas commented Aug 15, 2018

Great! Thanks @katbyte !

@tombuildsstuff
Copy link
Contributor

hey @ducas

Just to let you know that we've just shipped support for this as a part of v1.13.0 of the AzureRM Provider :)

Thanks!

@ghost
Copy link

ghost commented Mar 30, 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 👉 [email protected]. Thanks!

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

Successfully merging a pull request may close this issue.

3 participants