Azure / Azure/azure-powershell

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

Open
#25,463 3 comments 0 reactions 2 assignees Claimed by @mahakjain314 View on GitHub
act-codegen-extensibility-squad Automation customer-reported feature-request Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### 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](https://github.com/Azure/azure-powershell/assets/57990274/7dbf95c9-0357-46a0-87fd-466f3c7f8e92)

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

![image](https://github.com/Azure/azure-powershell/assets/57990274/512d1399-fcb1-42ac-aa15-fe4938cff04d)

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

### Proposed implementation details (optional)

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.