Skip to content

[BUG] Get-PnPServiceHealthIssue only works when providing a specific Identity #4529

@RyanSCaldwell

Description

@RyanSCaldwell

issue: When running Get-PnPServiceHealthIssue, without any parameters, the documentation notes it should return all Health Issues. Instead, the following error is shown:

VERBOSE: Acquiring oAuth token for permission scope ServiceHealth.Read.All
VERBOSE: Access token acquired
Get-PnPServiceHealthIssue: Object reference not set to an instance of an object.

If I run the CMDLET on a specific Identity, it works without issue:

Get-PnPServiceHealthIssue -Identity IT925560 -Verbose
VERBOSE: Acquiring oAuth token for permission scope ServiceHealth.Read.All
VERBOSE: Access token acquired

StartDateTime : 11/4/2024 8:00:00 PM
EndDateTime :
LastModifiedDateTime : 11/7/2024 5:01:23 PM
Title : Users can’t access Intune blogs news and the customer success blog from https://intune.microsoft.com
Id : IT925560

Steps to reproduce behavior

Get-PnPServiceHealthIssue
Get-PnPServiceHealthIssue -Identity IT925560

What is the version of the Cmdlet module you are running?

2.4.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions