Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.22k stars 3.83k forks source link

[Feature]: Support -Verbose:$false for Import-module #25463

Open jrouzies-fr opened 2 months ago

jrouzies-fr commented 2 months ago

Description of the new feature

Hello,

Because Write-host is not output on Azure Runbooks, and because Write-Output is unusable inside functions, and because Write-Information is not outputting anything, we are left with Write-Verbose.

The issue is that importing modules spams the verbose logs to the point they are unusable in the UI, need to scroll for 2 minutes to reach useful logs:

image

Suppressing the Verbose logs works perfectly fine on local PowerShell, but Azure seems to completely ignore it

image

Please add support to -Verbose:$false or Write-Information.

Proposed implementation details (optional)

No response

isra-fel commented 2 months ago

This question is in the scope of Azure Automation. Let me loop them in. BTW have you tried Write-Debug?

microsoft-github-policy-service[bot] commented 2 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jaspkaur28, @sanjkum.