Successfully installed AD Connect Agent and enabled in Azure Portal with AD premium account. Attempting to run PS command to register agent and get the following error.
Register-AzureADConnectHealthADFSAgent
Detecting AdFederationService roles...
Detected the following role(s) for adfs1.contoso.com:
AD FS 2012 R2 Federation Server
Register-AzureADConnectHealthADFSAgent : The remote server returned an error: (500) Internal Server Error.
At line:1 char:1
+ Register-AzureADConnectHealthADFSAgent
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Register-AzureADConnectHealthADFSAgent], WebException
+ FullyQualifiedErrorId : System.Net.WebException,Microsoft.Identity.Health.Adfs.PowerShell.ConfigurationModule.RegisterADHealthAdfsAgent
AD FS 2012 R2 Federation Server
Register-AzureADConnectHealthADFSAgent : The remote server returned an error: (500) Internal Server Error.
At line:1 char:1
+ Register-AzureADConnectHealthADFSAgent
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Register-AzureADConnectHealthADFSAgent], WebException
+ FullyQualifiedErrorId : System.Net.WebException,Microsoft.Identity.Health.Adfs.PowerShell.ConfigurationModule.RegisterADHealthAdfsAgent