Andy_Edwards_25
Apr 26, 2016Nimbostratus
I am getting the following error every time I run the script. It appears that the variable $pools is never declared.
You cannot call a method on a null-valued expression.
At C:\temp\Bigipreport4.0.1\Bigipreport-4.0.1.ps1:1262 char:6
+ if(!$pools.loadbalancer.contains($Loadbalancer)){
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull