Skip to content

Adding -ErrorAction to Get-IntersightComputeBladeIdentity suppresses output #220

@zj-92

Description

@zj-92

Describe the bug
When running Get-IntersightComputeBladeIdentity -Serial 'FCH12345678', the command returns the expected blade detail. However, running Get-IntersightComputeBladeIdentity -Serial 'FCH12345678' -ErrorAction Continue (or any error action) returns no data.

To Reproduce
Run Get-IntersightComputeBladeIdentity -Serial 'FCH12345678' -ErrorAction <Any>

The same behavior is exhibited if -Moid is used instead of -Serial - this appears to be an issue with the -ErrorAction parameter itself.

Version used

  • Intersight PowerShell Module version? 1.0.11.2026041816
  • Intersight Appliance Version (if using an Intersight Appliance as target) 1.1.6-1.a

Expected behavior
The -ErrorAction parameter should only modify the output of the function if an error is encountered. If the function runs as expected and encounters no errors, -ErrorAction should not modify the output in any way.

Screenshots
Image

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions