Hi @Jz
Thank you for posting this in Microsoft Q&A.
As I understand that you are facing an issue while installing Azure AD connect. You are getting an error message "Unable to retrieve the Azure Active Directory configuration. Exception of type ‘Microsoft.Online.Administration.Automation.MicrosoftOnlineException’ was thrown."
Using graph explorer, can you check the authorization policy in Azure AD by using Get authorization policy method and check if "blockMsolPowerShell" equals True. When blockMsolPowerShell policy setting is True, any MSOL command will be denied access.
For your reference: Get authorizationPolicy
GET https://graph.microsoft.com/v1.0/policies/authorizationPolicy
To resolve this issue, you will have to allow MSOL PowerShell by setting blockMsolPowerShell setting to False, using the following Update authorizationPolicy request:
For your reference: Update authorizationPolicy
Hope this helps. Do let us know if you any further queries. If the issue still persists, feel free to post back.
Thanks,
Navya
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.