microsoft / microsoft/AzureTRE
Item fails to update or delete if the Owner is deleted from Entra
Nobody has claimed this yet.
- 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
- Create a object (VM, workspace service or workspace, Possibly others too)
- Delete the user that created the object.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.