dsccommunity / dsccommunity/SqlServerDsc
SqlAgentSettings: New resource proposal
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 385
- Forks
- 224
- PR merge metrics
- No merged PRs in 30d
Description
Resource proposal
Suggest adding a resource 'SqlAgentSettings' as per issue #1980. Can probably start with the properties MaximumHistoryRows and MaximumJobHistoryRows from the class JobServer, but would be good to add all other potential properties while at it.
Proposed properties
| Property | Type qualifier | Data type | Description | Default value | Allowed values |
|---|---|---|---|---|---|
| InstanceName | Key | String | Specifies the name of the SQL Server instance to enable the protocol for. | None | None |
| MaximumHistoryRows | Write | UInt32 | Specifies the maximum number of rows the job history log should allow. | None | None |
| MaximumJobHistoryRows | Write | UInt32 | Specifies the maximum number of job history rows to allow for a job. | None | None |
Special considerations or limitations
Can probably re-use code from the DSC Resource SqlAgentAlert that uses the same class.
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 JobServer documentation for MaximumHistoryRows and MaximumJobHistoryRows, then inspect source/DSCResources/DSC_SqlAgentAlert/DSC_SqlAgentAlert.psm1 for reusable patterns. Define the SqlAgentSettings resource around the listed properties and identify the remaining applicable JobServer properties; done means the proposed resource and supported settings are implemented consistently with the existing resource.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, sql
- Domain
- database, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100