-
Notifications
You must be signed in to change notification settings - Fork 21
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
ConvertTo-DscObject busted again with nested properties in some cases #34
Comments
@NikCharlebois Just to let you know this is still happening with latest version. |
@NikCharlebois Any chance in looking at this? I had a call early this morning where a manager told me that they are creating all policies as Settings Catalog but in order to use our solution we need to have this bug fixed otherwise they won't consider using DSC at all. |
Here's another test resource which also has the same problem IntuneDeviceConfigurationKioskPolicyWindows10 IntuneDeviceConfigurationKioskPolicyWindows10 "IntuneDeviceConfigurationKioskPolicyWindows10-IntuneDeviceConfigurationKioskPolicyWindows10_1"
{
ApplicationId = $IntuneApplicationId;
Assignments = @(
MSFT_DeviceManagementConfigurationPolicyAssignments{
dataType = '#microsoft.graph.groupAssignmentTarget'
deviceAndAppManagementAssignmentFilterType = 'none'
groupId = 'b0b8fd3f-af2a-453b-be57-80182d599f02'
}
MSFT_DeviceManagementConfigurationPolicyAssignments{
dataType = '#microsoft.graph.exclusionGroupAssignmentTarget'
deviceAndAppManagementAssignmentFilterType = 'none'
groupId = '053dc89a-be83-411a-bad3-909904b7239e'
}
);
CertificateThumbprint = $IntuneCertThumbprint;
DisplayName = "IntuneDeviceConfigurationKioskPolicyWindows10_1";
EdgeKioskEnablePublicBrowsing = $False;
Ensure = "Present";
Id = "7fea73fd-20d3-439a-9fa4-73955e082dc5";
KioskBrowserDefaultUrl = "http://bing.com";
KioskBrowserEnableEndSessionButton = $False;
KioskBrowserEnableHomeButton = $True;
KioskBrowserEnableNavigationButtons = $False;
KioskProfiles = @(
MSFT_MicrosoftGraphwindowsKioskProfile{
AppConfiguration = MSFT_MicrosoftGraphWindowsKioskAppConfiguration{
odataType = '#microsoft.graph.windowsKioskSingleWin32App'
Win32App = MSFT_MicrosoftGraphWindowsKioskWin32App{
AppType = 'unknown'
AutoLaunch = $False
ClassicAppPath = 'msedge.exe'
EdgeKiosk = 'https://domain.com'
EdgeKioskType = 'publicBrowsing'
EdgeNoFirstRun = $True
StartLayoutTileSize = 'hidden'
}
}
ProfileId = '17f9e980-3435-4bd5-a7a1-ca3c06d0bf2c'
ProfileName = 'profile'
UserAccountsConfiguration = @(
MSFT_MicrosoftGraphWindowsKioskUser{
odataType = '#microsoft.graph.windowsKioskAutologon'
}
)
}
);
TenantId = $OrganizationName;
WindowsKioskForceUpdateSchedule = MSFT_MicrosoftGraphwindowsKioskForceUpdateSchedule{
RunImmediatelyIfAfterStartDateTime = $False
StartDateTime = '2023-04-15T23:00:00.0000000+00:00'
DayofMonth = 1
Recurrence = 'daily'
DayofWeek = 'sunday'
};
} |
Fixed in PR #36 |
Issue can be closed |
@ricmestre You can close this issue, should already be fixed. |
Completely forgot about this, yes it can be closed since it was already fixed. |
It seems that sometimes ConvertTo-DscObject still misbehaves, take a look at the blueprint at the bottom then check this, the Settings property inside $Resource has other properties inside that should be actually be nested inside Settings.SettingInstance (such as Value or odataType)
But in this case Settings.SettingInstance is actually empty where it shouldn't.
Blueprint
The text was updated successfully, but these errors were encountered: