New-SpbmRuleSet Command | Vmware PowerCLI Reference

New-SpbmRuleSet

This cmdlet creates an SPBM rule set. An SpbmRuleSet object consists of multiple SpbmRule objects. It contains both capability-based and tag-based rules. Each of the capability-based rules must be of the same namespace.

Syntax

New-SpbmRuleSet
-AllOfRules < SpbmRule[] >
[-Name < String > ]
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
AllOfRules SpbmRule[] named
  • pipeline
Specifies an array of SPBM rule objects for the new rule set.
optional Name String named
Specifies a name for the new rule set.
optional ProgressAction ActionPreference named

Output

VMware.VimAutomation.Storage.Types.V1.Spbm.SpbmRuleSet

Examples

Example 1

New-SpbmRuleSet -AllOfRules (New-SpbmRule -AnyOfTags $tag1, $tag2)

Creates an SPBM rule set with a rule of tag objects $tag1, $tag2.

Example 2

New-SpbmRuleSet -AllOfRules $rule1, $rule2, $rule3

Creates an SPBM rule set with rule objects $rule1, $rule2, and $rule3.

Related Commands

SpbmRule

This cmdlet creates an SPBM rule in the client side.

SpbmRuleSet

This cmdlet creates an SPBM rule set.