Skip to content

Commit

Permalink
Merge pull request previder#15 from gds2/patch-9
Browse files Browse the repository at this point in the history
Possible to upgrade the vm hardware
  • Loading branch information
jordyverbeek authored Oct 5, 2023
2 parents c6068ca + 1b858e8 commit 9a33faa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Previder-Powershell-Module.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,19 @@ function Get-Vm
$Res
}

function Update-VmHardware
{
[CmdletBinding(DefaultParameterSetName = "nameSet")]
param(
[parameter(ParameterSetName = "idSet", Mandatory = $TRUE)]
[string] $Id
)

$Res = New-AnnexusWebRequest -Uri "$( $Annexus.Uri )/v2/iaas/virtualmachine/$( $Id )/upgradehardware" -RequestMethod PUT
$Res
}


function Remove-Vm
{
[CmdletBinding(DefaultParameterSetName = "nameSet")]
Expand Down

0 comments on commit 9a33faa

Please sign in to comment.