Skip to content

PrincipalNotFound when using policyAssignments #981

@kevinpz

Description

@kevinpz

Description

Hi!

I've a customer which is trying to use the policyAssignments module to assign a policy with a RBAC.
Each time they try to assign a policy, the bicep module doesn't found the principal and ends up in error the first time.
After they restart the pipeline a few minutes later everything is fine.

Steps to reproduce

  1. Assign a policy which needs a RBAC
  2. The deployment ends in error with the message: PrincipalNotFound: Principal xxxxx does not exist in the directory yyyyy
  3. Restart the deployment a few minutes later, everything is fine

Thanks!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions