## PowerCLI Reference

# New-SpbmRuleSet

## Synopsis

This cmdlet creates an SPBM rule set.

Syntax

New-SpbmRuleSet [-AllOfRules] <SpbmRule[]> [-Name <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version

Detailed 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 object

Notes

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.html

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.

Copyright © VMware, Inc. All rights reserved.