Get-VMHostMatchingRules
Retrieves the list of rules in the rule set that match a specified host. You can use this cmdlet to debug your working rule set before activating it.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
VMHost | named |
|
The VMHost object to match against. | optional |
|
DeployRuleSet | named |
|
The set of rules to match against a host. |
Output
Examples
Example 1
C:\PS> Get-VMHostMatchingRules h1
Get the list of rules that match host "h1".
Example 2
C:\PS> Get-VMHostMatchingRules (Get-VMHost "h1")
Get the list of rules that match host "h1".
Related Commands
VMHostAttributes
Gets the identifying attributes of a host.
VMHostImageProfile
Gets the image profile associated with the specified ESXi host.
VMHostMatchingRules
Retrieves the list of rules in the rule set that match a specified host.