Syntax
New-SpbmRuleSet [-AllOfRules] <SpbmRule[]> [-Name <String>] [-Confirm] [-WhatIf] [<CommonParameters>]Related Commands
Online VersionDetailed Description
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.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
AllOfRules | SpbmRule[] | Specifies an array of SPBM rule objects for the new rule set. | true | True (ByValue) | |
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | False | |
Name | String | Specifies a name for the new rule set. | false | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
The newly created SpbmRuleSet objectNotes
Works only with vCenter Server 5.5 or later. For more information, see the VMware Storage Policy API Reference: https://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.vspsdk.apiref.doc/right-pane.htmlExamples
-------------------------- 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.