microsoft / microsoft/AzureTRE

Item fails to update or delete if the Owner is deleted from Entra

Open
#4,788 8 comments 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

bug deployment has workaround
Dominant language
Python
Stars
235
Forks
192
Avg merge
1d 23h
Merged PRs (30d)
13

Description

Remember to label the issue with the appropriate area, and also assign it to yourself if you plan to work on the issue in the near future.

Describe the bug
We have our TRE in a seperat Entra tenacy. We encounted this issue after doing a clean out of Entra Guests/Users.
If you delete a user that is in the owner id of a object the update/delete operations will fail:

2ccb559b-0ddf-4893-9c8d-4ead1bf6e82a: Error message: 

Error: User not found with object ID: "*************" 

   with data.azuread_user.user[0], 
   on data.tf line 60, in data "azuread_user" "user": 
   60:   object_id = var.owner_id 

error running command /cnab/app/terraform /usr/bin/terraform 

Steps to reproduce

  1. Create a object (VM, workspace service or workspace, Possibly others too)
  2. Delete the user that created the object.
  3. Try to update or delete the object. (unsure if you need to wait for the user object to be fully deleted and not in the 30 waiting period)

Azure TRE release version (e.g. v0.14.0 or main):
v0.26.0
Deployed Azure TRE components - click the (i) in the UI:
UI Version: 0.8.19
API Version: 0.25.4

Workaround
Solved by editing the cosmosDB to replace the object owner id with a doner account.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.