Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntuneWindowsUpdateForBusinessRingUpdateProfileWindows10: Assignments still not working #4007

Closed
ricmestre opened this issue Dec 7, 2023 · 0 comments · Fixed by #4008
Closed
Labels
Bug Something isn't working Intune V1.23.1206.1 Version 1.23.1206.1

Comments

@ricmestre
Copy link
Contributor

ricmestre commented Dec 7, 2023

Description of the issue

I fixed a typo in the assignment cmdlet in #3997, nevertheless also missed that one of the parameters was actually incorrect, it needs to be DeviceConfigurationId instead of DeviceConfigurationAssignmentId

Microsoft 365 DSC Version

1.23.1206.1

Which workloads are affected

other

The DSC configuration

IntuneWindowsUpdateForBusinessRingUpdateProfileWindows10 "IntuneWindowsUpdateForBusinessRingUpdateProfileWindows10-IntuneWindowsUpdateForBusinessRingUpdateProfileWindows10_1"
        {
            AllowWindows11Upgrade               = $False;
            ApplicationId                       = $IntuneApplicationId;
            Assignments                         = @(
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    dataType = '#microsoft.graph.exclusionGroupAssignmentTarget'
                    deviceAndAppManagementAssignmentFilterType = 'none'
                    groupDisplayName = 'DummyGroupExclude'
                    groupId = '053dc89a-be83-411a-bad3-909904b7239e'
                }
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    dataType = '#microsoft.graph.groupAssignmentTarget'
                    deviceAndAppManagementAssignmentFilterType = 'none'
                    groupDisplayName = 'DummyGroupInclude'
                    groupId = 'b0b8fd3f-af2a-453b-be57-80182d599f02'
                }
            );
            AutomaticUpdateMode                 = "autoInstallAtMaintenanceTime";
            AutoRestartNotificationDismissal    = "notConfigured";
            BusinessReadyUpdatesOnly            = "userDefined";
            CertificateThumbprint               = $IntuneCertThumbprint;
            DeadlineForQualityUpdatesInDays     = 2;
            DeadlineGracePeriodInDays           = 1;
            DeliveryOptimizationMode            = "userDefined";
            DisplayName                         = "IntuneWindowsUpdateForBusinessRingUpdateProfileWindows10_1";
            DriversExcluded                     = $False;
            Ensure                              = "Present";
            FeatureUpdatesDeferralPeriodInDays  = 0;
            FeatureUpdatesPaused                = $False;
            FeatureUpdatesPauseExpiryDateTime   = "0001-01-01T00:00:00.0000000+00:00";
            FeatureUpdatesRollbackStartDateTime = "0001-01-01T00:00:00.0000000+00:00";
            FeatureUpdatesRollbackWindowInDays  = 30;
            Id                                  = "d6ce6a7e-08ea-468b-b2ae-0abb9ade0791";
            InstallationSchedule                = MSFT_MicrosoftGraphwindowsUpdateInstallScheduleType{
                ActiveHoursEnd = '20:00:00'
                ActiveHoursStart = '06:00:00'
                odataType = '#microsoft.graph.windowsUpdateActiveHoursInstall'
            };
            MicrosoftUpdateServiceAllowed       = $True;
            PostponeRebootUntilAfterDeadline    = $True;
            PrereleaseFeatures                  = "userDefined";
            QualityUpdatesDeferralPeriodInDays  = 7;
            QualityUpdatesPaused                = $False;
            QualityUpdatesPauseExpiryDateTime   = "0001-01-01T00:00:00.0000000+00:00";
            QualityUpdatesRollbackStartDateTime = "0001-01-01T00:00:00.0000000+00:00";
            SkipChecksBeforeRestart             = $False;
            TenantId                            = $OrganizationName;
            UpdateNotificationLevel             = "defaultNotifications";
            UserPauseAccess                     = "enabled";
            UserWindowsUpdateScanAccess         = "enabled";
        }

Verbose logs showing the problem

A parameter cannot be found that matches parameter name 'DeviceConfigurationAssignmentId'

Environment Information + PowerShell Version

OsName               : Microsoft Windows 11 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 22621.1.amd64fre.ni_release.220506-1250
OsLanguage           : en-US
OsMuiLanguages       : {en-US, pt-PT}

Name                           Value
----                           -----
PSVersion                      5.1.22621.2428
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.2428
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Intune V1.23.1206.1 Version 1.23.1206.1
Projects
None yet
2 participants