azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az webapp config set WARNING: App settings have been redacted

Open rLindorfer opened this issue 2 years ago • 16 comments

Describe the bug

Regression: This problem is caused when upgrading az cli from 2.53.0 to 2.53.1.

Description

When using set commands as described below, a warning message is produced which breaks our build pipelines with failOnStandardError set to true in combination with an error exit code.

Related commands

  • az webapp config container set
  • az webapp config appsettings set
  • az webapp config set

Errors

WARNING: App settings have been redacted.

Issue script & Debug output

WARNING: cli.azure.cli.command_modules.appservice.custom: App settings have been redacted. Use az webapp/logicapp/functionapp config appsettings list to view.

Expected behavior

Configs should be set without any warnings, because it's the natural behavior of setting configs.

Environment Summary

azure-cli                         2.53.1

core                              2.53.1
telemetry                          1.1.0

Extensions:
azure-devops                      0.26.0

Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2

Python location '/opt/az/bin/python3'
Extensions directory '/opt/az/azcliextensions'

Python (Linux) 3.10.10 (main, Oct 24 2023, 06:10:14) [GCC 11.4.0]

rLindorfer avatar Oct 31 '23 10:10 rLindorfer

Thank you for opening this issue, we will look into it.

yonzhan avatar Oct 31 '23 10:10 yonzhan

Since this is regression, I suggest adding a test case for this.

g4mb10r avatar Oct 31 '23 20:10 g4mb10r

I ran into this bug today, thanks for raising an issue @rLindorfer! Hopefully it's resolved soon.

BeigeBadger avatar Nov 07 '23 21:11 BeigeBadger

we ran into the same bug ,since the agents upgraded to new az cli version

marrim-myob avatar Nov 08 '23 08:11 marrim-myob

we also have the same issue

mheskandari avatar Nov 08 '23 12:11 mheskandari

An update to my comment above, I got this issue when using the az functionapp config appsettings set command.

cc @yonzhan

BeigeBadger avatar Nov 08 '23 22:11 BeigeBadger

Same issue here when running az functionapp config appsettings set.

MaxMommersteeg avatar Nov 10 '23 20:11 MaxMommersteeg

Yes, it's very easy to reproduce this issue, simply call az functionapp config appsettings set

Our current workaround is to switch back to az cli 2.53.0 with the following task:

- task: Bash@3
  displayName: "Install AZ CLI 2.53.0"
  inputs:
    targetType: 'inline'
    script: |
      pip install azure-cli==2.53.0

rLindorfer avatar Nov 14 '23 13:11 rLindorfer

Still happening in Azure CLI 2.54.0

JonSmith-Work avatar Nov 14 '23 19:11 JonSmith-Work

This issue is unfortunately breaking our pipelines as well.

jrunestone avatar Nov 17 '23 18:11 jrunestone

This still exists in 2.55.0.

@yonzhan Any plans on fixing this?

6heads avatar Dec 11 '23 09:12 6heads

This still exists in 2.55.0.

@yonzhan Any plans on fixing this?

+1. Any word on a fix for this? We're trying out use of --only-show-errors (details here) on all calls to az functionapp function keys set but ~it does not resolve this issue. The error is still thrown even with that flag~.

Update. Using the 64 bit version of Azure CLI 2.55.0 we're able to get past this issue adding the flag --only-show-errors to all az functionapp or az webapp commands.

segunak avatar Dec 29 '23 21:12 segunak

The flag --only-show-errors also works for the 32-bit version of Azure CLI 2.55.0 for those commands.

ErikMogensen avatar Feb 01 '24 08:02 ErikMogensen

This means, the only solution is to use the --only-show-errors flag?

rLindorfer avatar Feb 07 '24 15:02 rLindorfer

What if we do not want to use the --only-show-errors flag?

rLindorfer avatar Apr 23 '24 16:04 rLindorfer

image any one knows why it changes the value to false while deploying?

vishal-narayanan avatar Jul 02 '24 06:07 vishal-narayanan

it happens also in az cli 2.62.0

mheskandari avatar Jul 22 '24 09:07 mheskandari

Is azure-cli no longer maintaned?

This warning is printed even with --output none

So you are warning me that you are now not printing the settings that I requested you not to print?

jakub-bochenski avatar Sep 04 '24 13:09 jakub-bochenski

Still happening with azure-cli 2.64.0. It's setting values, then prints warning and then it outputs json of the just changed settings with all values being "null" (which is wrong).

zorbla avatar Sep 25 '24 08:09 zorbla

Still happening with azure-cli version 2.65.0, in the Azure Web App Console

sguidos avatar Dec 05 '24 18:12 sguidos

Hello Folks,

In Azure:

I have been seeing this "App settings have been redacted" when i am trying to run a command in the Azure Cloud shell, command i ran : az webapp config appsettings set --name kaazingapp --resource-group myResourceGroup --settings DEPLOYMENT_BRANCH='main'

kaazingapp is my webapp name

Image

Image

Please provide me a solution for this or how can i resolve this issue!

KitKatNarg avatar Dec 13 '24 13:12 KitKatNarg

Hello Folks,

In Azure:

I have been seeing this "App settings have been redacted" when i am trying to run a command in the Azure Cloud shell, command i ran : az webapp config appsettings set --name kaazingapp --resource-group myResourceGroup --settings DEPLOYMENT_BRANCH='main'

kaazingapp is my webapp name

Image

Image

Please provide me a solution for this or how can i resolve this issue!

Try with --only-show-errors

az functionapp config appsettings list --name kaazingapp --resource-group myResourceGroup --only-show-errors -o json

danmacode avatar Jan 13 '25 16:01 danmacode

I've created a PR to remove the message from the output. You no longer would need the additional parameters to hide the message. This should be deployed with the next CLI version coming out in early April.

seligj95 avatar Mar 11 '25 16:03 seligj95