Hi Mayank,
for some reason I am getting that error: `Error in (Dynamic Script Module name : vim3WaitTaskEnd#21) Task 'createSecondary' error: The requested operation is not implemented by the server.` I didn't use this `ftInfo` method before, but it is looks like its missing something.
------------------------------
If you find the answer helpful, please click on the RECOMMEND button.
Please visit my blog to get more information:
https://clouddepth.com------------------------------
Original Message:
Sent: Mar 21, 2025 09:55 AM
From: mayank_goyal
Subject: How to turn on Fault Tolerance for VM in Automation
/* Inputshost : VC:HostSystemvm : VC:VirtualMachineturnOn : boolean*/System.log("VM's fault tolerance info:" + vm.config.ftInfo);if ( vm.config.ftInfo != null ) { if ( vm.config.ftInfo.role == 1 ) { System.log("VM's fault tolerance secondary VM: " + vm.config.ftInfo.secondaries[0]); task = vm.enableSecondaryVM_Task(vm.config.ftInfo.secondaries[0], host); } else { throw "The VM: " + vm.name + " is not a primary VM!"; }} else if (turnOn){ task = vm.createSecondaryVM_Task(host);} else { throw "Fault tolerance is not switched on!";}actionResult = System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(task,true,3) ;
Original Message:
Sent: Mar 19, 2025 11:49 AM
From: Cashi
Subject: How to turn on Fault Tolerance for VM in Automation
Would be very helpfull, thanks!
Original Message:
Sent: Mar 19, 2025 06:38 AM
From: WhiteForEver
Subject: How to turn on Fault Tolerance for VM in Automation
Ok. I think I have a raw working code. I will prepare it and publish the link later, so you can use it.
------------------------------
If you find the answer helpful, please click on the RECOMMEND button.
Please visit my blog to get more information: https://clouddepth.com
Original Message:
Sent: Mar 19, 2025 03:44 AM
From: Cashi
Subject: How to turn on Fault Tolerance for VM in Automation
Thats not really important for me, its good in orchestrator as good as directly at provisioning. But as i see, its only possible with powershell... (!?)
Original Message:
Sent: Mar 18, 2025 04:19 AM
From: WhiteForEver
Subject: How to turn on Fault Tolerance for VM in Automation
By "automation" you mean using Orchestrator?
------------------------------
If you find the answer helpful, please click on the RECOMMEND button.
Please visit my blog to get more information: https://clouddepth.com
Original Message:
Sent: Mar 17, 2025 11:36 AM
From: Cashi
Subject: How to turn on Fault Tolerance for VM in Automation
Hi,
how can i turn on fault tolerance for a vm in automation?
Thanks, Daniel