Get-SpbmCompatibleStorage

Syntax

-StoragePolicy  <SpbmStoragePolicy>
[-CandidateStorage  <StorageResource[]>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
StoragePolicy
SpbmStoragePolicy named
  • wildcards
  • pipeline
  • Specifies a storage requirement policy.
    optional
    CandidateStorage
    StorageResource[] named
  • wildcards
  • pipeline
  • Specifies a list of datastores and storage pods that are candidates for storage resources. If you do not specify this parameter, the server uses all of the datastores and storage pods for placement compatibility checking.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    Output

    VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.StorageResource

    Examples


    Example 1

    Get-SpbmCompatibileStorage -StoragePolicy $policy

    Returns all datastores and datastore clusters that are in compliance with storage policy.

    Example 2

    Get-SpbmCompatibileStorage -StoragePolicy $policy -CandidateStorage $ListOfDatastoreOrDatastoreCluster

    Returns all datastores and datastore clusters from the $ListOfDatastoreOrDatastoreCluster list that are in compliance with the $policy storage policy.

    Related Commands

    Feedback

    Was this page helpful?