dsccommunity / dsccommunity/SqlServerDsc

Get-SqlDscRSConfiguration: Support enumerating all instances

Open
#2,390 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue help wanted
Dominant language
PowerShell
Stars
385
Forks
224
PR merge metrics
No merged PRs in 30d

Description

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

  • This enhancement was identified while reviewing PR #2348, which proposed a separate command that included this functionality

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Get-SqlDscRSConfiguration command and compare its current InstanceName handling with Get-SqlDscRSSetupConfiguration. Verify behavior with and without InstanceName, including multiple installed instances, and confirm that the existing specific-instance behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.