File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,14 +235,14 @@ function Test-Assessment-41201 {
235235 }
236236
237237 foreach ($result in $displayResults ) {
238- $subLink = " $portalHost /#resource/subscriptions/$ ( $result.SubscriptionId ) "
239- $sentinelId = " /subscriptions/ $ ( $result .SubscriptionId ) /resourcegroups/ $ ( $result.ResourceGroup ) /providers/microsoft.securityinsightsarg/sentinel/ $ ( $result .WorkspaceName ) "
240- $connectorsLink = " $portalHost /#view/Microsoft_Azure_Security_Insights/MainMenuBlade/~/DataConnectors/id/$ ( $sentinelId -replace ' / ' , ' %2F ' ) "
241- $subMd = " [$ ( Get-SafeMarkdown $result.SubscriptionName ) ]($subLink )"
242- $workspaceMd = " [$ ( Get-SafeMarkdown $result.WorkspaceName ) ]($connectorsLink )"
243- $allKindsMd = if ($result.ConnectorKinds ) { Get-SafeMarkdown - Text $result.ConnectorKinds } else { ' —' }
244- $kindsMd = if ($result.FirstPartyKinds ) { Get-SafeMarkdown - Text $result.FirstPartyKinds } else { ' —' }
245- $statusDisplay = switch ($result.RowStatus ) {
238+ $subLink = " $portalHost /#resource/subscriptions/$ ( $result.SubscriptionId ) "
239+ $encodedWorkspaceId = [ System.Uri ]::EscapeDataString ($result.WorkspaceId )
240+ $connectorsLink = " $portalHost /#view/Microsoft_Azure_Security_Insights/MainMenuBlade/~/DataConnectors/id/$encodedWorkspaceId "
241+ $subMd = " [$ ( Get-SafeMarkdown $result.SubscriptionName ) ]($subLink )"
242+ $workspaceMd = " [$ ( Get-SafeMarkdown $result.WorkspaceName ) ]($connectorsLink )"
243+ $allKindsMd = if ($result.ConnectorKinds ) { Get-SafeMarkdown - Text $result.ConnectorKinds } else { ' —' }
244+ $kindsMd = if ($result.FirstPartyKinds ) { Get-SafeMarkdown - Text $result.FirstPartyKinds } else { ' —' }
245+ $statusDisplay = switch ($result.RowStatus ) {
246246 ' Pass' { ' ✅ Pass' }
247247 ' Fail' { ' ❌ Fail' }
248248 ' Investigate' { ' ⚠️ Investigate' }
You can’t perform that action at this time.
0 commit comments