Syntax
Get-SpbmCompatibleStorage -StoragePolicy <SpbmStoragePolicy> [-CandidateStorage <StorageResource[]>] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online versionDetailed Description
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.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
CandidateStorage | StorageResource[] | 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. | false | true (ByValue) | |
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | false | |
StoragePolicy | SpbmStoragePolicy | Specifies a storage requirement policy. | true | true (ByValue) |
Return Type
List of storage resources (datastores and storage pods) matching the policyNotes
Works only with vCenter Server 5.5 or later. For more information, see the VMware Storage Policy API Reference: https://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.vspsdk.apiref.doc/right-pane.htmlExamples
-------------- 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.