I have 80 application pools in my local machine, Windows 10 Enterprise. Get-IISAppPool in Powershell ISE returns 80 pools. Get-IISAppPool in Visual Studio Code returns only 5 pools. Recycling IIS does not change the results.
$pools = Get-IISAppPool
"pools.Count: " + $pools.Count
pools.Count: 5
However, inside VSCode's Powershell Integrated Shell, PS IIS:\AppPools> dir returns the 80 application pools
Edit: From VSCode done a different way, returns the expected 80.
$pools = Get-ChildItem -Path "IIS:\AppPools"
"pools.Count: " + $pools.Count
pools.Count: 80
I'm not seeing anything on https://learn.microsoft.com/en-us/powershell/module/iisadministration/get-iisapppool?view=win10-ps indicating when I should receive a partial result set, so in which direction should I be troubleshooting?