--- title: "Remediate-Drift" ---
This is generated from the built in components of BuildMaster 2023.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Operations within your BuildMaster instance to see exactly what operations are available.

Checks configuration status and if drifted, triggers a remediation job in Otter.

Script usage:

Otter::Remediate-Drift(
	[Credentials: <text>],
	[Server: <text>],
	[Role: <text>],
	[WaitForCompletion: <true/false>],
	[Host: <text>],
	[ApiKey: <text>]
);

Arguments:

NameFormatScript UsageUsage Notes
Credentials
text
Credentials
Server name
text
Server
Role name
text
Role
Wait until remediated
true/false
WaitForCompletion
Default value is "True".
Otter server URL
text
Host
Not specifying will "Use URL from credentials".
API key
text
ApiKey
Not specifying will "Use API key from credentials".

Note: Either a server name or role name is required, but not both. If both values are entered, role name will be ignored.

Example:


# triggers Otter to remediate drift for hdars web server roles
Otter::Remediate-Drift
(
    Credentials: ProductionOtter,
    Role: hdars-web-1k
);