Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.18k stars 3.79k forks source link

[Feature]: `Update-AzConfig` option to hide announcements #25309

Open o-l-a-v opened 2 months ago

o-l-a-v commented 2 months ago

Description of the new feature

I have multiple sources for staying up to date on Azure PowerShell news and announcements, I'd like to be able to choose my own information channels.

The proposed workaround of Connect-AzAccount -InformationAction Ignore (ref: https://github.com/Azure/azure-powershell/issues/25003#issuecomment-2148750350) does not work if -UseDeviceAuthentication.

Related issues:

Proposed implementation details (optional)

Implement an option to hide announcements with Update-AzConfig that all Az modules/cmdlets would respect.

Update-AzConfig -DisplayAccouncements <$true/$false>
alvipeo commented 1 month ago

This announcements are annoying AF!

Update-AzConfig -LoginExperienceV2 Off does not work.

The -InformationAction Ignore works.

But do you guys familiar with the Single Responsibility Principle and Separation of Concerns???

Use NEWSLETTERS for announcements, or other communication channels, outside of Operations!

isra-fel commented 1 month ago

Thanks for the suggestion - we've fixed the issue that the announcements were displayed during non-interactive login. Please update to Az.Accounts (>= 3.0.1) or Az (>= 12.1.0) to get the fix. Now it gets displayed only in these login flows:

o-l-a-v commented 1 month ago

That's great @isra-fel, but the feature requested is to add the ability to disable announcements all together, so please don't close unless you won't fix.