Hi,
I am trying to assign NPIV WWN to VM by using the following code in the script block of my workflow.
But I keep getting invalid configuration error in the VC client.
What am I missing?
var vmConfigSpec = new VcVirtualMachineConfigSpec() ;
vmConfigSpec.npivWorldWideNameOp = VcVirtualMachineConfigSpecNpivWwnOp._generate ;
vmConfigSpec.npivTemporaryDisabled = false;
vmConfigSpec.npivWorldWideNameType = VcVirtualMachineConfigInfoNpivWwnType._vc;
vmConfigSpec.npivDesiredNodeWwns = 1;
vmConfigSpec.npivDesiredPortWwns = 1;
vm.reconfigVM_Task(vmConfigSpec);
Thanks,
Tej