PowerCLI Reference

vSphere Auto Deploy Reference

Repair-DeployRuleSetCompliance

Synopsis

Remediate any non-compliant associations discovered by Test-DeployRuleSetCompliance

Syntax

Repair-DeployRuleSetCompliance [-TestResult] <TestResult> [<CommonParameters>]

Related Commands

Test-DeployRuleSetCompliance

Detailed Description

Remediates any differences discovered by between the rules and the actual associations between hosts and their items. Use this cmdlet if you added or changed a rule and want to apply the change to all affected hosts.

Run Test-DeployRuleSetCompliance to retrieve the required TestResult object.

You must have the privileges necessary to perform the association operations.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
TestResultTestResultOutput from a call to Test-DeployRuleSetCompliance.truetrue (ByValue)

Return Type

Notes

Examples

-------------- Example 1 --------------

C:\PS> Get-VMHost h1 | Test-DeployRuleSetCompliance | Repair-DeployRuleSetCompliance


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.