Can't add Exchange license in Microsoft Entra Connect for Microsoft 365

Original KB number:   4052036

Symptoms

You receive an error message when you try to add an Exchange license in Microsoft Entra ID for Microsoft 365.

Resolution

There are two Windows Azure Active Directory modules to administer Microsoft Entra ID through PowerShell. Both are supported currently.

Note

Azure AD and MSOnline PowerShell modules are deprecated as of March 30, 2024. To learn more, read the deprecation update. After this date, support for these modules are limited to migration assistance to Microsoft Graph PowerShell SDK and security fixes. The deprecated modules will continue to function through March, 30 2025.

We recommend migrating to Microsoft Graph PowerShell to interact with Microsoft Entra ID (formerly Azure AD). For common migration questions, refer to the Migration FAQ. Note: Versions 1.0.x of MSOnline may experience disruption after June 30, 2024.

This issue can occur under different circumstances.