Drift checks #977
Replies: 4 comments 2 replies
-
|
Managing state has been a discussion. It is challenging since you could distribute a baseline config, and compare with current, but what is the process for a new or custom baseline. Will Maester only create/overwrite the baseline config if it does not exist, etc... |
Beta Was this translation helpful? Give feedback.
-
|
I like where this could go. Not sure yet about establishing a baseline to compare to, but what about a simple "here's what has changed since the last run" report? (Compare two Maester results JSON files.) |
Beta Was this translation helpful? Give feedback.
-
|
Nice. This is a cool way to do generic comparison. Would be neat to integrate with all the goodness in M365 DSC and either use their raw code to generate an export of json (I think the DSC output right now is not JSON). Or directly rely on the output from M365DSC |
Beta Was this translation helpful? Give feedback.
-
|
I agree with Stephan. The user must supply the baseline and the comparison themselves. We can't judge what the baseline is (for intune). Furthermore, unfortunately M365DSC uses their own format not JSON and is reliant on the Microsoft.Graph CMDlets which exports not all values. I think you want to have the full JSON file in order to do a proper compare. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently @Ruthhl3ss inspired me to experiment with using Maester for drift control.
❓ Question ❓
Does this test belong in Maester itself?
📃 Description 📃
It works like this:
driftfolder in the folder next to thetestsfolderbaseline.jsonfile (which you should check-in!)current.jsonbaseline.jsoncurrent.jsonbaseline.jsonmatch with a value incurrent.json, yes it does a value-by-value compare. So it does not matter if they are in a different order or whether there are whitespaces in the json.💡 Sample
Created
OtherandHelloWorldfor demo, and this is how it looks.📷 Folder structure
📷 Report overview
📷 Detailed differences
Beta Was this translation helpful? Give feedback.
All reactions