Skip to content

powerplatform_user resource infinitely retries user add when user is not licensed #859

Open
@ianjensenisme

Description

@ianjensenisme

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions