-
Notifications
You must be signed in to change notification settings - Fork 294
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
azuread_group import of dynamic groups tries to fetch all members #1000
Comments
Interesting that the expected behavior would be to not read all members of a dynamic group - I am not familiar with how the state is meant to handle Dynamic Member Groups in other contexts. When a dynamic rules group is created does it not include the members in the state? This is pretty much caused by the
This could be changed if desired to not read members array in a dynamic membership but would be a breaking change for some uses! |
I agree that read all the members could make sense for some use cases. But the state will change continuously for dynamic groups especially in large companies. Therefore it becomes a mission impossible to use Maybe an option such as |
+1. I see the pull request is closed though. We would like to use TF to manage dynamic groups but it's unrealistic when we have multiple dynamic groups with 10's of thousands of members and some closing in on 100,000. |
@manicminer Could you re-examine this pull request, perhaps as a feature rather than a bug fix? #1003 While I agree it's not the prettiest work-around for for this error, it would at least make this usable. Additionally, it would significantly reduce Terraform plan times to have the ability to explicitly exclude group members from being pulled in. |
@jakefrancois5 We'll be fixing this by splitting the group resource into multiple resources, which will yield an optional |
@manicminer could you explain how splitting the resources can solve the problem? I am facing it right now and my plan just fails after refreshing like forever. I don't see how I could avoid it from happening using the dedicated member resource. I create a group in my plan which I assign ownership to another user. I ignore basically any change on the members, owners, type etc. When the owner now enables dynamic membership or adds thousands of users my plan is still trying to fetch those which is not what I want, at least not if it breaks my pipeline. Any way to fix this? |
@manicminer I am using now the latest provider Would it make sense to implement a new flag which skips the members update during the refresh? Or is there already another solution for this issue? |
welcome to the club @stawik-mesa 😸 |
I'm not sure why this was pulled from the v3.0 milestone but this issue also seems related to issue 954. Both are being reviewed internally to be addressed. |
Community Note
Terraform (and AzureAD Provider) Version
Affected Resource(s)
azuread_group
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Import does not read all members from a dynamic group.
Actual Behavior
It fails to import as it tries to fetch all members ( > 80000 entries )
Steps to Reproduce
Important Factoids
References
The text was updated successfully, but these errors were encountered: