dsccommunity / dsccommunity/SqlServerDsc

SqlConfiguration: Resource refactoring proposal

Open
#2,168 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted resource proposal
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.