dsccommunity / dsccommunity/SqlServerDsc
SqlWindowsFirewall: Unable to remove its own created rules
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 385
- Forks
- 224
- PR merge metrics
- No merged PRs in 30d
Description
Details of the scenario you try and problem that is occurring:
There is a parameter 'Ensure' in this resource, but it does not evaluate 'Absent'. That means that the resource can not remove its own create rules.
Logic need to be added to this resource so that the rules can be removed when Ensure equals 'Absent'.
The DSC configuration that is using the resource (as detailed as possible):
xSQLServerFirewall 'InstanceFirewallConfiguration'
{
Ensure = 'Absent'
SourcePath = '\\fileserver.company.local\images'
SourceFolder = 'SQL2016'
InstanceName = 'SQL2016'
Features = 'SQLEngine,Rs,Is,As'
}
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
Windows Server 2012 R2, SQL Server 2016, PowerShell 5.0
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
Dev
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
The issue names the SqlWindowsFirewall resource and the xSQLServerFirewall DSC configuration; start by locating how that resource handles Ensure and reproduce the supplied Ensure = 'Absent' configuration. Done means the resource removes the firewall rules it created when Ensure is Absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100