Forum Discussion
tharrison_91509
Jul 17, 2012Nimbostratus
PowerShell: Create Virtual Server
I have been tasked with writing a script using PowerShell to 'rename' several Virtual Servers in our BIG-IP. I have downloaded the iControl tool & the PowerShell cmdlets and they are connecting to ou...
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
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects