Open nerddtvg opened 4 months ago
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.
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
https://github.com/hashicorp/terraform-provider-azuread/blob/66ba716e6e3eaf11ad5c5edf8c2d226adea2df39/docs/resources/access_package_resource_package_association.md?plain=1#L60-L68
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 aRole_Scope
format but there is no role or scope to this resource.