$server = Get-OVServer -NoProfile | Select-Object -First 1
$profileName = "Profile-" + $server.serialNumber
# Ethernet connections
$netRed = Get-OVNetwork "red"
$conRed1 = New-OVProfileConnection -id 1 -type Ethernet -requestedBW 1000 -network $netRed
$conRed2 = New-OVProfileConnection -id 2 -type Ethernet -requestedBW 1000 -network $netRed
# Fibre Channel connections
$conFC1 = New-OVProfileConnection -id 3 -type FibreChannel -requestedBW 4000 `
-network (Get-OVNetwork "Production Fabric A")
$conFC2 = New-OVProfileConnection -id 4 -type FibreChannel -requestedBW 4000 `
-network (Get-OVNetwork "Production Fabric B")
# Additional Ethernet connections
$netBlack = Get-OVNetwork "black"
$conBlack1 = New-OVProfileConnection -id 5 -type Ethernet -requestedBW 2000 -network $netBlack
$conBlack2 = New-OVProfileConnection -id 6 -type Ethernet -requestedBW 2000 -network $netBlack
# Network Set connections
$netSetProd = Get-OVNetworkSet "Production Networks"
$conSet1 = New-OVProfileConnection -id 7 -type Ethernet -requestedBW 3000 -network $netSetProd
$conSet2 = New-OVProfileConnection -id 8 -type Ethernet -requestedBW 3000 -network $netSetProd
$conList = @($conRed1,$conRed2,$conBlack1,$conBlack2,$conSet1,$conSet2,$conFC1,$conFC2)
$task = New-OVProfile -name $profileName -server $server -connections $conList -Async
$task = $task | Wait-OVTaskComplete