You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected: New-F5Session works Observed: New-F5Session produces a error Steps to reproduce:
$password = 'redacted'
$userName = 'redacted'
$targetServer = '192.168.200.101'
$tokenLifespan = 36000
Import-Module F5-LTM
$secpasswd = ConvertTo-SecureString $password -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential ($userName, $secpasswd)
New-F5Session $targetServer -LTMCredentials $cred -Default -TokenLifespan $tokenLifespan
Exception: /home/asavinykh/.local/share/powershell/Modules/F5-LTM/1.4.338/Public/New-F5Session.ps1:83
Line |
83 | … Throw ("The specified LTM name $LTMName is not valid.")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The specified LTM name 192.168.200.101 is not valid.
Additional notes: This seems to be due to a change in the bowels of PowerShell since Powershell 7.4. The module seems to work if you chuck -ContentType 'application/json' in the middle of this line, but the error handling here should be improved because the error message is misleading and wrong.
The text was updated successfully, but these errors were encountered:
Expected: New-F5Session works
Observed: New-F5Session produces a error
Steps to reproduce:
Additional notes: This seems to be due to a change in the bowels of PowerShell since Powershell 7.4. The module seems to work if you chuck
-ContentType 'application/json'
in the middle of this line, but the error handling here should be improved because the error message is misleading and wrong.The text was updated successfully, but these errors were encountered: