Find-VBRViDatastoreCluster

Short Description

Looks for VMware datastore clusters.

Applies to

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

This cmdlet provides parameter sets that allow you to:

  • Look for VMware datastore clusters on a specific server.

Find-VBRViDatastoreCluster -Server <Object> [-Name <string[]>]  [<CommonParameters>]

  • Look for VMware datastore clusters compatible with a selected storage policy.

Find-VBRViDatastoreCluster -StoragePolicy <VBRViStoragePolicy> [-Name <string[]>]  [<CommonParameters>]

Detailed Description

This cmdlet returns a list of VMware datastore clusters.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Name

Specifies an array of datastore cluster names. The cmdlet will return clusters with these names.

String[]

False

Named

False

Server

Specifies a host or cluster. The cmdlet will return the datastore clusters created on this host or cluster.

Accepts the Object object. To get this object, run the Get-VBRServer cmdlet.

True

Named

True (ByValue,
ByProperty
Name)

StoragePolicy

Specifies the VMware storage policy profile. The cmdlet will return datastores clusters compatible with this profile.

Accepts the VBRViStoragePolicy object. To get this object, run the Find-VBRViStoragePolicy cmdlet.

True

Named

True (ByValue,
ByProperty
Name)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

This cmdlet returns the VBRViDatastoreCluster object that contains a list of VMware datastore clusters.

Examples

Find-VBRViDatastoreClusterExample 1. Looking for VMware Datastores Clusters Connected to Specific ESXi Host

This example shows how to look for VMware datastore clusters on the esx05.tech.local host.

$server = Get-VBRServer -Type ESXi -Name "esx05.tech.local"

Find-VBRViDatastoreCluster -Server $server

Perform the following steps:

  1. Run the Get-VBRServer cmdlet. Specify the Type and Name parameter values. Save the result to the $server variable.
  2. Run the Find-VBRViDatastoreCluster cmdlet. Set the $server variable as the Server parameter value.

Find-VBRViDatastoreClusterExample 2. Looking for VMware Datastores Clusters Compatible with Specific Storage Policy Profiles

This example shows how to get the list of the vol2 cluster datastores and cluster datastores which names start with cluster0*. These datastores are compatible with the SP Virtual SAN Default storage policy profile.

$server = Get-VBRServer -Type ESXi -Name "esx05.tech.local"

$policy = Find-VBRViStoragePolicy -Server $server -Name "SP Virtual SAN Default"

Find-VBRViDatastoreCluster -StoragePolicy $policy -Name "vol2", "cluster0*"

Perform the following steps:

  1. Run the Get-VBRServer cmdlet. Specify the Type and Name parameter values. Save the result to the $server variable.
  2. Run the Find-VBRViStoragePolicy cmdlet. Specify the Server and Name parameter values. Save the result to the $policy variable.
  3. Run the Find-VBRViDatastoreCluster cmdlet. Set the $policy variable as the StoragePolicy parameter value. Specify the Name parameter value.

Related Commands