Forum Discussion
Oct 24, 2012
That looks close, but not quite there.
The function looks like this
add_persistence_profile(string [] virtual_servers, LocalLB.VirtualServer.VirtualServerPersistence [] [] profiles)
The extra parentheses around the parameters are converting the two parameters into a single array parameter.
Try changing the function call to
(Get-F5.iControl).LocalLBVirtualServer.add_persistence_profile( (, $name), $Pers_ProfileAofA);
That will convert the virtual_servers parameter into a string array, and leave the second parameter correct.
Note, I haven't tried this, but I believe it should work.
-Joe