Skip to content

πŸͺ² MT.1059 Discoverability and error handlingΒ #1250

@SamErde

Description

@SamErde

Describe the bug

MT.1059 (Defender for Identity health issues check) does not get discovered if the tenant is not onboarded to MDI. This makes it appear that the test does not exist, when instead it should show up as Skipped or NotRun (depending on license or onboarding state).

$MdiAllHealthIssues = Invoke-MtGraphRequest -DisableCache -ApiVersion beta -RelativeUri 'security/identities/healthIssues' -OutputType Hashtable -ErrorVariable MdiSecurityApiError throws a terminating error during BeforeDiscovery so the test and its tags are not even listed in the report.

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