devops
devops copied to clipboard
Get-AviObjectsByName for pool object only returns first server in pool
Running these commands (creds assumed):
$AviPool = Get-AviObjectByName -AviSession $AviSession -ObjectType pool -Name 1-TEST-POOL
foreach ($Server in $AviPool.servers) { Write-Host $Server.ip }
When multiple exist, only returns : @{addr=10.20.30.41; type=V4}