azureazure-powershellazure-automationpowershell-workflow

How to hide console output from Select-AzureRmSubscription


Does anyone know how to hide output from command Select-AzureRmSubscription inside azure workbook which runs as powershell workflow

Thanks


Solution

  • You can use Out-Null. Works for any PowerShell cmdlet.

    Select-AzureRmSubscription | Out-null
    

    The Out-Null cmdlet sends its output to NULL, in effect, removing it from the pipeline and preventing the output to be displayed at the screen.

    https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/out-null