# Drift folders should match their baseline

Drift folders should match their baseline. A Maester check for Microsoft 365, Configuration drift.

Source: https://maester.dev/docs/tests/MT.1060

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/svrooij" title="Stephan van Rooij · Original author"><img src="https://github.com/svrooij.png" alt="Stephan van Rooij" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/svrooij">Stephan van Rooij</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Microsoft 365 · Configuration drift · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId MT.1060
```

## 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

Update the configuration, or the baseline, so that the two files match.

## Details

<details>
<summary>Every attribute of this check</summary>

| 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](https://github.com/maester365/maester/blob/main/tests/maester/drift/Test.MT.1060.ps1) |
| Runs per instance | Yes, one result per instance from `Get-MtDriftFolderInstance` |

</details>

## Source

- Test: [`tests/maester/drift/Test.MT.1060.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/drift/Test.MT.1060.ps1)
- Documentation: [`tests/maester/drift/Test.MT.1060.md`](https://github.com/maester365/maester/blob/main/tests/maester/drift/Test.MT.1060.md)
