microsoft / Microsoft365DSC

Manages, configures, extracts and monitors Microsoft 365 tenant configurations
https://aka.ms/M365DSC
MIT License
1.59k stars 500 forks source link

All MacOS Configuration Policies are empty #3815

Open DominicBoettger opened 1 year ago

DominicBoettger commented 1 year ago

Hello.

When I export the MacOS intune policies the Policies seems to be empty. Is this a bug or am I doing somethig wrong? The Windows Policies are exported with all details and settings.

This is my export command:

Export-M365DSCConfiguration -Components @("IntuneDeviceCompliancePolicyMacOS", "IntuneDeviceConfigurationPolicyMacOS", "IntuneWifiConfigurationPolicyMacOS")

 IntuneDeviceConfigurationPolicyMacOS "IntuneDeviceConfigurationPolicyMacOS-macOS: Automatic updates"
        {
            Assignments          = @(
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    deviceAndAppManagementAssignmentFilterType = 'none'
                    dataType = '#microsoft.graph.allDevicesAssignmentTarget'
                }
            );
            Credential           = $Credscredential;
            DisplayName          = "macOS: Automatic updates";
            Ensure               = "Present";
            Id                   = "d6735f46-f612-4269-8a0d-b33f600dede6";
            UpdateDelayPolicy    = @();
        }
        IntuneDeviceConfigurationPolicyMacOS "IntuneDeviceConfigurationPolicyMacOS-macOS: Defender for Endpoint Full Disk Access"
        {
            Assignments          = @(
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    deviceAndAppManagementAssignmentFilterType = 'none'
                    dataType = '#microsoft.graph.allDevicesAssignmentTarget'
                }
            );
            Credential           = $Credscredential;
            DisplayName          = "macOS: Defender for Endpoint Full Disk Access";
            Ensure               = "Present";
            Id                   = "cab62b42-7357-4276-b4f5-3e3354d0326b";
            UpdateDelayPolicy    = @();
        }
ricmestre commented 1 year ago

I'm able to replicate this issue as well. Additionally I just tested with latest M365DSC version and using the configuration file I used in #3539 I still can replicate that issue as well so this resource is unusable at the moment.