This is an archive version of the document. To get the most up-to-date information, see the current version.

Remove-VBRCloudHardwarePlan

In this article

    Short Description

    Removes hardware plans.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Requires a VCP license.

    Syntax

    Remove-VBRCloudHardwarePlan -HardwarePlan <VBRCloudHardwarePlan[]> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

    Detailed Description

    This cmdlet removes a selected hardware plan.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    HardwarePlan

    Specifies the array of hardware plans you want to remove.

    Accepts VBRViCloudHardwarePlan or VBRHvCloudHardwarePlan objects.

    True

    Named

    True (by Value
    FromPipeline, ValueFromPipeline
    ByPropertyName)

    False

    Force

    If set, the cmdlet will remove the hardware plan without notifying the user. Otherwise, the cmdlet will display a warning.

    False

    Named

    False

    False

    WhatIf

    Specifies whether the cmdlet writes a message that describes the effects of running the cmdlet without actually performing any action.

    False

    Named

    False

    False

    Confirm

    Specifies whether the cmdlet displays a prompt that asks if the tenant is sure that they want to continue.

    False

    Named

    False

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    Related Commands

    Get-VBRCloudHardwarePlan

    Return Type

    None

    Example 1

    This example shows how to remove 2 hardware plans named "VMware Silver" and "VMware Gold" using a variable.

    1. Run Get-VBRCloudHardwarePlan to get the hardware plans and save them to the $hardwareplans variable.
    2. Run Remove-VBRCloudHardwarePlan using the $hardwareplans variable.

    PS C:\PS> $hardwareplans = Get-VBRCloudHardwarePlan -Name "VMware Silver", "VMware Gold"

    PS C:\PS> Remove-VBRCloudHardwarePlan -HardwarePlan $hardwareplans

    Example 2

    This command removes a hardware plan named "Hyper-V Silver" using a pipeline.

    Run Get-VBRCloudHardwarePlan to get the hardware plan. Pass the result to the Remove-VBRCloudHardwarePlan.

    PS C:\PS> Get-VBRCloudHardwarePlan -Name "Hyper-V Silver" | Remove-VBRCloudHardwarePlan

    Example 3

    This command removes all VMware hardware plans using a pipeline.

    Run Get-VBRCloudHardwarePlan to get the hardware plan. Pass the result to the Remove-VBRCloudHardwarePlan.

    PS C:\PS> Get-VBRCloudHardwarePlan -Platform VMware | Remove-VBRCloudHardwarePlan