terraform-provider-ad
terraform-provider-ad copied to clipboard
solve error when creating multiple AD Users
Description
Solves the error occurred when creating multiple users i.e., stderr: New-ADUser : A local error has occurredAt
.
Idea - Release the client after execution of PS Command.
Tested by creating 100 users.
References
https://github.com/hashicorp/terraform-provider-ad/issues/119
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
When can we expect this to get merged?
Would love to use this provider but this issue is a killer. Would love a fix 👍 👍 👍
This pull request already had its first birthday. Is this provider dead?
Are you sure that this patch actually affects the behaviour at all? Within the scope, it should make no difference where you call defer
.
We experience the same bug, but the only semi-reliable way I've found to avoid the issue is to reduce -parallelism
to 3–4.