Forum Discussion
Looking for help with add_persistence_profile
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
