Skip to content

Publish-ConnectivityHealth

Synopsis

Formats the Connectivity Health data from the SoS JSON output.

Syntax

Publish-ConnectivityHealth [-json] <String> [-html] [-failureOnly] [<CommonParameters>]

Description

The Publish-ConnectivityHealth cmdlet formats the Connectivity Health data from the SoS JSON output and publishes it as either a standard PowerShell object or an HTML object.

Examples

Example 1

Publish-ConnectivityHealth -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1!

This example extracts and formats the Connectivity Health data as a PowerShell object from the JSON file.

Example 2

Publish-ConnectivityHealth -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1! -html

This example extracts and formats the Connectivity Health data as an HTML object from the JSON file.

Example 3

Publish-ConnectivityHealth -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1! -failureOnly

This example extracts and formats the Connectivity Health data as a PowerShell object from the JSON file for only the failed items.

Parameters

-json

The path to the JSON file containing the SoS Health Summary data.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-html

Specifies that the output should be formatted as an HTML object.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-failureOnly

Specifies that the output should only contain failed items.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

Common Parameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.