New-StorageTier

Creates a storage tier.

Syntax

New-StorageTier
   [-StoragePoolFriendlyName] <String[]>
   -FriendlyName <String>
   -MediaType <MediaType>
   [-Description <String>]
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]
   [-AsJob]
   [<CommonParameters>]
New-StorageTier
   -StoragePoolUniqueId <String[]>
   -FriendlyName <String>
   -MediaType <MediaType>
   [-Description <String>]
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]
   [-AsJob]
   [<CommonParameters>]
New-StorageTier
   -StoragePoolName <String[]>
   -FriendlyName <String>
   -MediaType <MediaType>
   [-Description <String>]
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]
   [-AsJob]
   [<CommonParameters>]
New-StorageTier
   -InputObject <CimInstance[]>
   -FriendlyName <String>
   -MediaType <MediaType>
   [-Description <String>]
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]
   [-AsJob]
   [<CommonParameters>]

Description

The New-StorageTier cmdlet creates a storage tier in a storage pool.

Examples

Example 1: Create a storage tier

PS C:\> New-StorageTier -StoragePoolFriendlyName "TierPool01" -FriendlyName "Tier11" -MediaType HDD

This command creates a storage tier for hard disk drives named Tier11 in the storage pool named TierPool01.

Parameters

-AsJob

ps_cimcommon_asjob

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CimSession

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227967 or Get-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227966 cmdlet. The default is the current session on the local computer.

Type:CimSession[]
Aliases:Session
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Description

Specifies a description for the storage tier that you create.

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

-FriendlyName

Specifies a friendly name for the storage tier.

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

-InputObject

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Type:CimInstance[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-MediaType

Specifies the media type of the storage tier. The cmdlet creates the storage tier for the media type that you specify. The acceptable values for this parameter are:

  • SSD
  • HDD
Type:MediaType
Accepted values:HDD, SSD
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-StoragePoolFriendlyName

Specifies an array of friendly names of storage pools. The cmdlet creates the storage tier in the storage pools that you specify.

Type:String[]
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-StoragePoolName

Specifies an array of names of storage pools. The cmdlet creates the storage tier in the storage pools that you specify. This human-readable name is not necessarily unique.

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

-StoragePoolUniqueId

Specifies an array of unique IDs, as strings, of storage pools. The cmdlet creates the storage tiers in the storage pools that have the IDs that you specify.

Type:String[]
Aliases:StoragePoolId
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ThrottleLimit

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

CimInstance

You can use the pipeline operator to pass a MSFT_StoragePool object to the InputObject parameter.

Outputs

CimInstance

This cmdlet outputs an object that represents the storage tier