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

Find-VBRViDatastore

Short Description

Looks for VMware datastores.

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

Syntax

This cmdlet provides parameter sets that allow you to:

  • Look for datastores connected to a specific host.

Find-VBRViDatastore -Server <CHost> [-Name <string[]>]  [<CommonParameters>]

  • Look for datastores compatible with a specific storage policy.

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

Detailed Description

This cmdlet looks for VMware datastores connected to the specified ESXi host or that are compatible with a particular VMware storage policy profile.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Server

Specifies an ESXi host. The cmdlet will return datastores connected to this host.

Accepts the CHost 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 compatible with this profile.

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

True

Named

True (ByValue,
ByProperty
Name)

Name

Specifies an array of datastores names. The cmdlet will return datastores with these names.

String[]

False

Named

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

This cmdlet returns the CViDatastoreItem object that contains information on VMware datastores connected to the specified ESXi host or compatible with a specific storage policy.

Examples

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

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

Related Commands