Dynamics 365 On-Prem

What should you do if you encounter this error when setting up an on-prem instance?

New-AzureRmADSpCredential : Update to existing credential with KeyId ΓÇÿxxxΓÇÖ is not allowed. At Add-CertToServicePrincipal.ps1:62 char:1

+ New-AzureRmADSpCredential -ObjectId $servicePrincipal.Id -CertValue $ ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidOperation: (:) [New-AzureRmADSpCredential], Exception + FullyQualifiedErrorId : Microsoft.Azure.Commands.ActiveDirectory.NewAzureADSpCredentialCommand