dsccommunity / dsccommunity/SqlServerDsc
SqlConfiguration: Resource refactoring proposal
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 385
- Forks
- 224
- PR merge metrics
- No merged PRs in 30d
Description
Resource proposal
A class-based SqlConfiguration resource would manage sp_configure options and server-wide configurations. It would use Get-SqlDscConfigurationOption and Invoke-SqlDscQuery for setting values.
Proposed properties
| Property | Type qualifier | Data type | Description | Default value | Allowed values |
|---|---|---|---|---|---|
| OptionName | Key | String | The name of the configuration option | None | Any valid option name |
| OptionValue | Write | String | Option value to set | None | Valid value for option |
| ServerName | Key | String | The SQL Server host name | None | Any valid server name |
| InstanceName | Key | String | The SQL Server instance name | None | Any valid instance name |
Special considerations or limitations
Should validate allowed values and consider SQL Server version differences. Contributors should ensure changes are idempotent and do not require unnecessary service restarts.
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 by reviewing the proposed Get-SqlDscConfigurationOption and Invoke-SqlDscQuery entry points and the repository's existing resource patterns. Define the class-based SqlConfiguration resource around the listed properties, including validation, SQL Server version differences, idempotence, and restart behavior; done means the resource manages sp_configure options as specified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, sql
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100