Event banner
Microsoft Intune & Configuration Manager: best practices to help you prepare for Windows 11
Event Ended
Wednesday, Jul 21, 2021, 12:00 PM PDTEvent details
We've assembled some massive Microsoft Endpoint Manager muscle to support this hour of Ask Microsoft Anything (AMA). If you have questions on what you can implement and optimize now to better prepare...
Heather_Poulsen
Updated Jul 23, 2021
emyloa
Jul 21, 2021Copper Contributor
Hello there! Will there be ways to clean up inactive devices both in MEM and Azure? MEM (Intune) has a built-in inactive device clean-up - But Azure AD does not. Will there be built in methods in Azure to clean-up inactive devices that syncs with the MEM inactive device clean up?
Jason_Sandys
Microsoft
Jul 21, 2021Hi emyloa, thank you for the question. Similar to on-premises Active Directory, there is no built-in capability for this in Azure AD. I don't of any specific plans to add anything either. Also, similar to cleaning up on-prem AD, most organizations use a custom script that leverages the Graph API to accomplish this goal.
We're interested in what you'd like to see though and why using a custom script does not meet your needs?
- EmyLoanzonJul 21, 2021Iron ContributorIs there a way to automate the Azure AD Graph API script to clean up inactive devices - now and\or in future updates? Could you provide a reference to web links here? Thanks!
- Max_SteinJul 21, 2021
Microsoft
You can also configure Intune to automatically remove devices that appear to be inactive, stale, or unresponsive via "Device cleanup rules". See: Retire or wipe devices using Microsoft Intune for more info!
- Jason_SandysJul 21, 2021
Microsoft
The official documentation has more guidance including some samples: https://docs.microsoft.com/en-us/azure/active-directory/devices/manage-stale-devices