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

SharePointOnline broken in azuread_access_package_resource_catalog_association #1576

Open
pauliusmiskinis opened this issue Nov 29, 2024 · 1 comment

Comments

@pauliusmiskinis
Copy link

pauliusmiskinis commented Nov 29, 2024

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

provider registry.terraform.io/hashicorp/azuread v3.0.2

Affected Resource(s)

  • azuread_access_package_resource_catalog_association

Terraform Configuration Files

resource "azuread_access_package_resource_catalog_association" "this" {
  catalog_id             = "ed64f87c-f78c-4710-8a36-xxxxxxxxxxxx"
  resource_origin_id     = "https://<REDACTED>.sharepoint.com/sites/TestTeam"
  resource_origin_system = "SharePointOnline"
}

Debug Output

module.ap.azuread_access_package_resource_catalog_association.this: Creating...
module.ap.azuread_access_package_resource_catalog_association.this: Still creating... [10s elapsed]
module.ap.azuread_access_package_resource_catalog_association.this: Still creating... [20s elapsed]
╷
│ Error: Failed to parse resource ID "ed64f87c-f78c-4710-8a36-xxxxxxxxxxxx/https://<REDACTED>.sharepoint.com/sites/TestTeam"
│
│   with module.ap.azuread_access_package_resource_catalog_association.this,
│   on module/main.tf line 102, in resource "azuread_access_package_resource_catalog_association" "this":
│  102: resource "azuread_access_package_resource_catalog_association" "this" {
│
│ ID should be in the format {catalogId}/{originId} - but got "ed64f87c-f78c-4710-8a36-xxxxxxxxxxxx/https://<REMOVED>.sharepoint.com/sites/TestTeam"
|

Expected Behavior

Association successful

Actual Behavior

Provider refuses to accept ed64f87c-f78c-4710-8a36-xxxxxxxxxxxx/https://<REMOVED>.sharepoint.com/sites/TestTeam as a valid ID, even though the association was successful.

Steps to Reproduce

Create azuread_access_package_resource_catalog_association where resource_origin_system = SharePointOnline

Important Factoids

  • resource_origin_id for a SharePoint resource is a URL.

References

@pauliusmiskinis
Copy link
Author

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

1 participant