Examples/Resources/SCSecurityFilter/1-AddingNewSecurityFilter.ps1

<#
This example is used to test new resources and showcase the usage of new resources being worked on.
It is not meant to use as a production baseline.
#>


Configuration Example
{
    param(
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $Credscredential
    )
    Import-DscResource -ModuleName Microsoft365DSC

    node localhost
    {
        SCSecurityFilter 'ConfigureSecurityLabel'
        {
            FilterName      = "My Filter Name"
            Action          = "All"
            Users           = @("jonh.doe@1234.onmicrosoft.com")
            Description     = "Demo Security Label description"
            Filters         = @("Mailbox_CountryCode -eq '124'")
            Region          = "AUS"
            Ensure          = "Present"
            Credential      = $Credscredential
        }
    }
}