Forum Discussion
LanceLyons
Cirrus
Aug 01, 2022Powershell New-F5Session and close session issues.
Hi, We have some automation around some F5 functionality. We have moved from 1 F5 to 2 F5s, one for external apps and one for internal apps. In our powershell automation we now have to create t...
LanceLyons
Cirrus
Aug 04, 2022Hi 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
Admin
Aug 09, 2022glad 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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