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
If you only have a single OcspUri you get a change because the get seems to return a string but the desired is an array.
This is pretty low priority IMHO. Just raising for awareness.
Verbose logs showing the problem
"verbose_set": [
"Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = ResourceSet,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.",
"An LCM method call arrived from computer CA with user sid S-1-5-21-3556150029-942104223-2446729614-1008.",
"[CA]: LCM: [ Start Set ] [[AdcsAuthorityInformationAccess]DirectResourceAccess]",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Setting Active Directory Authority Information Access.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Getting Active Directory Authority Information Access.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Getting Active Directory Authority Information Access URI list for 'AddToCertificateAia'.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Retrieving local certification authority configuration.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Preparing the \"ca.example.local\\example-ca\" certification authority configuration.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Retrieving the authority information access extension entries for the certification authority.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Getting Active Directory Authority Information Access URI list for 'AddToCertificateOcsp'.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Retrieving local certification authority configuration.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Preparing the \"ca.example.local\\example-ca\" certification authority configuration.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Retrieving the authority information access extension entries for the certification authority.",
"[CA]: LCM: [ End Set ] [[AdcsAuthorityInformationAccess]DirectResourceAccess] in 0.0470 seconds.",
"[CA]: LCM: [ End Set ] in 0.1100 seconds.",
"Operation 'Invoke CimMethod' complete.",
"Time taken for configuration job to complete is 0.203 seconds"
],
"verbose_test": [
"Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = ResourceTest,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.",
"An LCM method call arrived from computer CA with user sid S-1-5-21-3556150029-942104223-2446729614-1008.",
"[CA]: LCM: [ Start Test ] [[AdcsAuthorityInformationAccess]DirectResourceAccess]",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Testing Active Directory Authority Information Access.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Getting Active Directory Authority Information Access.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Getting Active Directory Authority Information Access URI list for 'AddToCertificateAia'.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Retrieving local certification authority configuration.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Preparing the \"ca.example.local\\example-ca\" certification authority configuration.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Retrieving the authority information access extension entries for the certification authority.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Getting Active Directory Authority Information Access URI list for 'AddToCertificateOcsp'.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Retrieving local certification authority configuration.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Preparing the \"ca.example.local\\example-ca\" certification authority configuration.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Retrieving the authority information access extension entries for the certification authority.",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] MATCH: Value (type 'System.Boolean') for property 'AllowRestartService' does match. Current state is 'False' and desired state is 'False'. (DRC0020)",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] NOTMATCH: Type mismatch for property 'OcspUri' Current state type is 'System.String' and desired type is 'System.String[]'. (DRC0019)",
"[CA]: [[AdcsAuthorityInformationAccess]DirectResourceAccess] Test-DscParameter result is 'False'. (DRC0026)",
"[CA]: LCM: [ End Test ] [[AdcsAuthorityInformationAccess]DirectResourceAccess] False in 0.1780 seconds.",
"[CA]: LCM: [ End Set ] in 0.2260 seconds.",
"Operation 'Invoke CimMethod' complete.",
"Time taken for configuration job to complete is 0.305 seconds"
]
Suggested solution to the issue
maybe remove AllowRestartService from the compare. If I'm reading it right then its only used to control if the module should restart after updates.
maybe always return an array even if only a single entry.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Version of the DSC module that was used ('dev' if using current dev branch)
PS C:\Windows\system32>get-installedmodule
Version Name Repository Description
--------------------------------5.0.0 ActiveDirectoryCSDsc PSGallery DSC resources for installing, uninstalling and c...
The text was updated successfully, but these errors were encountered:
dan-hughes
pushed a commit
to dan-hughes/ActiveDirectoryCSDsc
that referenced
this issue
Apr 2, 2024
Details of the scenario you tried and the problem that is occurring
I used this module with ansible and while it works it always marks it as changed. I think there are two reasons for this.
This is pretty low priority IMHO. Just raising for awareness.
Verbose logs showing the problem
Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
The text was updated successfully, but these errors were encountered: