VMware Cloud Community
Wayne_sun
VMware Employee
VMware Employee

Issue with Get-SpbmStoragePolicy cmdlet

Hi,

My SDDC env is vSphere6.5 u1 and I want to set vm's storage policy through powercli, but there are some issue with this cmdlet "Get-SpbmStoragePolicy" and my powercli version is 6.5 R1. Could you help me? thanks!

Get-SpbmStoragePolicy : 2018/5/14 15:14:19Get-SpbmStoragePolicy

Expected <_this> tag not found

while parsing call information for method QueryServiceEndpointList

at line 1, column 218

while parsing SOAP body

at line 1, column 207

while parsing SOAP envelope

at line 1, column 38

while parsing HTTP request for method queryServiceEndpointList

on object of type vim.ServiceDirectory

at line 1, column 0

+ Get-SpbmStoragePolicy -Name 'TEST'

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo      : NotSpecified: (:) [Get-SpbmStoragePolicy], VimEx

   ception

+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio

   n.Storage.Commands.Cmdlets.Spbm.GetStorageProfile

Get-SpbmStoragePolicy : 2018/5/14 15:14:19Get-SpbmStoragePolicy    Spbm

StoragePolicy with name 'TEST' was not found using the specified filter(s).

+ Get-SpbmStoragePolicy -Name 'TEST'

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo      : ObjectNotFound: (:) [Get-SpbmStoragePolicy], Vim

   Exception

+ FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimA

   utomation.Storage.Commands.Cmdlets.Spbm.GetStorageProfile

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Is there a specific reason you can not upgrade to the latest PowerCLI version (10.1.0)?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos