Syntax
Test-DeployRuleSetCompliance [-DeployRuleSet <DeployRuleSet>] [-VMHost] <VMHost[]> [<CommonParameters>]Related Commands
Get-DeployRuleSetDetailed Description
Checks whether the specified hosts are compliant with a specified rule set. If not rule set is specified, the currently active rule set is used.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
VMHost | VMHost | Host to check for compliance. | true | true (ByValue) | |
DeployRuleSet | DeployRuleSet | Rule set to use for checking compliance. The active rule set is used by default. | false | false |
Return Type
VMware.DeployAutomation.Types.TestResult[]Notes
Examples
-------------- Example 1 --------------
C:\PS> Test-DeployRuleSetCompliance h1
Check the compliance of ESXi host "h1" against the active rule set.
-------------- Example 2 --------------
C:\PS> Get-VMHost h1 | Test-DeployRuleSetCompliance
Check the compliance of ESXi host "h1" against the active rule set.