We had a cloud hosted development machine used by a partner. The developer left but never deleted his workspace.
The user was deleted first from D365 F&O, Azure DevOps and Azure AD.
Later on, that machine was given to another developer. Of course he could not map the workspace with his user.
That's why I run the following commands :
tf workspaces /collection:"https://dev.azure.com/xxxxxxxxxDevOps" /owner:*
tf workspaces /collection:"https://dev.azure.com/xxxxxxxxxDevOps" /Computer:devxxxxxxxxx /owner:*
and finally
tf workspace /server:https://dev.azure.com/xxxxxxxxxDevOps /delete devxxxxxxxxx ;"Anthony xxxxxxxx"
But I got the following error
So I tried with the email address but I still got the same error
tf workspace /delete /server:https://dev.azure.com/xxxxxxxxxDevOps 'devxxxxxxxxx;"axxxxxxxx@xxx.com"
The solution is to run the command: tf workspaces /computer:* /owner:* /format:xml
Then in the XML there are aliases for the owner. We need to use the one with GUID code and the email address
Run the following command
tf workspace /delete devxxxxxxxxx;e9c37c5a-297d-4237-9bda-8cbe473ac6a3\axxxxxxxx@xxx.com
Are you sure you want to delete the workspace? (Yes/No) Yes
It works, the workspace was deleted.
Comments