Private/AzStackHci.Results.Helpers.ps1
|
# //////////////////////////////////////////////////////////////////////////// # Strict Mode v1 (PS 5.1 safe) - surfaces reads of uninitialised variables at runtime. Set-StrictMode -Version 1.0 function Get-ConnectivityReportCategory { param([Parameter(Mandatory=$true)][object]$Row) if ($Row.ResultCategory -in @('Success', 'ConnectivityFailure', 'ConfigGap', 'PrivateLink', 'SSLInspected', 'Skipped')) { $category = [string]$Row.ResultCategory } else { $category = Get-ConnectivityResultCategory -Row $Row } if ($category -eq 'ConnectivityFailure' -and $Row.RedirectDisposition -eq 'Advisory') { return 'RedirectAdvisory' } return $category } function Get-ConnectivityReportRowClass { param([Parameter(Mandatory=$true)][object]$Row) switch (Get-ConnectivityReportCategory -Row $Row) { 'Success' { return 'status-success' } 'ConnectivityFailure' { return 'status-failed' } 'ConfigGap' { return 'status-config-gap' } 'RedirectAdvisory' { return 'status-redirect-advisory' } 'PrivateLink' { return 'status-private-link' } 'SSLInspected' { return 'status-failed' } 'Skipped' { return 'status-skipped' } } } function Get-ConnectivityReportCounts { param([AllowEmptyCollection()][object[]]$Rows) $counts = [ordered]@{Tested=0;Successful=0;Failed=0;RedirectAdvisories=0;ConfigGaps=0;PrivateLink=0;SSLInspected=0;Skipped=0} $buckets = @{Success='Successful';ConnectivityFailure='Failed';RedirectAdvisory='RedirectAdvisories';ConfigGap='ConfigGaps';PrivateLink='PrivateLink';SSLInspected='SSLInspected';Skipped='Skipped'} foreach ($row in $Rows) { if ($null -eq $row) { continue } $bucket = $buckets[(Get-ConnectivityReportCategory -Row $row)] $counts[$bucket]++ $counts.Tested++ } return [pscustomobject]$counts } function Get-ConnectivityReportFindings { param([AllowEmptyCollection()][object[]]$Rows) $counts = Get-ConnectivityReportCounts -Rows $Rows $html = "<li><strong>Results:</strong> $($counts.Successful) successful, $($counts.Failed) connectivity failure(s) (excluding redirect advisories), $($counts.RedirectAdvisories) redirect advisory(s), $($counts.ConfigGaps) configuration gap(s), $($counts.PrivateLink) Private Link detection(s), $($counts.SSLInspected) SSL inspection detection(s), $($counts.Skipped) skipped</li>" $findings = [ordered]@{ RedirectAdvisory = @{Label='Redirect advisories (requirement unverified)';Class='finding-warning';Property='RedirectTargetUrl'} ConnectivityFailure = @{Label='Connectivity failure';Class='finding-error';Property='URL'} ConfigGap = @{Label='Configuration required';Class='finding-warning';Property='URL'} PrivateLink = @{Label='Private Link detected';Class='finding-warning';Property='URL'} SSLInspected = @{Label='SSL inspection detected';Class='finding-error';Property='URL'} } foreach ($category in $findings.Keys) { $matchingRows = @($Rows | Where-Object { $null -ne $_ -and (Get-ConnectivityReportCategory -Row $_) -eq $category }) if ($matchingRows.Count -eq 0) { continue } $finding = $findings[$category] $urls = @($matchingRows | ForEach-Object { [System.Net.WebUtility]::HtmlEncode([string]$_.($finding.Property)) }) -join ', ' $html += "<li class='$($finding.Class)'><strong>$($finding.Label):</strong> $urls</li>" } return $html } function Write-ConnectivityEndpointDiagnostics { [CmdletBinding()] param( [Parameter(Mandatory)][string]$Path, [AllowEmptyCollection()][object[]]$Rows, [bool]$Complete ) $entries = [Collections.Generic.List[object]]::new() $failureCount = 0 $inspectionCount = 0 foreach ($row in $Rows) { if ($null -eq $row) { continue } $category = Get-ConnectivityResultCategory -Row $row -SSLInspectedURLs @($script:SSLInspectedURLs) -PrivateLinkURLs @($script:PrivateLinkDetectedArray) if ($category -ne 'SSLInspected' -and ($category -ne 'ConnectivityFailure' -or $row.RedirectDisposition -eq 'Advisory')) { continue } if ($category -eq 'SSLInspected') { $inspectionCount++ } else { $failureCount++ } $resource = if ($row.redirect) { [string]$row.redirect } else { [string]$row.URL } $key = Get-ConnectivityDiagnosticKey -Url $resource -Port $row.Port $messages = @() $httpAttempts = @() if ($null -ne $script:EndpointDiagnosticLog -and $script:EndpointDiagnosticLog.Contains($key)) { $messages = @($script:EndpointDiagnosticLog[$key].Messages) $httpAttempts = @($script:EndpointDiagnosticLog[$key].HttpAttempts) } $certificate = $null $certificateParts = [ordered]@{} $hasCertificate = $false $certificatePrefixes = [ordered]@{Leaf='';Intermediate='Intermediate';Root='Root'} foreach ($part in $certificatePrefixes.Keys) { $prefix = $certificatePrefixes[$part] $thumbprint = $row.("${prefix}CertificateThumbprint") $certificateParts[$part] = [pscustomobject]@{Issuer=$null;Subject=$null;Thumbprint=$null} if ([string]$thumbprint -match '^[0-9a-fA-F]+$') { $hasCertificate = $true $certificateParts[$part].Issuer = $row.("${prefix}CertificateIssuer") $certificateParts[$part].Subject = $row.("${prefix}CertificateSubject") $certificateParts[$part].Thumbprint = $thumbprint } } if ($hasCertificate) { $certificate = [pscustomobject]$certificateParts } $entries.Add([pscustomobject]@{ Node = $env:COMPUTERNAME URL = Protect-ConnectivityDiagnosticText -Text ([string]$row.URL) Port = $row.Port Source = Protect-ConnectivityDiagnosticText -Text ([string]$row.Source) ResultCategory = $category TCPStatus = $row.TCPStatus Layer7Status = $row.Layer7Status Layer7Response = Protect-ConnectivityDiagnosticText -Text ([string]$row.Layer7Response) TCPDiagnostics = $row.TCPDiagnostics DNSDiagnostics = $row.DNSDiagnostics Certificate = $certificate HttpAttempts = $httpAttempts CaptureStatus = if ($messages.Count -or $httpAttempts.Count) { 'Captured' } else { 'Unavailable' } Messages = $messages }) } $diagnostics = [pscustomobject]@{ Path = $Path HasData = $entries.Count -gt 0 Complete = $Complete FailureCount = $failureCount SSLInspectionCount = $inspectionCount Entries = @($entries) } $text = [Text.StringBuilder]::new() [void]$text.AppendLine('Endpoint diagnostic details') [void]$text.AppendLine("Node: $env:COMPUTERNAME") [void]$text.AppendLine("Generated UTC: $([DateTime]::UtcNow.ToString('o'))") [void]$text.AppendLine("Endpoint testing complete: $Complete") if (-not $Complete) { [void]$text.AppendLine('Run incomplete; no complete failure assessment is available.') } if ($entries.Count -eq 0 -and $Complete) { [void]$text.AppendLine('No failed endpoints or possible SSL-inspection indications were recorded.') } foreach ($entry in $entries) { [void]$text.AppendLine("`r`nEndpoint: $($entry.URL) Port: $($entry.Port)") [void]$text.AppendLine("Source: $($entry.Source)") [void]$text.AppendLine("Category: $($entry.ResultCategory) TCP: $($entry.TCPStatus) Layer7: $($entry.Layer7Status)") [void]$text.AppendLine("Final response: $($entry.Layer7Response)") foreach ($kind in @('TCP', 'DNS')) { $detail = Get-ConnectivityDiagnosticText -Row $entry -Kind $kind if ($detail) { [void]$text.AppendLine((Protect-ConnectivityDiagnosticText -Text $detail)) } } if ($entry.Certificate) { foreach ($part in @('Leaf','Intermediate','Root')) { $cert = $entry.Certificate.$part [void]$text.AppendLine("Certificate $part subject: $($cert.Subject)") [void]$text.AppendLine("Certificate $part issuer: $($cert.Issuer)") [void]$text.AppendLine("Certificate $part thumbprint: $($cert.Thumbprint)") } } else { [void]$text.AppendLine('Certificate: Not recorded.') } if ($entry.HttpAttempts.Count -eq 0) { [void]$text.AppendLine('No structured HTTP attempts were recorded.') } foreach ($attempt in $entry.HttpAttempts) { [void]$text.AppendLine("`r`nHTTP attempt $($attempt.AttemptNumber): $($attempt.Method) $($attempt.RequestUri)") [void]$text.AppendLine("Captured UTC: $($attempt.TimestampUtc) Duration seconds: $($attempt.DurationSeconds)") $code = if ($null -ne $attempt.HttpStatusCode) { $attempt.HttpStatusCode } else { 'Not recorded (no HTTP response)' } [void]$text.AppendLine("HTTP status code: $code") [void]$text.AppendLine("HTTP status description: $($attempt.HttpStatusDescription)") [void]$text.AppendLine('Response headers:') foreach ($name in $attempt.ResponseHeaders.Keys) { foreach ($value in $attempt.ResponseHeaders[$name]) { [void]$text.AppendLine(" ${name}: $value") } } [void]$text.AppendLine("Response body: $($attempt.ResponseBodyCaptureStatus) Truncated: $($attempt.ResponseBodyTruncated)") if ($null -ne $attempt.ResponseBodyText) { [void]$text.AppendLine($attempt.ResponseBodyText) } if ($attempt.Error) { [void]$text.AppendLine("Request error type: $($attempt.Error.ExceptionType) Status: $($attempt.Error.Status)") [void]$text.AppendLine("Request error ID: $($attempt.Error.FullyQualifiedErrorId)") [void]$text.AppendLine("Request error message: $($attempt.Error.Message)") } } if ($entry.CaptureStatus -eq 'Unavailable') { [void]$text.AppendLine('Detailed probe messages were not returned; review the final response above.') } foreach ($message in $entry.Messages) { [void]$text.AppendLine("$($message.TimestampUtc) [$($message.Level)] $($message.Message)") } } Write-Utf8NoBom -Path $Path -Content $text.ToString() return $diagnostics } function Get-ConnectivityEndpointDiagnosticsNotice { param([object]$Diagnostics, [string]$Node, [switch]$Html) if (-not $Diagnostics -or -not $Diagnostics.HasData -or -not $Diagnostics.Path) { return } $finding = if ($Diagnostics.FailureCount -gt 0 -and $Diagnostics.SSLInspectionCount -gt 0) { 'connectivity failures and possible SSL inspection' } elseif ($Diagnostics.SSLInspectionCount -gt 0) { 'possible SSL inspection' } else { 'connectivity failures' } $message = "Next steps: To assist with troubleshooting the $finding detected, review the verbose/debug text output in" if ($Html) { $safePath = [Net.WebUtility]::HtmlEncode([string]$Diagnostics.Path) if ($Node) { return "<p class='endpoint-diagnostics-notice'><strong>$message</strong> <code>$safePath</code> (node-local file on <strong>$([Net.WebUtility]::HtmlEncode($Node))</strong>).</p>" } return "<p class='endpoint-diagnostics-notice'><strong>$message</strong> <a href='EndpointDiagnostics_Detailed.txt'>EndpointDiagnostics_Detailed.txt</a>: <code>$safePath</code>.</p>" } $nodeLabel = if ($Node) { " [$Node; node-local file]" } else { '' } return "$message$nodeLabel : '$($Diagnostics.Path)'" } function Get-ConnectivityReportStyle { return @' <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <style id="connectivity-report-style"> body { font-family: Segoe UI, Arial, sans-serif; margin: 20px; color: #222; background-color: #f5f5f5; } h1 { color: #0078d4; border-bottom: 2px solid #0078d4; padding-bottom: 8px; } h2 { color: #0078d4; margin-top: 24px; } h1, h2, p, .summary { overflow-wrap: anywhere; } .report-attribution { margin: 0; padding: 8px 0; font-size: 12px; color: #616161; overflow-wrap: anywhere; } .summary { background: #fff; padding: 12px 20px; margin-bottom: 20px; border-left: 4px solid #0078d4; box-shadow: 0 1px 3px rgba(0,0,0,0.12); } .summary li { list-style: none; padding: 2px 0; } .summary ul { padding-left: 0; margin: 8px 0; } .table-wrapper { overflow-x: auto; max-width: 100%; box-shadow: 0 1px 3px rgba(0,0,0,0.12); } .top-scroll { overflow-x: auto; max-width: 100%; } .top-scroll div { height: 1px; } table { border-collapse: collapse; white-space: nowrap; background: #fff; } th { background-color: #0078d4; color: #fff; padding: 10px 8px; text-align: left; font-size: 13px; position: sticky; top: 0; } td { padding: 8px; border-bottom: 1px solid #e0e0e0; font-size: 13px; } tr:nth-child(even) { background-color: #f9f9f9; } tr:hover { background-color: #e8f4fd; } tr.status-failed { background-color: #fde7e9; } tr.status-config-gap, tr.status-private-link, tr.status-redirect-advisory, tr.status-skipped { background-color: #fff4ce; } tr.status-success { background-color: #e6f4ea; } td.diagnostic-cell { white-space: pre-wrap; min-width: 18rem; max-width: 26rem; overflow-wrap: anywhere; vertical-align: top; } .finding-error { color: #a4262c; } .finding-warning { color: #856404; } @media (max-width: 600px) { body { margin: 12px; } .summary { padding: 12px; } } </style> '@ } function Get-ConnectivityResultColumns { return @( 'RowID','URL','Port','ArcGateway','IsWildcard','Source', 'Layer7Status','Layer7Response','Layer7ResponseTime','IPAddress','TCPStatus','ResultCategory', 'RedirectDisposition','RedirectReason','RedirectOriginUrls','RedirectTargetUrl','MachineName', 'DNSResolutionStatus','TCPDiagnostics','DNSDiagnostics','Note', 'CertificateIssuer','CertificateSubject','CertificateThumbprint', 'IntermediateCertificateIssuer','IntermediateCertificateSubject','IntermediateCertificateThumbprint', 'RootCertificateIssuer','RootCertificateSubject','RootCertificateThumbprint' ) } function ConvertTo-ConnectivityHtmlTable { param([AllowEmptyCollection()][object[]]$Rows, [string[]]$Columns) $diagnosticColumns = @() if (@($Rows | Where-Object { $null -ne $_.TCPDiagnostics }).Count) { $diagnosticColumns += 'Direct TCP Diagnostics' } if (@($Rows | Where-Object { $null -ne $_.DNSDiagnostics }).Count) { $diagnosticColumns += 'DNS Diagnostics' } $Columns = @( foreach ($column in $Columns) { if ($column -in @('DNSResolutionStatus', 'TCPDiagnostics', 'DNSDiagnostics')) { continue } if ($column -eq 'Note') { $diagnosticColumns } $column } if ($Columns -notcontains 'Note') { $diagnosticColumns } ) $table = [System.Text.StringBuilder]::new() [void]$table.AppendLine('<div class="connectivity-table-group"><div class="top-scroll"><div></div></div><div class="table-wrapper" tabindex="0"><table><thead><tr>') foreach ($column in $Columns) { [void]$table.AppendLine("<th>$([System.Net.WebUtility]::HtmlEncode($column))</th>") } [void]$table.AppendLine('</tr></thead><tbody>') foreach ($row in $Rows) { $rowClass = Get-ConnectivityReportRowClass -Row $row [void]$table.AppendLine("<tr class=`"$rowClass`">") foreach ($column in $Columns) { $value = $row.$column $cellClass = '' if ($column -eq 'RedirectOriginUrls') { $value = $value -join '; ' } if ($column -eq 'Direct TCP Diagnostics') { $value = Get-ConnectivityDiagnosticText -Row $row -Kind TCP; $cellClass = ' class="diagnostic-cell"' } if ($column -eq 'DNS Diagnostics') { $value = Get-ConnectivityDiagnosticText -Row $row -Kind DNS; $cellClass = ' class="diagnostic-cell"' } $text = [System.Net.WebUtility]::HtmlEncode([string]$value) if ($column -eq 'Layer7Status') { $text = "<strong>$text</strong>" } [void]$table.AppendLine("<td$cellClass>$text</td>") } [void]$table.AppendLine('</tr>') } [void]$table.AppendLine('</tbody></table></div></div>') return $table.ToString() } function Get-ConnectivityReportScript { return @' <script> document.addEventListener('DOMContentLoaded', function() { var groups = document.querySelectorAll('.connectivity-table-group'); function syncWidths() { for (var index = 0; index < groups.length; index++) { var group = groups[index]; var bottom = group.querySelector('.table-wrapper'); if (bottom.clientWidth === 0) continue; var top = group.querySelector('.top-scroll'); top.firstElementChild.style.width = bottom.scrollWidth + 'px'; top.scrollLeft = bottom.scrollLeft; } } for (var index = 0; index < groups.length; index++) { (function(group) { var top = group.querySelector('.top-scroll'); var bottom = group.querySelector('.table-wrapper'); top.addEventListener('scroll', function() { bottom.scrollLeft = top.scrollLeft; }); bottom.addEventListener('scroll', function() { top.scrollLeft = bottom.scrollLeft; }); })(groups[index]); } syncWidths(); window.addEventListener('resize', syncWidths); }); </script> '@ } function Get-ConnectivityDiagnosticText { param([object]$Row, [ValidateSet('TCP', 'DNS')][string]$Kind) if ($Row -is [System.Collections.IDictionary]) { $Row = [pscustomobject]$Row } if ($Kind -eq 'TCP') { $diagnostic = $Row.TCPDiagnostics if (-not $diagnostic) { return 'Not run or metadata unavailable.' } return "Interface: $($diagnostic.InterfaceAlias)`nSource: $($diagnostic.SourceAddress)`nNext hop: $($diagnostic.NextHop)`nDNS answers: $($diagnostic.NameResolutionResults -join '; ')" } $diagnostic = $Row.DNSDiagnostics if (-not $diagnostic) { if ($Row.DNSResolutionStatus -eq 'Success') { return 'Not run: normal DNS resolution succeeded.' } if ($Row.Layer7Status -eq 'Skipped' -or $Row.ResultCategory -eq 'ConfigGap') { return 'Not applicable: endpoint skipped.' } return 'Not run: normal DNS outcome unavailable.' } $lines = @("Normal resolution: $($diagnostic.NormalResolutionStatus) ($($diagnostic.NormalResolutionErrorCode))", "Collection: $($diagnostic.CollectionStatus)") if ($diagnostic.SkipReason) { $lines += "Reason: $($diagnostic.SkipReason)" } foreach ($entry in $diagnostic.ResolverResults) { $lines += "Resolver: $($entry.DnsServer) [$($entry.InterfaceAlias)]" $lines += "Status: $($entry.Status); duration (ms): $($entry.DurationMilliseconds)" if (@($entry.Addresses).Count) { $lines += "Answers: $($entry.Addresses -join '; ')" } if ($null -ne $entry.HasPrivateAddress) { $lines += "RFC 1918: $($entry.HasPrivateAddress); $($entry.PrivateAddressAssessment)" if ($entry.HasPrivateAddress) { $lines += "Private answers: $($entry.PrivateAddresses -join '; ')" } } if ($entry.ErrorCode) { $lines += "Error: $($entry.ErrorCode)" } if ($entry.SkipReason) { $lines += "Skipped: $($entry.SkipReason)" } } return ($lines -join [Environment]::NewLine) } function ConvertTo-ConnectivityCsvRows { param([AllowEmptyCollection()][object[]]$Rows) foreach ($row in $Rows) { if ($row -is [System.Collections.IDictionary]) { $row = [pscustomobject]$row } $displayRow = $row | Select-Object * -ExcludeProperty TCPDiagnostics, DNSDiagnostics if ($displayRow.PSObject.Properties['RedirectOriginUrls']) { $displayRow.RedirectOriginUrls = $row.RedirectOriginUrls -join '; ' } $tcp = $row.TCPDiagnostics $dns = $row.DNSDiagnostics $columns = [ordered]@{ TCPSourceAddress = $tcp.SourceAddress TCPInterfaceAlias = $tcp.InterfaceAlias TCPNextHop = $tcp.NextHop TCPNameResolutionResults = $tcp.NameResolutionResults -join '; ' DNSNormalResolutionErrorCode = $dns.NormalResolutionErrorCode DNSCollectionStatus = $dns.CollectionStatus DNSSkipReason = $dns.SkipReason DNSResolverResultsJson = if ($dns) { ConvertTo-Json -InputObject @($dns.ResolverResults) -Depth 6 -Compress } else { $null } } foreach ($name in $columns.Keys) { Add-Member -InputObject $displayRow -NotePropertyName $name -NotePropertyValue $columns[$name] -Force } $trailingColumns = @('Note') + @(Get-ConnectivityResultColumns | Where-Object { $_ -like '*Certificate*' }) $propertyNames = @($displayRow.PSObject.Properties.Name) $orderedColumns = @($propertyNames | Where-Object { $_ -notin $trailingColumns }) + @($trailingColumns | Where-Object { $_ -in $propertyNames }) $displayRow | Select-Object -Property $orderedColumns } } # Function to process results Function Publish-Results { param ( [ValidateSet('HTML', 'CSV')] [string]$OutputFormat = 'HTML' ) begin { # Write-Debug "Publish-Results: Beginning results processing and publishing" } process { # Assign Row IDs and reorder columns $rowIdCounter = 1 foreach ($result in $script:Results) { Initialize-ConnectivityRedirectMetadata -Row $result $result.RowID = $rowIdCounter $rowIdCounter++ } $sslInspectedSnapshot = @($script:SSLInspectedURLs) $privateLinkSnapshot = @($script:PrivateLinkDetectedArray) $resultColumns = @( foreach ($column in (Get-ConnectivityResultColumns)) { if ($column -eq 'ResultCategory') { @{ Name = 'ResultCategory'; Expression = { Get-ConnectivityResultCategory -Row $_ -SSLInspectedURLs $sslInspectedSnapshot -PrivateLinkURLs $privateLinkSnapshot } } } else { $column } } ) [System.Collections.ArrayList]$script:Results = @($script:Results | Select-Object -Property $resultColumns) # Sort the array by the properties Layer7Status (Failed first, then Success, then Skipped), Source, Url $statusOrder = @{ 'Failed' = 0; 'Success' = 1; 'Skipped' = 2 } [System.Collections.ArrayList]$script:Results = @($script:Results | Sort-Object -Property @{Expression={$statusOrder[$_.Layer7Status]}; Ascending=$true}, Source, Url) # Export results based on the OutputFormat parameter (HTML or CSV) try { switch ($OutputFormat) { 'HTML' { $htmlStyle = Get-ConnectivityReportStyle $moduleVersion = [System.Net.WebUtility]::HtmlEncode([string]$ExecutionContext.SessionState.Module.Version) $preContent = "<h1>Azure Local Connectivity Test Results</h1><p class=`"report-attribution`">Generated by <strong>AzStackHci.DiagnosticSettings</strong> v$moduleVersion module</p><!-- SUMMARY -->" $columns = @($script:Results | Select-Object -First 1 | ForEach-Object { $_.PSObject.Properties.Name } | Where-Object { $_ -notin @('TCPDiagnostics', 'DNSDiagnostics', 'DNSResolutionStatus') }) $htmlTable = ConvertTo-ConnectivityHtmlTable -Rows @($script:Results) -Columns $columns $htmlBody = "<!DOCTYPE html><html lang='en'><head><title>Azure Local Connectivity Test Results</title>$htmlStyle</head><body>$preContent$htmlTable$(Get-ConnectivityReportScript)</body></html>" Write-Utf8NoBom -Path $script:OutputFile -Content $htmlBody } 'CSV' { ConvertTo-ConnectivityCsvRows -Rows @($script:Results) | Export-Csv -Path $script:OutputFile -NoTypeInformation } } } catch { Write-HostAzS "Failed to save test results to $($script:OutputFile)" Write-Error "Error: $($_.Exception.Message)" } # Always generate JSON output file (in addition to HTML/CSV) try { Write-Utf8NoBom -Path $script:JsonOutputFile -Content ($script:Results | ConvertTo-Json -Depth 8 -Compress) } catch { Write-HostAzS "Failed to save JSON results to $($script:JsonOutputFile)" Write-Error "Error: $($_.Exception.Message)" } # // Calculate the number of successful, failed, and skipped URLs [array]$successResults = @($script:Results | Where-Object { $_.ResultCategory -eq 'Success' }) # Failed URLs results [array]$failedResults = @() [array]$failedResults = @($script:Results | Where-Object { $_.ResultCategory -eq 'ConnectivityFailure' -and $_.RedirectDisposition -ne 'Advisory' }) [array]$redirectAdvisories = @($script:Results | Where-Object { $_.ResultCategory -eq 'ConnectivityFailure' -and $_.RedirectDisposition -eq 'Advisory' }) # Skipped URLs results [array]$skippedResults = @() [array]$skippedResults = $script:Results | Where-Object { $_.TCPStatus -like "Skipped*" -or $_.Layer7Status -eq "Skipped" } # If the PassThru switch is not present, display the results if(-not($PassThru.IsPresent) -and -not($script:SilentMode)){ # Console-display-only URL projection: reuse Get-DomainFromURL to strip scheme, # path and :port suffix so Format-Table -AutoSize doesn't wrap on long URLs. # The underlying $script:Results objects are UNCHANGED — CSV, HTML and JSON output # continue to emit the full URL exactly as tested. Wildcard URLs # (e.g. '*.blob.core.windows.net') are left as-is by Get-DomainFromURL. $UrlColumn = @{ Name = 'URL'; Expression = { (Get-DomainFromURL -url ([string]$_.URL)).Domain } } if($failedResults.Count -gt 0) { Write-HostAzS "`nThe following URLs failed:" -ForegroundColor Red if($IncludeTCPConnectivityTests.IsPresent){ $failedResults | Format-Table -Property RowID, Source, $UrlColumn, Port, TCPStatus, IpAddress, Layer7Response -AutoSize | Out-Host } else { $failedResults | Format-Table -Property RowID, Source, $UrlColumn, Port, IpAddress, Layer7Response -AutoSize | Out-Host } } else { Write-HostAzS "`nNo URLs failed.`n" -ForegroundColor Green } if ($redirectAdvisories.Count -gt 0) { Write-HostAzS 'Redirect advisories (requirement unverified):' -ForegroundColor Yellow $redirectAdvisories | Format-Table RowID, RedirectTargetUrl, Layer7Response, RedirectReason -AutoSize | Out-Host } if($successResults.Count -gt 0) { Write-HostAzS "The following URLs were successful:" -ForegroundColor Green if($IncludeTCPConnectivityTests.IsPresent){ $successResults | Format-Table -Property RowID, Source, $UrlColumn, Port, TCPStatus, IpAddress, Layer7Response -AutoSize | Out-Host } else { $successResults | Format-Table -Property RowID, Source, $UrlColumn, Port, IpAddress, Layer7Response -AutoSize | Out-Host } } else { Write-HostAzS "No URLs were successful.`n" } if($skippedResults.Count -gt 0) { Write-HostAzS "The following URLs were skipped:" $skippedResults | Format-Table -Property RowID, Source, $UrlColumn, Port, Layer7Status, Note -AutoSize | Out-Host } else { Write-HostAzS "No URLs were skipped.`n" -ForegroundColor Green } # Display test results summary Write-HostAzS "`nTest results summary:" Write-HostAzS "---------------------------------`n" Write-HostAzS "Total URLs tested: $($script:Results.Count)" Write-HostAzS "Successful URLs: $($successResults.Count)" -ForegroundColor Green if($failedResults.Count -gt 0){ Write-HostAzS "Failed URLs: $($failedResults.Count)" -ForegroundColor Red } else { Write-HostAzS "Failed URLs: $($failedResults.Count)" } Write-HostAzS "Skipped URLs: $($skippedResults.Count)`n" -ForegroundColor Yellow Write-HostAzS "Redirect advisories: $($redirectAdvisories.Count)" -ForegroundColor Yellow Write-HostAzS "The test result for each endpoint is shown above. For detailed output, including certificate information see the $OutputFormat output file listed below." } elseif($PassThru.IsPresent -or $script:SilentMode) { # If PassThru or NoOutput switches are present, return the results as an array of objects instead of displaying in the console return $script:Results } else { # Not expected to hit this else block, but included for safety } Write-HostAzS "`nIMPORTANT: Applicable inventory endpoints define firewall / proxy requirements." -ForegroundColor Yellow -NoNewline Write-HostAzS " RequiredDependency redirects are required chains; Advisory redirects have unverified applicability. 'Test for' rows probe inventory endpoints. Review evidence before changing firewall rules." -ForegroundColor Yellow Write-HostAzS "`nAzure Local product documentation for firewall requirements can be accessed using this URL from a device with a browser:`n`n`tMicrosoft documentation: 'https://learn.microsoft.com/azure/azure-local/concepts/firewall-requirements'`n" -ForegroundColor Green } # End of Process block end { # Write-Debug "Publish-Results: Results processing and publishing completed" } } # End of Publish-Results # //////////////////////////////////////////////////////////////////////////// # Function to remove PII from the transcript file # //////////////////////////////////////////////////////////////////////////// Function Remove-PIIFromTranscriptFile { <# .SYNOPSIS Redact the transcript file by removing sensitive information. .DESCRIPTION This function reads a transcript file, removes sensitive information (Username and RunAs User values), and overwrites the file in place with the redacted content. Returns a PSCustomObject with Success, RedactionCount, and Error fields so callers can verify the file was redacted before uploading or sharing. .OUTPUTS System.Management.Automation.PSCustomObject with properties: Success (bool), RedactionCount (int), Error (string) #> [CmdletBinding()] [OutputType([PSCustomObject])] param ( [Parameter(Mandatory=$true)] [string]$TranscriptFilePath ) begin { # Write-Debug "Remove-PIIFromTranscriptFile: Beginning PII removal from '$TranscriptFilePath'" $result = [PSCustomObject]@{ Success = $false RedactionCount = 0 Error = $null } } process { # Read the transcript file content try { $transcriptContent = Get-Content -Path $TranscriptFilePath -ErrorAction Stop } catch { $result.Error = "Failed to read the transcript file: $($_.Exception.Message)" Write-HostAzS "Error: $($result.Error)" -ForegroundColor Red return $result } # Check if the transcript file was read successfully if($transcriptContent) { # Set the variable to the original transcript file contents $redactedContent = $transcriptContent # Count matches per pattern for verbose logging, then apply the redaction. $usernamePattern = '(?i)(Username: )([a-zA-Z0-9._-]+\\[a-zA-Z0-9._-]+)' $runAsPattern = '(?i)(RunAs User: )([a-zA-Z0-9._-]+\\[a-zA-Z0-9._-]+)' $usernameMatches = [regex]::Matches(($redactedContent -join "`n"), $usernamePattern).Count $runAsMatches = [regex]::Matches(($redactedContent -join "`n"), $runAsPattern).Count Write-Verbose "Remove-PIIFromTranscriptFile: Username matches=$usernameMatches, RunAs User matches=$runAsMatches" # Redact: Username: <domain>\<username> -> <REDACTED> $redactedContent = $redactedContent -replace $usernamePattern, '$1<REDACTED>' # Redact: RunAs User: <domain>\<username> -> <REDACTED> $redactedContent = $redactedContent -replace $runAsPattern, '$1<REDACTED>' $result.RedactionCount = $usernameMatches + $runAsMatches # Write the redacted content back to the same file try { Set-Content -Path $TranscriptFilePath -Value $redactedContent -ErrorAction Stop -Force $result.Success = $true } catch { $result.Error = "Failed to update transcript file: $($_.Exception.Message)" Write-HostAzS "Error: $($result.Error)" -ForegroundColor Red } } else { $result.Error = "Transcript file was empty or could not be read." Write-HostAzS "Error: $($result.Error)" -ForegroundColor Red } return $result } end { # Write-Debug "Remove-PIIFromTranscriptFile: PII removal completed" } } # End Function Remove-PIIFromTranscriptF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