PowerCLI 11.0 'Get-Tag' Fails to Retrieve Tag Information on vCenter Server 7.0.3: Missing Service 'com.vmware.cis.data.svc.resource_model'
search cancel

PowerCLI 11.0 'Get-Tag' Fails to Retrieve Tag Information on vCenter Server 7.0.3: Missing Service 'com.vmware.cis.data.svc.resource_model'

book

Article ID: 407289

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Using command 'Get-Tag' in PowerCLI 11.0.0, gives error "Cannot find service 'com.vmware.cis.data.svc.resource_model'".

    PS H:\> get-tag
    get-tag : dd/mm/yyyy hh:mm:ss    Get-Tag        com.vmware.vapi.std.errors.operation_not_found {'messages': [com.vmware.vapi.std.localizable_message {'id': vapi.method.input.invalid.interface, 
    'default_message': Cannot find service 'com.vmware.cis.data.svc.resource_model'., 'args': [com.vmware.cis.data.svc.resource_model]}], 'data':}    
    At line:1 char:1
    + get-tag
    + ~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-Tag], CisException
        + FullyQualifiedErrorId : VMware.VimAutomation.ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.GetTag.Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.GetTag

  • Using command 'Get-TagAssignment' across any VM gives same error:

    PS H:\> get-vm "<VM-Name>" | Get-TagAssignment
    Get-TagAssignment : dd/mm/yyyy hh:mm:ss    Get-TagAssignment        com.vmware.vapi.std.errors.operation_not_found {'messages': [com.vmware.vapi.std.localizable_message {'id': 
    vapi.method.input.invalid.interface, 'default_message': Cannot find service 'com.vmware.cis.data.svc.resource_model'., 'args': [com.vmware.cis.data.svc.resource_model]}], 'data':}    
    At line:1 char:26
    + get-vm "<VM-Name>" | Get-TagAssignment
    +                          ~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-TagAssignment], CisException
        + FullyQualifiedErrorId : VMware.VimAutomation.ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.GetTagAssignment.Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.GetTagAssignment

Environment

VMware PowerCLI 11.0.0, vCenter Server 7.0.3.

Resolution

Kindly update to the latest version of VMware PowerCLI 13.3.

Additional Information

To find the latest version of PowerCLI refer: VMware PowerCLI