Skip to content

Resize-vRAMachine

SYNOPSIS

Resize a vRA Machine with the given CPU and Memory inputs

SYNTAX

ResizeByName (Default)

Resize-vRAMachine -Name <String[]> -CPU <Int32> -Memory <Int32> [-WaitForCompletion]
 [-CompletionTimeout <Int32>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

ResizeFlavorById

Resize-vRAMachine -Id <String[]> -Flavor <String> [-WaitForCompletion] [-CompletionTimeout <Int32>] [-Force]
 [-WhatIf] [-Confirm] [<CommonParameters>]

ResizeById

Resize-vRAMachine -Id <String[]> -CPU <Int32> -Memory <Int32> [-WaitForCompletion] [-CompletionTimeout <Int32>]
 [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

ResizeFlavorByName

Resize-vRAMachine -Name <String[]> -Flavor <String> [-WaitForCompletion] [-CompletionTimeout <Int32>] [-Force]
 [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Resize a vRA Machine with the given CPU and Memory inputs

EXAMPLES

EXAMPLE 1

Resize-vRAMachine -Id 'b1dd48e71d74267559bb930934470' -CPU 4 -Memory 8192

EXAMPLE 2

Resize-vRAMachine -Name 'iaas01' -CPU 4 -Memory 8192

EXAMPLE 3

Resize-vRAMachine -Id 'b1dd48e71d74267559bb930934470' -Flavor Small

EXAMPLE 4

Resize-vRAMachine -Name 'iaas01' -Flavor Small

EXAMPLE 5

Resize-vRAMachine -Name 'iaas01' -Flavor Small -WaitForCompletion

EXAMPLE 6

Resize-vRAMachine -Name 'iaas01' -Flavor Small -WaitForCompletion -CompletionTimeout 300

PARAMETERS

-Id

The ID of the vRA Machine

Type: String[]
Parameter Sets: ResizeFlavorById, ResizeById
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Name

The Name of the vRA Machine

Type: String[]
Parameter Sets: ResizeByName, ResizeFlavorByName
Aliases:

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

-Flavor

As an alternative, you can provide a flavor instead of a cpu or memory option

Type: String
Parameter Sets: ResizeFlavorById, ResizeFlavorByName
Aliases:

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

-CPU

The desired resulting cpu count for the machine

Type: Int32
Parameter Sets: ResizeByName, ResizeById
Aliases:

Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-Memory

The desired resulting memory in MB for the machine

Type: Int32
Parameter Sets: ResizeByName, ResizeById
Aliases:

Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-WaitForCompletion

If this flag is added, this function will wait for the resize operation to complete

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-CompletionTimeout

The default of this paramter is 2 minutes (120 seconds), but this parameter can be overriden here

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 120
Accept pipeline input: False
Accept wildcard characters: False

-Force

Force this change

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Management.Automation.PSObject.

NOTES