joel74 / POSH-F5-BIGIP

A set of PowerShell modules for working with F5 BIGIP devices using the iControlREST API
14 stars 8 forks source link

New-Pool returns 'false' no matter what #3

Closed spuder closed 6 years ago

spuder commented 6 years ago

Attempting to use New-Pool. It returns false no matter what I pass in

New-Pool -F5Session $global:f5session -Partition 'Common' -LoadBalancingMode 'round-robin' -Name 'foobar' -Verbose
VERBOSE: NB: Pool names are case-specific.
VERBOSE: GET https://f5.example.com/mgmt/tm/ltm/pool/~Common~foobar with 0-byte payload
VERBOSE: POST https://f5.example.com/mgmt/tm/ltm/pool with -1-byte payload
False

I get the same result regardless if the pool 'foobar' exists or not.

spuder commented 6 years ago

I had a variable named $F5Session already defined which was causing an error