Get-SpbmCompatibleStorage Command | Vmware PowerCLI Reference

Get-SpbmCompatibleStorage

This cmdlet performs placement compatibility checking based on a storage requirement policy. If the compatibility checking for a hub does not produce any errors, the hub is considered as a viable candidate for virtual machine file storage.When the CandidateStorage parameter is specified, each object in the output is equal to some of the objects in the input (the -eq operation returns true).

Syntax

Get-SpbmCompatibleStorage
-StoragePolicy < SpbmStoragePolicy >
[-CandidateStorage < StorageResource[] > ]
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
StoragePolicy SpbmStoragePolicy named
  • pipeline
  • wildcards
Specifies a storage requirement policy.
optional CandidateStorage StorageResource[] named
  • pipeline
  • wildcards
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 ProgressAction ActionPreference named
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

SpbmCompatibleStorage

This cmdlet performs placement compatibility checking based on a storage requirement policy.