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 Import Id in Documentation #1338

Open
nerddtvg opened this issue Mar 18, 2024 · 2 comments
Open

Incorrect Import Id in Documentation #1338

nerddtvg opened this issue Mar 18, 2024 · 2 comments

Comments

@nerddtvg
Copy link

## Import
The resource and catalog association can be imported using the access package ID, the access package ResourceRoleScope, the resource origin ID, and the access type, e.g.
```
terraform import azuread_access_package_resource_package_association.example 00000000-0000-0000-0000-000000000000/11111111-1111-1111-1111-111111111111_22222222-2222-2222-2222-22222222/33333333-3333-3333-3333-33333333/Member
```
-> This ID format is unique to Terraform and is composed of the Access Package ID, the access package ResourceRoleScope (in the format Role_Scope), the Resource Origin ID, and the Access Type, in the format `{AccessPackageID}/{ResourceRoleScope}/{ResourceOriginID}/{AccessType}`.

This references an import id in the format:

{AccessPackageID}/{ResourceRoleScope}/{ResourceOriginID}/{AccessType}

However, the format in the code is:

{accessPackageId}/{resourcePackageAssociationId}/{originId}/{accessType}

The resourcePackageAssociationId is different. The documentation explains a Role_Scope format but there is no role or scope to this resource.

@nerddtvg
Copy link
Author

I think my issue is the wording of Role_Scope is not exactly defined in the documentation. The Id is in the right format (guid_guid), but there is no indication what either value is.

@dvasdekis
Copy link

Likewise, import of application is wrong. It should be terraform import azuread_application.example 00000000-0000-0000-0000-000000000000 not terraform import azuread_application.example /applications/00000000-0000-0000-0000-000000000000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants