You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file. For# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorpdata"azuread_access_package_catalog""catalog" {
display_name=var.catalog_name
}
data"azuread_group""resource_group" {
object_id="01000000-0000-0000-0000-000000000000"/* "NAME OF THE RESOURCE AAD GROUP" */
}
data"azuread_group""dyn_it" {
object_id="02000000-0000-0000-0000-000000000000"/* "NAME OF THE GROUP SCOPED FOR THE ACCESS PACKAGE" */
}
resource"azuread_access_package""access_package" {
catalog_id=data.azuread_access_package_catalog.catalog.iddescription=var.descriptiondisplay_name=var.namehidden=false
}
resource"azuread_access_package_resource_catalog_association""resource_catalog_association" {
catalog_id=data.azuread_access_package_catalog.catalog.idresource_origin_id=data.azuread_group.resource_group.object_idresource_origin_system="AadGroup"
}
resource"azuread_access_package_resource_package_association""example" {
access_package_id=azuread_access_package.access_package.idcatalog_resource_association_id=azuread_access_package_resource_catalog_association.resource_catalog_association.id
}
resource"azuread_access_package_assignment_policy""access_package_policy" {
access_package_id=azuread_access_package.access_package.iddisplay_name="Initial Policy"description="Initial Policy"duration_in_days=var.durationapproval_settings {
approval_required=false
}
requestor_settings {
scope_type="SpecificDirectorySubjects"requests_accepted=truerequestor {
object_id=data.azuread_group.dyn_it.object_idsubject_type="groupMembers"backup=false
}
}
question {
text {
default_text="Provide justification"
}
}
}
Debug Output
Panic Output
Expected Behavior
Associate the security group, that is part of the catalog, as a resource role
Actual Behavior
module.accesspackage.azuread_access_package_resource_catalog_association.resource_catalog_association: Creating...
╷
│ Error: A resource with the ID "01000000-0000-0000-0000-000000000000/01000000-0000-0000-0000-000000000000" already exists
│
│ with module.accesspackage.azuread_access_package_resource_catalog_association.resource_catalog_association,
│ on modules/accesspackage/main.tf line 47, in resource "azuread_access_package_resource_catalog_association""resource_catalog_association":
│ 47:resource"azuread_access_package_resource_catalog_association""resource_catalog_association" {
│
│ To be managed via Terraform, this resource needs to be imported into the State. Please see
│ the resource documentation for "azuread_access_package_resource_catalog_association" for
│ more information.
Steps to Reproduce
terraform apply
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
Community Note
Terraform (and AzureAD Provider) Version
Affected Resource(s)
azuread_access_package_resource_catalog_association
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Associate the security group, that is part of the catalog, as a resource role
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: