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, Veeam Universal License

    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>]

    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.

    Accepts VBRCloudServer type.

    False

    Named

    True (ByValue,
    ByProperty
    Name)

    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 on common parameters, see the About CommonParameters section of Microsoft Docs.

    Return Type

    VBRCloudDatastore

    Example 1

    This command returns cloud datastore named "Cloud Replicas".

    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.

    $cloudServer = Get-VBRCloudServer -Name "Hyper-V Silver"

    Get-VBRCloudDatastore -CloudServer $cloudServer

    Related Commands

    Get-VBRCloudServer