microsoft/Microsoft365DSC

AADConditionalAccessPolicy: DeviceFilterMode and ApplicationsFilterMode must allow empty string value

gibi916 opened this issue · 0 comments

Description of the issue

Can you please authorize empty string "" for DeviceFilterMode and ApplicationsFilterMode parameters. Today they are described as follow :

[Parameter()]
        [ValidateSet('include', 'exclude')]
        [System.String]
        $ApplicationsFilterMode,

[Parameter()]
        [ValidateSet('include', 'exclude')]
        [System.String]
        $DeviceFilterMode,

I would like like to allow empty string as these parameters are not mandatory :

[Parameter()]
        [ValidateSet('', 'include', 'exclude')]
        [System.String]
        $ApplicationsFilterMode,

[Parameter()]
        [ValidateSet('', 'include', 'exclude')]
        [System.String]
        $DeviceFilterMode,

Thanks

Microsoft 365 DSC Version

1.24.515.2

Which workloads are affected

Azure Active Directory (Entra ID)

The DSC configuration

No response

Verbose logs showing the problem

No response

Environment Information + PowerShell Version

No response