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
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 DefaultTo suppress the breaking change warning messages in Azure PowerShell, you can run the below command:
Update-AzConfig -DisplayBreakingChangeWarning $falseKey Value Applies To Scope Help Message
--- ----- ---------- ----- ------------
DisplayBreakingChangeWarning False Az CurrentUserAlternatively, 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 $trueADVERTISEMENT
Not a reader? Watch this related video tutorial:
5/5 - (1 vote)



