microsoft / terraform-provider-power-platform

Power Platform Terraform Provider
https://registry.terraform.io/providers/microsoft/power-platform/latest/docs
MIT License
35 stars 14 forks source link

`powerplatform_environment` creation returns before users have been granted access to new environment #452

Closed mattdot closed 2 months ago

mattdot commented 2 months ago

Describe the bug

powerplatform_environment creation returns before users have been granted access to new environment

To Reproduce

Steps to reproduce the behavior:

  1. create powerplatform_environment
  2. try to use a resource like powerplatform_rest that is dependent on a dataverse web api
  3. race condition happens where environment is created but the service principal that created it doesn't have access yet

Expected behavior

Environment should wait for user permissions to be assigned before returning from create.

System Information

Additional context

Add any other context about the problem here.

Contribution

Contribution

Do you plan to raise a PR to address this issue? YES / NO?

mattdot commented 2 months ago

Not fixed. Reopening.