https://github.com/microsoft/PowerApps-Samples/blob/a6d30c10d17938fbeb85245e57a4a2cb435c71c8/powershell/ServerSideSync/ConfigureCrmServerSideSync.ps1#L188 The check on line 175 is not evaluated correctly as $servicePrincipalCredentials[$i].endDateTime is a string and $currentDateTime is a DateTime.
PowerApps-Samples/powershell/ServerSideSync/ConfigureCrmServerSideSync.ps1
Line 188 in a6d30c1
The check on line 175 is not evaluated correctly as $servicePrincipalCredentials[$i].endDateTime is a string and $currentDateTime is a DateTime.