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

Find-VBRViStoragePolicy

In this article

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

    Related Commands

    Get-VBRServer

    Find-VBRViDatastore

    Return Type

    VBRViStoragePolicy[]

    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 (by Value
    FromPipeline, ValueFromPipeline
    ByPropertyName)

    False

    Datastore

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

    False

    Named

    False

    False

    Name

    Specifies the name of the storage profile you want to get.

    False

    Named

    False

    True

    Id

    Specifies the ID of the storage profile 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 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.

    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"