Drift folders should match their baseline
MT.1060 is in Maester 3.0.0-preview and not in the stable 2.3.0 release yet. It will be in the next stable release. To use it now, install the preview:
Install-Module Maester -AllowPrerelease -ForceHow to get the preview, and go backUse the preview in GitHub Actions
Part of Maester · Microsoft 365 · Configuration drift · All checks
Invoke-Maester -TestId MT.1060Overview
Section titled “Overview”Checks JSON files that you supply for drift from a baseline.
Create a drift folder (or pass -DriftRoot to Invoke-Maester) with one subfolder per drift check. Each subfolder holds a baseline.json (the expected configuration), a current.json (the actual configuration) and an optional settings.json whose ExcludeProperties lists properties to skip.
Four results are created per folder, with the folder name made safe for a test ID:
MT.1060.<folder>.1: the baseline file exists and is valid JSON.MT.1060.<folder>.2: the current file exists and is valid JSON.MT.1060.<folder>.3: the current file has no properties missing from the baseline.MT.1060.<folder>.4: every value in the current file matches the baseline.
In Maester 2.x these results were named MT1060.<folder>.<n>. The MT1060, MT1060.<n>, MT1060.<folder> and MT1060.<folder>.<n> tags are kept.
Remediation action
Section titled “Remediation action”Update the configuration, or the baseline, so that the two files match.
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | MT.1060 |
| Severity | Medium |
| Suite | Maester |
| Product | Microsoft 365 |
| Feature | Configuration drift |
| Area | Infrastructure hardening |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | None |
| PowerShell test | Test-MtDriftFolder |
| Runs per instance | Yes, one result per instance from Get-MtDriftFolderInstance |
Source
Section titled “Source”- Test:
tests/maester/drift/Test.MT.1060.ps1 - Documentation:
tests/maester/drift/Test.MT.1060.md
About this check
- Severity
- Medium
- Effort to fix
- Low
- Impact on users
- Low
- Product
- Microsoft 365
- Feature
- Configuration drift
- Area
- Infrastructure hardening
- Suite
- Maester