Hello @Khaled Laghrour ,
Thanks for reaching out.
AzureAD module is only supported on non-core Windows PowerShell, therefore it does not work on core PS6 or PS7.
Moreover, AzureAD module is in the deprecated path (no new features). MS Graph PowerShell is replacing it which also works with PowerShell 7 and later and on all platforms including Windows, macOS, and Linux.
Microsoft Graph PowerShell SDK is based on Microsoft Graph API. The Microsoft Graph API includes, in addition to Azure AD, APIs from other Microsoft services like SharePoint, Exchange, Outlook, etc, all accessed through a single endpoint with a single access token. Azure AD Graph PowerShell is based on Azure AD Graph which is deprecated. To learn more on migrating from Azure AD Graph to Microsoft Graph see Microsoft Graph or Azure AD Graph.
Reference:
Microsoft Graph PowerShell overview
Microsoft Graph PowerShell SDK
Hope this was helpful.
------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.