2 Replies Latest reply on Oct 7, 2019 9:49 AM by tedfiedler

    Setting CPU|MemoryGuaranteedPercent to 0 or unlimited

    tedfiedler Lurker

      Attempting to set CPU|MemoryGuaranteedPercent to unlimited or 0 Ive tried $null also

       

      This is what I get when I try

       

      PS /home/ted/repos/provisioning/bin/vorg> $vdc

       

       

      Name                           Enabled CpuUsedGHz      MemoryUsedGB    StorageUsedGB   AllocationModel

      ----                           ------- ----------      ------------    -------------   ---------------

      Askew909-01                    True    0.00            0.000           0.000           PayAsYouGo

       

       

      PS /home/ted/repos/provisioning/bin/vorg> $vdc.MemoryGuaranteedPercent

      1

      PS /home/ted/repos/provisioning/bin/vorg> Get-Org -Name Askew909-01 | Set-OrgVdc -MemoryGuaranteedPercent 0

      Set-OrgVdc : Cannot validate argument on parameter 'MemoryGuaranteedPercent'. A positive value is expected.                                                                                                                  At line:1 char:65

      + Get-Org -Name Askew909-01 | Set-OrgVdc -MemoryGuaranteedPercent 0

      +                                                                 ~

      + CategoryInfo          : InvalidData: (:) [Set-OrgVdc], ParameterBindingValidationException

      + FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.Cloud.Commands.Cmdlets.SetOrgVdc

       

      PowerCli version is

       

      PowerCLI Version

      ----------------

         VMware PowerCLI 11.3.0 build 13990089

      ---------------

      Component Versions

      ---------------

         VMware Cis Core PowerCLI Component PowerCLI Component 11.3 build 13964830

         VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 11.3 build 13964826

         VMware VimAutomation Vds Commands PowerCLI Component PowerCLI Component 11.2 build 12483615

         VMware VimAutomation Cloud PowerCLI Component PowerCLI Component 11.0 build 10379994

       

       

      Per the docs both the CPU and mem guaranteed: This parameter accepts values in the range of 0 to 100. Is there something Im doing wrong?

       

      Thanks in advance

       

      Ted