Forum Discussion
LanceLyons
Cirrus
Hi Jason,
I was able to get this going with the session variable. It looks like if you want to use a session variable for the F5 session then you do have to use -PassThrough
$F5Session = New-F5Session -LTMName $ltmip_inside -LTMCredentials $mycreds -PassThrough
$vipObject = Get-VirtualServer -F5Session $F5Session -Name $vipName
$add = Add-iRuleToVirtualServer -F5Session $F5Session -InputObject $vipObject -iRuleName $all_MaintRule
Thanks for being persistent with that message.
JRahm
Aug 09, 2022Admin
glad it worked out! Like I said, I'm throwing mud at the wall and hoped something stuck. Need to re-engage with posh, it's been years and I wasn't that strong when I was writing it.