Resolve-PowerBIError

Shows detailed error information produced from MicrosoftPowerBIMgmt.* cmdlets.

Syntax

Resolve-PowerBIError
       [-Error <ErrorRecord[]>]
       [<CommonParameters>]
Resolve-PowerBIError
       [-Last]
       [<CommonParameters>]

Description

Outputs additional information for any errors produced from MicrosoftPowerBIMgmt.* cmdlets.

Examples

Example 1

PS C:\> Resolve-PowerBIError

Displays all errors occurring in the PowerShell session.

Example 2

PS C:\> Resolve-PowerBIError -Last

Displays the last error occurring in the PowerShell session.

Parameters

-Error

List of errors to display. For example, $Error[0..2] will show the last three errors.

Type:ErrorRecord[]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Last

Indicates to show the last error occurring in the PowerShell session.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.Management.Automation.ErrorRecord[]

Outputs

System.Object