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

Incorrect Resource ID Format for Importing eventhub_namespace_authorization_rule in Documentation #6879

Closed
rudolphjacksonm opened this issue May 12, 2020 · 5 comments · Fixed by #6886
Milestone

Comments

@rudolphjacksonm
Copy link
Contributor

rudolphjacksonm commented May 12, 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

terraform: 0.12.24
azurerm: 2.6.0

Affected Resource(s)

  • azurerm_eventhub_namespace_authorization_rule

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

Debug Output

Panic Output

Expected Behavior

Importing a eventhub_namespace_authorization_rule resource as per the example shown in the docs should work.

Actual Behavior

Received an error about a missing parameter, which oddly doesn't match the fix I've raised in the PR mentioned below:

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

Steps to Reproduce

  1. terraform import azurerm_eventhub_namespace_authorization_rule /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.EventHub/namespaces/namespace1/authorizationRules/rule1

Now, try again but make the 'A' in authorizationRules uppercase. This will work:
`terraform import azurerm_eventhub_namespace_authorization_rule /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.EventHub/namespaces/namespace1/AuthorizationRules/rule1

Important Factoids

References

@rudolphjacksonm rudolphjacksonm changed the title Incorrect Resource ID Format for Importing eventhub_namespace_authorization_rule Incorrect Resource ID Format for Importing eventhub_namespace_authorization_rule in Documentation May 12, 2020
@tombuildsstuff tombuildsstuff added this to the v2.10.0 milestone May 12, 2020
@neil-yechenwei
Copy link
Contributor

Thanks for opening this issue. I've made a minor change on it if you don't mind.

@tombuildsstuff
Copy link
Member

hey @rudolphjacksonm

Thanks for opening this issue.

As you've mentioned the fix for this has been merged in #6878 - this'll get published onto the Terraform Website when we release version 2.10 of the Azure Provider later this week.

Thanks!

@rudolphjacksonm
Copy link
Contributor Author

Awesome!!! Thanks for the quick response on this guys!

@ghost
Copy link

ghost commented May 15, 2020

This has been released in version 2.10.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.10.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Jun 12, 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 Jun 12, 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