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

Intune: Some resources can be deployed but fail test on Test-TargetResource method #3888

Closed
ricmestre opened this issue Nov 14, 2023 · 0 comments · Fixed by #3893 or #3985
Closed

Intune: Some resources can be deployed but fail test on Test-TargetResource method #3888

ricmestre opened this issue Nov 14, 2023 · 0 comments · Fixed by #3893 or #3985
Labels
Bug Something isn't working Intune V1.23.1108.1 Version 1.23.1108.1

Comments

@ricmestre
Copy link
Contributor

Description of the issue

The resources below can be deployed to other tenants after exporting from another source tenant, nevertheless the Test-TargetResource fails so the resources keep updating every time when Start-DSCConfiguration is called.

This is happening since in Test-TargetResource the property Id is not being removed from being checked just like it was done on #3886, additionally CertificateThumbprint and ManagedIdentity should also be removed from that check or better yet in this case just call Remove-M365DSCAuthenticationParameter (defined in M365DSCUtil.psm1) to remove all authentication parameters.

IntuneDeviceConfigurationDeliveryOptimizationPolicyWindows10
IntuneDeviceConfigurationHealthMonitoringConfigurationPolicyWindows10
IntuneDeviceConfigurationIdentityProtectionPolicyWindows10
IntuneWindowsAutopilotDeploymentProfileAzureADHybridJoined
IntuneWindowsAutopilotDeploymentProfileAzureADJoined

Microsoft 365 DSC Version

1.23.1108.1

Which workloads are affected

other

The DSC configuration

N/A

Verbose logs showing the problem

N/A

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.1778
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.1778
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.1108.1 Version 1.23.1108.1
Projects
None yet
2 participants