dsccommunity / dsccommunity/SqlServerDsc
Get-SqlDscRSConfiguration: Support enumerating all instances
Nobody has claimed this yet.
- 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
InstanceNameis not specified, callGet-SqlDscRSSetupConfigurationinternally to discover all instances - Return an array of CIM instances when multiple instances exist
- Maintain backward compatibility - existing scripts using
-InstanceNameshould continue to work
Related
- This enhancement was identified while reviewing PR #2348, which proposed a separate command that included this functionality
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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