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

-VMHost  <VMHost>
[-DeployRuleSet  <DeployRuleSet>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VMHost
VMHost named
  • pipeline
  • The VMHost object to match against.
    optional
    DeployRuleSet
    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

    Feedback

    Was this page helpful?