Add health tests for certificates and nb api endpoint resolution #525
+164
−24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces several enhancements and fixes related to SDN certificate health checks, DNS resolution, and remediation guidance in the SDN diagnostics module. The main improvements include new certificate validation tests, more robust DNS resolution logic, and clearer remediation instructions for detected issues.
Certificate Health Checks:
Test-SdnCertificateExpired(checks for expired/expiring SDN certificates) andTest-SdnCertificateMultiple(detects multiple certificates with the same subject name), including their configuration, documentation links, and integration into server and load balancer health validation flows. [1] [2] [3] [4] [5]Get-SdnMuxCertificateandGet-SdnServerCertificateto accept aNetworkControllerOidswitch for more flexible certificate retrieval, and improved their documentation. [1] [2] [3]DNS Resolution Improvements:
Test-SdnNetworkControllerApiNameResolutionto accept a simple endpoint string, enumerate and filter DNS servers, and attempt resolution against each, with detailed failure reporting and remediation guidance.Remediation Guidance Enhancements:
Write-HealthValidationInfoto handle array-based instructions and provide clearer, actionable steps for certificate and DNS issues. [1] [2]Configuration and Impact Updates:
SdnDiag.Health.Config.psd1to reflect new behaviors and provide direct links to troubleshooting guides.These changes collectively improve the accuracy and clarity of SDN health diagnostics, especially around certificate management and DNS configuration, making troubleshooting more effective for operators and support teams.
Change type
Checklist: