Skip to content

Get-SqlDscRSConfiguration: Support enumerating all instances #2390

@johlju

Description

@johlju

Problem Statement

Currently, Get-SqlDscRSConfiguration requires the InstanceName parameter to be specified. To enumerate configuration for all Reporting Services instances, users must use a workaround:

Get-SqlDscRSSetupConfiguration | ForEach-Object { Get-SqlDscRSConfiguration -InstanceName $_.InstanceName }

Proposed Enhancement

Make the InstanceName parameter optional. When not specified, the command should return configuration CIM instances for all installed Reporting Services instances.

Expected Behavior

# Get configuration for all instances
Get-SqlDscRSConfiguration

# Get configuration for a specific instance (current behavior)
Get-SqlDscRSConfiguration -InstanceName 'SSRS'

Implementation Notes

  • When InstanceName is not specified, call Get-SqlDscRSSetupConfiguration internally to discover all instances
  • Return an array of CIM instances when multiple instances exist
  • Maintain backward compatibility - existing scripts using -InstanceName should continue to work

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is an enhancement request.good first issueThe issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHubhelp wantedThe issue is up for grabs for anyone in the community.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions