https://pulumi.com logo
Title
w

worried-knife-31967

10/11/2021, 6:30 PM
Anyone seen any issues with role assigments and a race condition? It seems the deletion of role assignments completes asynchronously, and if you're doing Cosmos RBAC, there is as lock applied. That means that if there's a change applied and it needs to delete the role, you get an exception due to the delete locking the resource asynchronously.
👀 1
w

worried-lunch-10568

10/12/2021, 9:05 AM
I noticed race condition issue with Role Assignment right after the AD group was created.
azure-native:authorization:RoleAssignment (role-name):
    error: autorest/azure: Service returned an error. Status=400 Code="PrincipalNotFound" Message="Principal 6aaae19000e941c88e419a1f95a65254 does not exist in the directory 465ec3fd-500e-4e38-a426-5ca3086440bd."
I use latest Pulumi.AzureAD Version="5.5.0" Is anyone have a workaround for this?