xWebAppPool: 'logEventOnRecyle' causes configuration to return false if the order of your desired events does not match what is written to applicationHost.config #434
Labels
bug
The issue is a bug.
Details of the scenario you tried and the problem that is occurring
When defining
xWebAppPool
and setting thelogEventOnRecycle
property, the order in which each desired event is placed in the string should not matter. However, if this string is written with each item in a different order than will be written toapplicationHost.config
then the resource will fail onTest-DscConfiguration
every time.For example, setting
logEventOnRecycle = 'Time,Memory,PrivateMemory'
is fine because that's the order that will show in applicationHost.config, butlogEventOnRecycle = 'PrivateMemory,Time,Memory'
will fail.Verbose logs showing the problem
Suggested solution to the issue
Make the property value string be order-agnostic and test against each individual event in the sting.
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: