Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

Find-VBRViStoragePolicy

Short Description

Looks for storage policy profiles.

Applies to

Platform: VMware

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Find-VBRViStoragePolicy -Server <CHost> [-Datastore <CViDatastoreItem>]  [<CommonParameters>]

-OR-

Find-VBRViStoragePolicy -Server <CHost> [-Datastore <CViDatastoreItem>] [-Name <string[]>]  [<CommonParameters>]

-OR-

Find-VBRViStoragePolicy -Server <CHost> [-Datastore <CViDatastoreItem>] [-Id <string[]>]  [<CommonParameters>]

Detailed Description

This cmdlet returns VMware storage policy profiles created on a vCenter Server.

You can get the list of all storage policy profiles on the specified server or look for profiles directly by name or ID.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Server

Specifies the vCenter Server where the storage policy profiles are created.

True

Named

True (ByValue,
ByProperty
Name)

False

Datastore

Specifies the datastore. The cmdlet will return storage policy profiles compatible with this datastore.

False

Named

False

False

Name

Specifies the array of storage policy profile names. The cmdlet will return profiles with these names.

False

Named

False

True

Id

Specifies the array of storage policy profile IDs. The cmdlet will return profiles 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.

Return Type

VBRViStoragePolicy[]

Example 1

This command returns all storage policy profiles registered for the Veeam.Local host.

The host is obtained with Get-VBRServer and assigned to the '$server' variable.

PS C:\PS> $server = Get-VBRServer -Name "Veeam.Local"

PS C:\PS> Find-VBRViStoragePolicy -Server $server

Example 2

This command returns storage policy profile named "Virtual SAN Default Storage Policy" registered on the Veeam.Local host.

The host is obtained with Get-VBRServer and piped down.

PS C:\PS> Get-VBRServer -Name "Veeam.Local" | Find-VBRViStoragePolicy -Name "Virtual SAN Default Storage Policy"

Example 3

This command returns all storage policy profiles registered for the Veeam.Local host.

The host is obtained with Get-VBRServer and assigned to the '$server' variable.

PS C:\PS> $server = Get-VBRServer -Name "Veeam.Local"

PS C:\PS> $datastore = Find-VBRViDatastore -Name "VeeamDatastore"

PS C:\PS> Find-VBRViStoragePolicy -Server $server -Datastore $datastore -Name "Virtual SAN Default Storage Policy"

Related Commands

Get-VBRServer

Find-VBRViDatastore

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation