Skip to content

Commit 72879fe

Browse files
authored
Exclude display name (#703)
Exclude display name to avoid "Update to existing credential with KeyId '<>' is not allowed." error for displayName with special characters
1 parent 6093882 commit 72879fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powershell/ServerSideSync/ConfigureCrmServerSideSync.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ try
206206
$servicePrincipalCredentialsForPatch = [System.Collections.Generic.List[object]]::new()
207207

208208
$servicePrincipalCredentialsWorkingCollection | ForEach-Object {
209-
$obj = $_ | Select-Object * -ExcludeProperty "key"
209+
$obj = $_ | Select-Object * -ExcludeProperty key, displayName
210210
# Add the modified object to the list
211211
$servicePrincipalCredentialsForPatch.Add([PSCustomObject]$obj)
212212
}

0 commit comments

Comments
 (0)