Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.86k forks source link

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

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

o-l-a-v commented 4 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 4 months 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 4 months 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 4 months 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.