microsoft/SdnDiagnostics

Server certificate rotate fails due to certificate property already existing

Closed this issue · 0 comments

Describe the bug
Attempting to perform the certificate rotate for server fails due to certificate member already existing.

[COMPUTER] Updating certificate information for /servers/01ea331f-2923-409e-97f0-94fe9ce4ba46
Add-Member : Cannot add a member with the name "certificate" because a member with that name already exists. To overwrite the member anyway, add the Force parameter to your command.
At C:\Program Files\WindowsPowerShell\Modules\SdnDiagnostics\4.2404.992.132855\modules\SdnDiag.Server\SdnDiag.Server.psm1:2711 char:38
+ ... roperties | Add-Member -MemberType NoteProperty -Name 'certificate' - ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (@{provisioningS...ystem.Object[]}:PSObject) [Add-Member], InvalidOperationException
    + FullyQualifiedErrorId : MemberAlreadyExists,Microsoft.PowerShell.Commands.AddMemberCommand