1 Reply Latest reply on May 14, 2018 4:53 AM by LucD

    Issue with Get-SpbmStoragePolicy cmdlet

    Wayne_sun Novice
    VMware Employees

      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