You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntuneDeviceAndAppManagementAssignmentFilter works for deploying the filter, I'm able to change it and Test-DSCConfiguration still succeeds, nevertheless removing the filter (by setting Ensure to "Absent") then the filter is removed but Test-DSCConfiguration stays in non-desired state.
Microsoft 365 DSC Version
1.23.1122.1
Which workloads are affected
other
The DSC configuration
# Generated with Microsoft365DSC version 1.23.1122.1# For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSCparam (
[parameter()]
[System.Management.Automation.PSCredential]
$Credential
)
ConfigurationIntuneDeviceAndAppManagementAssignmentFilter
{
param (
[parameter()]
[System.Management.Automation.PSCredential]
$Credential
)
if ($null-eq$Credential)
{
<# Credentials #>$Credscredential=Get-Credential-Message "Credentials"
}
else
{
$CredsCredential=$Credential
}
$OrganizationName=$CredsCredential.UserName.Split('@')[1]
Import-DscResource-ModuleName 'Microsoft365DSC'-ModuleVersion '1.23.1122.1'
Node localhost
{
IntuneDeviceAndAppManagementAssignmentFilter "IntuneDeviceAndAppManagementAssignmentFilter-IntuneDeviceAndAppManagementAssignmentFilter_1"
{
Credential =$CredsCredential;
DisplayName ="IntuneDeviceAndAppManagementAssignmentFilter_1";
Ensure ="Absent";
Platform ="windows10AndLater";
Rule ="(device.manufacturer -ne `"Microsoft Corporation`")";
}
}
}
IntuneDeviceAndAppManagementAssignmentFilter -ConfigurationData .\ConfigurationData.psd1 -Credential $Credential
Description of the issue
IntuneDeviceAndAppManagementAssignmentFilter works for deploying the filter, I'm able to change it and Test-DSCConfiguration still succeeds, nevertheless removing the filter (by setting Ensure to "Absent") then the filter is removed but Test-DSCConfiguration stays in non-desired state.
Microsoft 365 DSC Version
1.23.1122.1
Which workloads are affected
other
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: