Skip to content

azuread_app_role_assignment produces errorΒ #1815

@cvs79

Description

@cvs79

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

Terraform v1.14.1
Tofu 1.9.1
AzureAD provider 3.3.0 and 3.7.0

Affected Resource(s)

  • azuread_app_role_assignment

Terraform Configuration Files

resource "azuread_app_role_assignment" "user_groups_non_engineers" {
  provider = azuread.app_owner

  app_role_id         = "00000000-0000-0000-0000-000000000001"
  principal_object_id = data.azuread_group.non_engineer.object_id
  resource_object_id  = data.azuread_service_principal.grafana_sso[count.index].object_id
}

Debug Output

Panic Output

Expected Behavior

Role assignment created

Actual Behavior

β”‚ Error: Provider produced inconsistent result after apply
β”‚
β”‚ When applying changes to
β”‚ azuread_app_role_assignment.user_groups_non_engineers, provider
β”‚ "provider["registry.opentofu.org/hashicorp/azuread"].app_owner" produced
β”‚ an unexpected new value: Root object was present, but now absent.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's
β”‚ own issue tracker.

Steps to Reproduce

  1. terraform apply
  2. tofo apply

Important Factoids

References

  • #0000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions