Hi guys,
Has anyone been able to get the default storage policy assigned to a VSAN datastore via powercli?
I don't think that 'compatible' necessarily means that the storage policy is assigned.
Afaik, it says that the policy could be assigned to that datastore.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Isn't this returning anything for you?
PS: I tested that's in PowerCLI 6.5.2
Get-SpbmStoragePolicy -Name 'vSAN Default Storage Policy'
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc,
Sorry I should have been more specific. We have many vsan clusters each with a vsanDatastore. We also have custom Storage Policies that should replace "Virtual SAN Default Storage Policy" as the default. I basically need to list all datastores and their Default Storage Policy. See attached screenshot.
Get-SpbmCompatibleStorage
I thought this would do the trick but doesn't seem to work in my environment
The best I can get is this, unfortunetely I can't do the reverse like Get-SpbmCompatibleStorage -CandidateStorage vsanDatastore to retrieve the Policy as the -StoragePolicy Parameter is required.
PS C:\Windows\system32> Get-SpbmCompatibleStorage -StoragePolicy FTT1
Name FreeSpaceGB CapacityGB
---- ----------- ----------
vsanDatastore 56.887 59.977
PS C:\Windows\system32> Get-SpbmCompatibleStorage -StoragePolicy FTT1 -CandidateStorage vsanDatastore
Name FreeSpaceGB CapacityGB
---- ----------- ----------
vsanDatastore 56.887 59.977
I don't think that 'compatible' necessarily means that the storage policy is assigned.
Afaik, it says that the policy could be assigned to that datastore.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
yep just realised that as I saw your reply, its just means it compatible :smileysilly: