Examples/Resources/xSQLServerFirewall/2-RemoveInboundFirewallRules.ps1

<#
.EXAMPLE
    This example shows how to remove the default rules for the supported features.
#>

Configuration Example
{
    param
    (
        [Parameter(Mandatory = $true)]
        [System.Management.Automation.PSCredential]
        [System.Management.Automation.Credential()]
        $SysAdminAccount
    )

    Import-DscResource -ModuleName xSqlServer

    node localhost
    {
        xSQLServerFirewall Remove_FirewallRules_For_SQL2012
        {
            Ensure               = 'Absent'
            Features             = 'SQLENGINE,AS,RS,IS'
            InstanceName         = 'SQL2012'
            SourcePath           = '\\files.company.local\images\SQL2012'

            PsDscRunAsCredential = $SysAdminAccount
        }

        xSQLServerFirewall Remove_FirewallRules_For_SQL2016
        {
            Ensure           = 'Absent'
            Features         = 'SQLENGINE'
            InstanceName     = 'SQL2016'
            SourcePath       = '\\files.company.local\images\SQL2016'

            SourceCredential = $SysAdminAccount
        }
    }
}