Open
Description
Describe the bug
Adding a powerplatform_user resource for a user that doesn't have a Power Platform license causes the provider to retry the request until it times out.
If you run the same process in pac cli, you get an immediate error stating the user is not licensed.
The provider should not retry and instead throw the same error as pac CLI.
Sample Terraform Code
resource "powerplatform_user" "new_non_dataverse_user" {
environment_id = local.power_platform_environment_id
security_roles = ["Basic User", "Bot Author", "System Administrator"]
aad_id = "AAD GUID HERE"
disable_delete = false
}
Expected behavior
When a user is unlicensed and the powerplatform_user resource is used, the provider should not retry adding the user, and instead throw the same error as pac CLI.
System Information
- Provider Version: 3.7.2
- OS & Version: Windows 11 and Linux