Local PowerShell command to show the Azure Microsfot Entra Connect sync server's name.
Find Azure Entra Sync Server Command Line
This one liner PowerShell command, although long, worked perfectly to list current Microsoft Entra Connect server and it also listed all previous AD connect sync servers. Didn't need past servers but it displayed them but I suspect that information could be useful for another problem so it's good to know that information could be obtained with the same command. The PowerShell command to list Azure Entra Connect sync servers doesn't list DirSync servers.
Get-ADUser -LDAPFilter "(description=*configured to synchronize to tenant*)" -Properties description | % { $_.description.SubString(142, $_.description.IndexOf(" ", 142) - 142)}
The command mentioned above is actually used in the scenario shown below to find out or validate the on-premises server Microsoft Entra Azure AD service was operating on. Also, the command includes a list of all previous servers. These servers were visible in Active Directory but were not indented to display history. This was a pleasant surprise, but we only required the current server.