< Back

Set-vRAReservationPolicy

Sat Jan 18, 2020 10:06 pm

NAME Set-vRAReservationPolicy



SYNOPSIS

Update a vRA Reservation Policy





SYNTAX

Set-vRAReservationPolicy -Id <String> [-NewName <String>] [-Description <String>] [-WhatIf] [-Confirm]

[<CommonParameters>]



Set-vRAReservationPolicy -Name <String> [-NewName <String>] [-Description <String>] [-WhatIf] [-Confirm]

[<CommonParameters>]



Set-vRAReservationPolicy -JSON <String> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Update a vRA Reservation Policy





PARAMETERS

-Id <String>

Reservation Policy Id



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

Reservation Policy Name



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NewName <String>

Reservation Policy NewName



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Description <String>

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:\\>Set-vRAReservationPolicy -Id "34ae1d6c-9972-4736-acdb-7ee109ad1dbd" -NewName "NewName" -Description "This

is the New Name"













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



PS C:\\>Set-vRAReservationPolicy -Name ReservationPolicy01 -NewName "NewName" -Description "This is the New Name"













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>$JSON = @"



{

"id": "34ae1d6c-9972-4736-acdb-7ee109ad1dbd",

"name": "ReservationPolicy01",

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

"reservationPolicyTypeId": "Infrastructure.Reservation.Policy.ComputeResource"

}

"@

$JSON | Set-vRAReservationPolicy -Confirm:$false











RELATED LINKS