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

Get-VBRCloudServer

In this article

    Short Description

    Returns cloud hosts available by your cloud resources.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

    This cmdlet provides three parameter sets.

    • For looking for hosts by host name:

    Get-VBRCloudServer [-Name <string[]>]  [<CommonParameters>]

    • For looking for hosts of a selected cloud service provider:

    Get-VBRCloudServer [-CloudProvider <VBRCloudProvider[]>] [-Name <string[]>]  [<CommonParameters>]

    • For looking for hosts by host ID:

    Get-VBRCloudServer [-Id <guid[]>] [-Name <string[]>]  [<CommonParameters>]

    Related Commands

    Get-VBRCloudProvider

    Return Type

    VBRCloudServer

    Detailed Description

    This cmdlet returns cloud hosts that are allocated to you by your cloud resources.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Name

    Specifies the array of the host names you want to get.

    False

    Named

    False

    False

    CloudProvider

    Specifies the array of the  cloud providers. The cmdlet will return the hosts that are provided to you by these providers.

    False

    Named

    True (by Value
    FromPipeline, ValueFromPipeline
    ByPropertyName)

    False

    Id

    Specifies the array of the IDs of the host you want to get. The cmdlet will return the hosts with these IDs.

    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.

    Example 1

    This command returns cloud server named "Hyper-V Silver".

    PS C:\PS> Get-VBRCloudServer -Name "Hyper-V Silver"

    Example 2

    This example shows how to return cloud servers of the server provider with the 104.45.95.227 IP address.

    1. Run Get-VBRCloudProvider to get the cloud provider and save the result to the $cloudProvider variable.
    2. Run Get-VBRCloudServer using the saves variable.

    PS C:\PS> $cloudProvider = Get-VBRCloudProvider -Name "104.45.95.227"

    PS C:\PS> Get-VBRCloudServer -CloudProvider $cloudProvider