I have been automating some workloads using PowerShell and an excerpt from the script is like –
where Select-AzureRMSubscription is selecting the subscription but at the same time while executing this, it displays the output in the console as shown below in the snapshot –
But I don’t want to get this displayed. This can be done by redirecting the output to void which is represented by NULL in PowerShell e.g.
This can be achieved in multiple ways like –