< Back

New-vRAStorageReservationPolicy

Sat Jan 18, 2020 10:03 pm

NAME New-vRAStorageReservationPolicy



SYNOPSIS

Create a vRA Storage Reservation Policy





SYNTAX

New-vRAStorageReservationPolicy -Name <String> [-Description <String>] [-WhatIf] [-Confirm] [<CommonParameters>]



New-vRAStorageReservationPolicy -JSON <String> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Create a vRA Storage Reservation Policy





PARAMETERS

-Name <String>

Storage Reservation Policy Name



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Description <String>

Storage Reservation Policy Description



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-JSON <String>

Body text to send in JSON format



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

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.





OUTPUTS

System.Management.Automation.PSObject





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



PS C:\\>New-vRAStorageReservationPolicy -Name StorageReservationPolicy01 -Description "This is Storage Reservation

Policy 01"













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



PS C:\\>$JSON = @"



{

"name": "StorageReservationPolicy01",

"description": "This is Storage Reservation Policy 01",

"reservationPolicyTypeId": "Infrastructure.Reservation.Policy.Storage"

}

"@

$JSON | New-vRAStorageReservationPolicy











RELATED LINKS