New-SCStorageQoSPolicy

Creates a storage QoS policy on one or more storage file servers.

Syntax

New-SCStorageQoSPolicy [-BandwidthLimitMBPS <UInt64>] [-Description <String>] [-IOPSMaximum <UInt64>]
 [-IOPSMinimum <UInt64>] [-IOPSNormalizationSizeKB <UInt32>] [-JobVariable <String>] -Name <String>
 [-PROTipID <Guid>] -PolicyType <StorageQoSPolicyType> [-RunAsynchronously] [-StorageArray <StorageArray[]>]
 [-StorageFileServer <StorageFileServer[]>] [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The New-SCStorageQoSPolicy cmdlet creates a storage Quality of Service (QoS) policy on one or more storage file servers.

Examples

Example 1: Create a multi-instance storage QoS policy with maximum IOPS settings for a single file server

PS C:\> $FileServersToAdd = @()
PS C:\> $FileServersToAdd += Get-SCStorageFileServer -Name "FileServer01c"
PS C:\> New-SCStorageQoSPolicy -Name "MAXIOPSPolicy" -Description "" -PolicyType "MultiInstance" -IOPSMinimum "0" -IOPSMaximum "10000" -StorageFileServer $FileServersToAdd

This command creates a multi-instance storage QoS policy with maximum IOPS settings for a single file server.

Example 2: Create a single-instance storage QoS policy with minimum IOPS settings for two file servers

PS C:\> $FileServersToAdd = @()
PS C:\> $FileServersToAdd += Get-SCStorageFileServer -Name "FileServer01c"
PS C:\> $FileServersToAdd += Get-SCStorageFileServer -Name "FileServer02c"
New-SCStorageQoSPolicy -Name "MINIOPSPolicy" -Description "" -PolicyType "SingleInstance" -IOPSMinimum "5000" -IOPSMaximum "0" -StorageFileServer $FileServersToAdd

This command creates a single-instance storage QoS policy with minimum IOPS settings for two file servers.

Parameters

-BandwidthLimitMBPS
Type:UInt64
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Description

Specifies a description for the policy.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IOPSMaximum

Specifies the maximum IOPS.

Type:UInt64
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IOPSMinimum

Specifies the minimum IOPS.

Type:UInt64
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IOPSNormalizationSizeKB
Type:UInt32
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies a variable in which job progress is tracked and stored.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of a Virtual Machine Manager (VMM) object.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PolicyType

Specifies the QoS policy type. The acceptable values for this parameter are:

- SingleInstance

  • MultiInstance

Type:StorageQoSPolicyType
Parameter Sets:Aggregated, Dedicated
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageArray
Type:StorageArray[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageFileServer

Specifies an array of storage file server objects.

Type:StorageFileServer[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

StorageQoSPolicy

This cmdlet returns a **StorageQoSPolicy** object.