Installing azure active directory COnnect shows PowerShellinvocationException error Microsoft-Online:administration.AUtomation.MicrosoftOnlineException.

Jlaiseca 6 Reputation points
2022-11-28T13:27:49.287+00:00

Hello, we are trying to install Azure Active Directory Connect, but once we select the directory and it is validated, the following error appears, exception error:
Microsoft-Online:administration.AUtomation.MicrosoftOnlineException and don't let to continue....

The scenario is the following:
Old server (win 2012) configured with AADC, this old server was broken, and we didn't have backup copies, we tried to install it on Windows 2022, and this is the result.
Thank you very much in advance.,

Cheers

A piece of the log:
=== Token Acquisition finished successfully:
[14:05:58.541] [ 25] [INFO ] MSAL: False MSAL 4.36.0.0 MSAL.Desktop 4.8 or later Windows Server 2022 Standard [11/28 13:05:58.54 - 3649a34b-c0fc-4bd3-82e3-c65ff9566103] AT expiration time: 11/28/2022 14:08:27 +00:00, scopes https://graph.windows.net/user_impersonation source Cache from login.microsoftonline.com appHashCode 47573022
[14:05:58.541] [ 25] [INFO ] Authenticate-MSAL: successfully acquired an access token. TenantId=b1ae710c-d970-40b3-91af-03da27448284, ExpiresUTC=11/28/2022 14:08:27 +00:00, UserInfo=userdomain365@keyman .onmicrosoft.com, IdentityProvider=login.windows.net.
[14:05:58.541] [ 25] [INFO ] PowerShellHelper.ConnectMsolService: Connecting using an AccessToken. AzureEnvironment=0.
[14:05:59.353] [ 25] [ERROR] PowershellHelper: Caught exception when connecting to Windows Azure.
Exception Data (Raw): Microsoft.Online.Deployment.PowerShell.PowerShellInvocationException: An error occurred while executing the 'Connect-MsolService' command. An exception of type 'Microsoft.Online.Administration.Automation.MicrosoftOnlineException' occurred.
---> Microsoft.Online.Administration.Automation.MicrosoftOnlineException: An exception of type 'Microsoft.Online.Administration.Automation.MicrosoftOnlineException' was thrown.
at Microsoft.Online.Administration.Automation.CommonFunctions.InvokeWebServiceMethodWithRetry(String methodName, Request request, MsolCmdlet currentCmdlet, Boolean fromRetry, Boolean fromBindingRedirection)
at Microsoft.Online.Administration.Automation.ConnectMsolService.Connect(MsolCmdlet currentCmdlet, Boolean fromRetry, Boolean fromBindingRedirection, Nullable1 tenantId) at Microsoft.Online.Administration.Automation.ConnectMsolService.MsolCmdletProcessRecord() --- End of inner exception stack trace --- at Microsoft.Online.Deployment.PowerShell.PowerShellHelper.InvokeCommand(IPowerShell powerShell, Command command) at Microsoft.Online.Deployment.PowerShell.PowerShellHelper.ConnectMsolService(IPowerShell powerShell, Command connectCommand, String azureInstanceId) [14:05:59.399] [ 26] [ERROR] A terminating unhandled exception occurred. Exception Data (Raw): System.AggregateException: One or more errors occurred. ---> Microsoft.Online.Deployment.PowerShell.PowerShellInvocationException: An error occurred while executing the 'Connect-MsolService' command. An exception of type 'Microsoft.Online.Administration.Automation.MicrosoftOnlineException' occurred. ---> Microsoft.Online.Administration.Automation.MicrosoftOnlineException: An exception of type 'Microsoft.Online.Administration.Automation.MicrosoftOnlineException' was thrown. at Microsoft.Online.Administration.Automation.CommonFunctions.InvokeWebServiceMethodWithRetry(String methodName, Request request, MsolCmdlet currentCmdlet, Boolean fromRetry, Boolean fromBindingRedirection) at Microsoft.Online.Administration.Automation.ConnectMsolService.Connect(MsolCmdlet currentCmdlet, Boolean fromRetry, Boolean fromBindingRedirection, Nullable1 tenantId)
at Microsoft.Online.Administration.Automation.ConnectMsolService.MsolCmdletProcessRecord()
--- End of inner exception stack trace ---

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,459 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 144.8K Reputation points MVP
    2022-11-28T13:49:52.907+00:00

    Just a FYI: note that Windows 2022 is not supported with AADConnect

    https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-install-prerequisites

    264794-image.png

    0 comments No comments