1 - Run the below cmdlets to remove all these modules:
- Uninstall-Module ExchangeOnlineManagement -Allversions
- Uninstall-Module Az.Accounts -Allversions
- Uninstall-Module Az.Resources -Allversions
- Uninstall-Module Microsoft.Graph -Allversions
2 - Run the below cmdlets to install supported versions:
- Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.0.0
- Install-Module -Name Az.Accounts -RequiredVersion 2.10.3
- Install-Module -Name Az.Resources -RequiredVersion 6.4.1
- Install-Module -Name Microsoft.Graph -RequiredVersion 1.17.0
After reinstalling the PowerShell modules, restart the Active Roles Administration Service.