Forum Discussion
Aug 07, 2012
In looking at the code, you must pass in all parameters of the same 1st dimension size. The server code iterates thru that 1st dimension and then for the profiles, it iterates the 2nd dimension for each of the profiles for the given virtual server in the 1st dimension.
In looking that the code, I would think you could create a 2-D array with the second dimension empty.
define definitions, wildmasks, and resources parameters
declare empty 2-d array
$Profile_Array = new-object "iControl.LocalLBVirtualServerVirtualServerProfile[][]", 1,0
Create the virtual
VirtualServer.create($definitions, $wildmasks, $resources, $Profile_Array
I don't have a BIG-IP handy right now to test this on but it should work.
-Joe