Skip to content

Support for -WhatIf parameter in cmdlets #195

@dreifachm

Description

@dreifachm

Describe the feature request
The legacy UCS Central PowerShell API includes support for the -WhatIf parameter, which has proven to be an invaluable safeguard when implementing changes across our environments. This functionality allows us to preview the effects of commands before execution, significantly reducing the risk of unintended configuration changes.

We would like to request the implementation of PowerShell's standard -WhatIf parameter support in the Intersight PowerShell module, maintaining consistency with PowerShell best practices and providing the same level of operational safety we've come to rely on.

To Reproduce
UCS Central:
PS C:\Users\dreifachm> $UCSCentral = Get-Command -Module Cisco.UCSCentral -ParameterName WhatIf
PS C:\Users\dreifachm> $UCSCentral.count
881

UCS Intersight:
PS C:\Users\dreifachm> $UCSIntersight = Get-Command -Module Intersight.PowerShell -ParameterName WhatIf
Get-Command: No matching commands include a parameter named 'WhatIf'. Check the spelling of the parameter name, and then try again. (Parameter 'WhatIf')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions