1 Reply Latest reply on Mar 19, 2018 6:18 AM by RvdNieuwendijk

    Argument 'uriTemplate' must not be null. Parameter name: uriTemplate

    evandermeer Lurker

      We are working on some scripts to automate vCloud Director tasks, a few of the functions within the script do not work and we receive an error:

      Exception calling "UpdateServerData" with "0" argument(s): "Argument 'uriTemplate' must not be null.

      Parameter name: uriTemplate"


      The function we are calling is for example 'SetDCVMCPUCount' for a specific VM with a count of the number of vCPU's.

      +         $objVMHW.UpdateServerData()

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

          + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

          + FullyQualifiedErrorId : CloudException


      Do you have any idea what's going on here?

      Are we missing something?


      We're using PowerCLI 10.0 with a vCD 9.0 environment.