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

Documentation: Import for azuread_user appears to be incorrect #1530

Closed
DevopsMercenary opened this issue Oct 15, 2024 · 3 comments
Closed

Comments

@DevopsMercenary
Copy link

Community Note

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

Terraform (and AzureAD Provider) Version

Terraform v1.9.5
on darwin_arm64
+ provider registry.terraform.io/hashicorp/azuread v3.0.2
+ provider registry.terraform.io/hashicorp/azurerm v4.5.0
+ provider registry.terraform.io/hashicorp/random v3.6.3
### Affected Resource(s)
  • azuread_user

Terraform Configuration Files

terraform import azuread_user.annotator 52862aa3-4d61-408a-bfb4-ae096ed92115

Actual Behavior

│ Error: parsing "52862aa3-4d61-408a-bfb4-ae096ed92115": parsing the User ID: the number of segments didn't match
│
│ Expected a User ID that matched (containing 2 segments):
│
│ > /users/userId
│
│ However this value was provided (which was parsed into 0 segments):
│
│ > 52862aa3-4d61-408a-bfb4-ae096ed92115
│
│ The following Segments are expected:
│
│ * Segment 0 - this should be the literal value "users"
│ * Segment 1 - this should be the user specified value for this userId [for example "userId"]
│
│ The following Segments were parsed:
│
│ * Segment 0 - not found
│ * Segment 1 - not found
@Threpio
Copy link
Contributor

Threpio commented Oct 16, 2024

Hi there,

The documentation in the code already shows an updated version of the terraform import with the prefix /users/.

The registry documentation on the terraform website is just out of date. This will be updated shortly and does not require a PR.

Code:

terraform import azuread_user.my_user /users/00000000-0000-0000-0000-000000000000

@DevopsMercenary
Copy link
Author

I guess this will roll out with the next release, even though the change is already in 3.0.2

@katbyte
Copy link
Collaborator

katbyte commented Jan 7, 2025

was fixed by #1519

@katbyte katbyte closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants