How to Hide or Disable Breaking Change Warning Messages in Azure PowerShell

Table of Contents

Disable Breaking Change Warning Messages in Azure PowerShell

In the upcoming major release of Azure PowerShell (Az 12.0.0), the DisplayBreakingChangeWarning configuration option will be activated by default. A warning message will be shown in the output of a cmdlet

How to Hide or Disable Breaking Change Warning Messages in Azure PowerShell

You can check it using the the Get-AzConfig cmdlet.

PS C:\> Get-AzConfig

Key                          Value AppliesTo       Scope
---                          ----- ---------       -----
DefaultSubscriptionForLogin        Az            Default
DisplayBreakingChangeWarning True  Az        CurrentUser
DisplaySurveyMessage         True  Az            Default
EnableDataCollection         True  Az            Default

To suppress the breaking change warning messages in Azure PowerShell, you can run the below command:

Update-AzConfig -DisplayBreakingChangeWarning $false
Key                          Value Applies To Scope       Help Message
---                          ----- ---------- -----       ------------
DisplayBreakingChangeWarning False Az         CurrentUser

Alternatively, to suppress the breaking change warning messages in Azure PowerShell, you can set the environment variable SuppressAzurePowerShellBreakingChangeWarnings to true.

Set-Item -Path Env:\SuppressAzurePowerShellBreakingChangeWarnings -Value $true
How to Hide or Disable Breaking Change Warning Messages in Azure PowerShell

Leave a Comment

Required fields are marked *