AAD Computer object cleanup after removing from the AVD Host Pool

AAD Computer object cleanup after removing from the AVD Host Pool
0

Upvotes

Upvote

 Mar 16 2023
3 Comments (3 New)
New

is there a possibility to clean up the object Ids from the Azure active directory after deleting the related session host from the host pool? 

Comments
Copper Contributor

Yes, you can clean up the object IDs from Azure Active Directory (Azure AD) after deleting the related session host from the host pool. Here's how you can do it:

  1. Open the Azure Portal and go to Azure Active Directory.
  2. In the left-hand menu, select "Enterprise applications".
  3. Find the enterprise application that corresponds to your session host and click on it to open its overview page.
  4. In the "Users and groups" section, select the user account associated with the deleted session host and click on "Remove".
  5. Confirm that you want to remove the user from the enterprise application by clicking "Yes".
  6. Repeat steps 4-5 for all user accounts associated with the deleted session host.
  7. After removing all users, click on "Properties" in the left-hand menu.
  8. Under "Application lifecycle", click on "Delete" to remove the enterprise application from Azure AD.
  9. Confirm that you want to delete the application by clicking "Yes".

By deleting the enterprise application, you will also remove the corresponding object IDs from Azure AD. This will help to keep your directory clean and organized.

Note that before deleting an enterprise application, you should ensure that there are no active sessions or user accounts associated with the application.

Microsoft

thanks a lot for your replay.

 

I think there is some misunderstanding here. I am only asking if the session host names which have been registered before in the azure active directory devices after creating the session host in the host pool can be deleted along as soon as we delete these session host from the host pool?

Copper Contributor

@mahmoud_shabban :

 

  1. Go to the Azure portal and navigate to the Azure Active Directory (AD) devices page.

  2. Find the session host names that were registered before and select them.

  3. Click on the "Delete" button to remove them from the Azure AD devices.

  4. Go back to the host pool and remove the session hosts from it.

  5. After removing the session hosts from the host pool, wait for a few minutes to ensure that the changes are replicated across all Azure AD devices.

  6. Add the session hosts back to the host pool, and they will be registered with new names in the Azure AD devices.

By following these steps, you should be able to remove the session host names that were registered before and fix the issue.

Hope your query answered here! :)