There might be situations where you want to hide outputs from PowerShell scripts. This blog explains how to achieve that.
Following code sample is used to connect with azure portal and show the resource group details. To avoid output values visible in the logs, we can add | Out-Null as shown in the following sample. You can learn more about Out-Null from here.