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

docs: update import statement for app_role_assignment #1568

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

tberreis
Copy link
Contributor

This small PR updates the import statement for the azuread_app_role_assignment.
I noted a change when recently using it.

Error: parsing "d00*****-****-****-****-*****39b503c/appRoleAssignment/Jno_******************************NWf5jBrA4": parsing the ServicePrincipalIdAppRoleAssignedTo ID: the number of segments didn't match
│ 
│ Expected a ServicePrincipalIdAppRoleAssignedTo ID that matched (containing 4 segments):
│ 
│ > /servicePrincipals/servicePrincipalId/appRoleAssignedTo/appRoleAssignmentId
│ 
│ However this value was provided (which was parsed into 0 segments):
│ 
│ > d00*****-****-****-****-*****39b503c/appRoleAssignment/Jno_******************************NWf5jBrA4
│ 
│ The following Segments are expected:
│ 
│ * Segment 0 - this should be the literal value "servicePrincipals"
│ * Segment 1 - this should be the user specified value for this servicePrincipalId [for example "servicePrincipalId"]
│ * Segment 2 - this should be the literal value "appRoleAssignedTo"
│ * Segment 3 - this should be the user specified value for this appRoleAssignmentId [for example "appRoleAssignmentId"]
│ 
│ The following Segments were parsed:
│ 
│ * Segment 0 - not found
│ * Segment 1 - not found
│ * Segment 2 - not found
│ * Segment 3 - not found

Signed-off-by: Thomas Berreis <thomas@berreis.de>
@ilmax
Copy link

ilmax commented Nov 20, 2024

for these non obvious resources, it would be nice to also have the az cli command to get the required IDs to run the import

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tberreis - LGTM ⛰️

@katbyte katbyte merged commit 6dd8e71 into hashicorp:main Dec 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants