Skip to content

Changing group type from Assigned to Dynamic should not cause the group to be recreated #1848

@rmcolbert

Description

@rmcolbert

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

Description

Not all azuread_group types require replacement. While it isn't possible to change the overarching group type (Unified & Security) after group creation, changing the membership type from Assigned to Dynamic is fully supported in the REST APIs and portal.

It would be nice if there was a way to skip the force recreate for type options that don't require it, add a new property for assignment_type or have the type "DynamicMembership" added/removed based on the existence of the dynamic_membership block.

New or Affected Resource(s)

  • azuread_group

Potential Terraform Configuration

resource azuread_group "group" {
...
  type = []
  assignment_type = "DynamicMembership"
}

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