Skip to content

Improve detection if missing AzureStackCertificationAuthority certificate #496

@arudell

Description

@arudell

For Azure Local deployments, if we do not have connectivity from NCHostAgent to NC API service, look at the certs present on the system to see if the AzureStackCertificationAuthority cert was recently generated and provide advise to install the cert to trusted root on each of the NC VMs

Copy-SdnFileToComputer -Path 'C:\ClusterStorage\Infrastructure_1\Shares\SU1_Infrastructure_1\AzureStackCertificateAuthority\AzureStackCertificationAuthority.cer' -Destination (Get-SdnWorkingDirectory) -ComputerName 'NC1','NC2','NC3'

Invoke-SdnCommand -ComputerName 'NC1','NC2','NC3' -ScriptBlock {
$cert = Get-ChildItem -Path "$(Get-SdnWorkingDirectory)\AzureStackCertificationAuthority.cer"
Import-SdnCertificate -FilePath $cert.FullName -CertStore 'Cert:\LocalMachine\Root'
}

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions