< Back

New-vRAReservationStorageDefinition

Sat Jan 18, 2020 10:02 pm

NAME New-vRAReservationStorageDefinition



SYNOPSIS

Creates a new storage definition for a reservation





SYNTAX

New-vRAReservationStorageDefinition -Type <String> -ComputeResourceId <String> -Path <String> -ReservedSizeGB

<Int32> [-Priority <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Creates a new storage definition for a reservation. This cmdlet is used to create a custom

complex storage object. One or more of these can be added to an array and passed to New-vRAReservation.





PARAMETERS

-Type <String>

The reservation type

Valid types vRA 7.1 and earlier: Amazon, Hyper-V, KVM, OpenStack, SCVMM, vCloud Air, vCloud Director, vSphere,

XenServer

Valid types vRA 7.2 and later: Amazon EC2, Azure, Hyper-V (SCVMM), Hyper-V (Standalone), KVM (RHEV),

OpenStack, vCloud Air, vCloud Director, vSphere (vCenter), XenServer



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ComputeResourceId <String>

The id of the compute resource



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Path <String>

The storage path



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ReservedSizeGB <Int32>

The size in GB of this reservation



Required? true

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Priority <Int32>

The priority of storage



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String.

System.Int.





OUTPUTS

System.Management.Automation.PSObject





-------------------------- EXAMPLE 1 --------------------------



PS C:\\># Create a storage definition for type vSphere in vRA 7.1



$StorageDefinitionArray = @()

$Storage1 = New-vRAReservationStorageDefinition -Type 'vSphere' -ComputeResourceId

75ae3400-beb5-4b0b-895a-0484413c93b1 -Path 'Datastore01' -ReservedSizeGB 10 -Priority 0

$StorageDefinitionArray += $Storage1









-------------------------- EXAMPLE 2 --------------------------



PS C:\\># Create a storage definition for type vSphere in vRA 7.2 or later



$StorageDefinitionArray = @()

$Storage1 = New-vRAReservationStorageDefinition -Type 'vSphere (vCenter)' -ComputeResourceId

75ae3400-beb5-4b0b-895a-0484413c93b1 -Path 'Datastore01' -ReservedSizeGB 10 -Priority 0

$StorageDefinitionArray += $Storage1











RELATED LINKS