<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to remove a VcClusterDrsVmConfigSpec in VMware Aria Automation Orchestrator Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-remove-a-VcClusterDrsVmConfigSpec/m-p/891122#M5663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi robrtb12,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var mo = new VcManagedObjectReference();&lt;/P&gt;&lt;P&gt;mo.type = "VirtualMachine";&lt;/P&gt;&lt;P&gt;mo.value = vm.id; &lt;/P&gt;&lt;P&gt;dasSpec.operation = VcArrayUpdateOperation.remove;&lt;/P&gt;&lt;P&gt;dasSpec.removeKey = mo; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jul 2013 13:27:55 GMT</pubDate>
    <dc:creator>simon1234</dc:creator>
    <dc:date>2013-07-15T13:27:55Z</dc:date>
    <item>
      <title>How to remove a VcClusterDrsVmConfigSpec</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-remove-a-VcClusterDrsVmConfigSpec/m-p/891121#M5662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've experienced some issues over the last couple of years deploying a VM from a template in a workflow.&amp;nbsp; In my custom workflow I power off and power on the VM a couple of times (DVPortgroup 'dynamic binding', OS configs, etc.) and occasionally vCenter migrates the VM to a new host.&amp;nbsp; i'm a little OCD in the fact that I want to elimate all possible failures during the workflow.&amp;nbsp; I discoved that I could disable DRS for the VM.&amp;nbsp; While proofing this yesterday I was able to Add a VcClusterDrsVmConfigSpec to the Cluster however, I wasn't able to remove the VcClusterDrsVmConfigSpec from the Cluster; for when the deployment is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what we're running:&lt;/P&gt;&lt;P&gt;vCenter 4.1.0 (Build 345043) - they will be applying Update3 to the vCenter this weekend.&lt;/P&gt;&lt;P&gt;vCO 4.2.0 (Build 5277)&amp;nbsp; - using vCenter plug-in 5.0.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Onyx (2.1.4226) here is the code generated:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;spec.drsVmConfigSpec = System.getModule("com.vmware.onyx").array(VcClusterDrsVmConfigSpec, 1);&lt;/P&gt;&lt;P&gt;spec.drsVmConfigSpec[0] = new VcClusterDrsVmConfigSpec();&lt;/P&gt;&lt;P&gt;spec.drsVmConfigSpec[0].operation = VcArrayUpdateOperation.remove;&lt;/P&gt;&lt;P&gt;spec.drsVmConfigSpec[0].removeKey = vm-451566;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to pass 'vm.id' to 'removeKey', I get error:&amp;nbsp; Task 'ReconfigureComputeResource_Task' error: A specified parameter was not correct.&lt;/P&gt;&lt;P&gt;Looking in the 5.0 plug-in API i see that 'removeKey' is Deprecated.&lt;BR /&gt;Using 'removeKey_IntValue' passing 'vm.id' or 'vm' or '451566' they all fail as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I'm missing when removing the VcClusterDrsVmConfigSpec entry?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 14:05:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-remove-a-VcClusterDrsVmConfigSpec/m-p/891121#M5662</guid>
      <dc:creator>robrtb12</dc:creator>
      <dc:date>2013-03-20T14:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a VcClusterDrsVmConfigSpec</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-remove-a-VcClusterDrsVmConfigSpec/m-p/891122#M5663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi robrtb12,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var mo = new VcManagedObjectReference();&lt;/P&gt;&lt;P&gt;mo.type = "VirtualMachine";&lt;/P&gt;&lt;P&gt;mo.value = vm.id; &lt;/P&gt;&lt;P&gt;dasSpec.operation = VcArrayUpdateOperation.remove;&lt;/P&gt;&lt;P&gt;dasSpec.removeKey = mo; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2013 13:27:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-remove-a-VcClusterDrsVmConfigSpec/m-p/891122#M5663</guid>
      <dc:creator>simon1234</dc:creator>
      <dc:date>2013-07-15T13:27:55Z</dc:date>
    </item>
  </channel>
</rss>

