If you use Azure PowerShell module to manage your Azure environment, it is recommended to update to the latest available version 11.4.0 to take advantage of a new sensitive information – such as secret – leak protection.
- x64: https://github.com/Azure/azure-powershell/releases/download/v11.4.0-March2024/Az-Cmdlets-11.4.0.38336-x64.msi
- x86: https://github.com/Azure/azure-powershell/releases/download/v11.4.0-March2024/Az-Cmdlets-11.4.0.38336-x86.msi
- PowerShell command: Update-Module -Name Az
This new “protect secrets” feature helps protecting against sensitive information being displayed in the output of the command.
A warning message is displayed by default when such information is detected. You have nothing to do except ensuring you are using the 11.4 (or later) version.
If you wish not to display such warning you can disable the feature using the below command – off course you can re enable by switching $false to $true
Update-AzConfig -DisplaySecretsWarning $false