Set of scripts that will allow admins to block logins for locked out synchronized accounts in Azure AD. The application must be granted write permission to manage the users.
Required Setup for App-Only Authentication:
Build PowerShell scripts with Microsoft Graph https://docs.microsoft.com/en-gb/graph/tutorials/powershell?tabs=aad%2Cwindows&tutorial-step=1
Configure app-only authentication https://docs.microsoft.com/en-gb/graph/tutorials/powershell?tabs=aad%2Cwindows&tutorial-step=6
Full Tutorial: https://docs.microsoft.com/en-gb/graph/tutorials/powershell?tabs=aad%2Cwindows