How to hide console output from Select-AzureRmSubscription

Viewed 3833

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

Thanks

2 Answers

Select-AzSubscription -SubscriptionId $s.Id | Out-Null + ~~~~~~~~ Cannot call the 'Out-Null' command. Other commands from this module have been packaged as workflow activities, but this command was specifically excluded. This is likely because the command requires an interactive Windows PowerShell session, or has behavior not suited for workflows. To run this command anyway, place it within an inline-script (InlineScript { Out-Null }) where it will be invoked in isolation

Related