Once the account is deleted from Azure, the license is freed up.
See for more:
https://learn.microsoft.com/en-us/answers/questions/578266/when-can-you-remove-the-license-from-a-deleted-o36.html
Best practice in Onboarding & Offboarding users in a Hybrid OnPremise AD DS & Exchange Online environment?

Hi People,
I need some best practices and suggestions for Onboarding & offboarding users in a Hybrid AD DS environment.
All of the mailboxes have been migrated to Office 365/Exchange Online, and the on-premise Active Directory DS is synced to Azure using Azure AD connect.
Thanks in advance.
Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Exchange | Hybrid management
Microsoft Security | Microsoft Entra | Microsoft Entra ID
-
Andy David - MVP 157.5K Reputation points MVP Volunteer Moderator
2022-05-26T13:15:45.99+00:00
1 additional answer
Sort by: Most helpful
-
Andy David - MVP 157.5K Reputation points MVP Volunteer Moderator
2022-05-26T12:12:51.677+00:00 In a nutshell:
Onboard:
Create the AD account on-prem,
enable the remote mailbox on-prem and let it sync:
https://learn.microsoft.com/en-us/system-center/orchestrator/enable-remote-mailbox-hybrid?view=sc-orch-2022
https://learn.microsoft.com/en-us/powershell/module/exchange/enable-remotemailbox?view=exchange-ps
Enable-RemoteMailbox "Kim Akers" -RemoteRoutingAddress "kima@Company portal .mail.onmicrosoft.com"License Account.
OffBoard:
Create an OU that is not synced to Azure:
https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sync-configure-filtering#organizational-unitbased-filteringRemove any licenses.
Disable the account and Move to that OU.Disable the remote mailbox on-prem:
https://learn.microsoft.com/en-us/powershell/module/exchange/disable-remotemailbox?view=exchange-ps
Disable-RemoteMailbox "Kim Akers"