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

Get-VBRCloudDatastore

In this article

    Short Description

    Returns datastores or disk volumes allocated to you under 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 datastores or volumes by name:

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

    • For looking for datastores or volumes of a selected cloud service provider:

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

    • For looking for datastores or volumes by ID:

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

    Related Commands

    Get-VBRCloudServer

    Return Type

    VBRCloudDatastore

    Detailed Description

    This cmdlet returns datastores (for VMware) or volumes (for Hyper-V) in your cloud resources.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Name

    Specifies the name of the datastore or volume you want to get.

    False

    Named

    False

    False

    CloudServer

    Specifies the cloud service provider. The cmdlet will return the datastores or volumes provided by this cloud service provider.

    False

    Named

    True (by Value
    FromPipeline, ValueFromPipeline
    ByPropertyName)

    False

    Id

    Specifies the ID of the datastore or volume  you want to get.

    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 datastore named "Cloud Replicas".

    PS C:\PS> Get-VBRCloudDatastore -Name "Cloud Replicas"

    Example 2

    This example shows how to return cloud datastores located on the cloud server named "Hyper-V Silver".

    1. Run Get-VBRCloudServer to get the Hyper-V Silver server and save it to the $cloudServer variable.
    2. Run Get-VBRCloudDatastore with the saved variable.

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

    PS C:\PS> Get-VBRCloudDatastore -CloudServer $cloudServer