Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[App Service] Fix: #27724: az webapp config appsettings set: Remove redaction warning message from output #31006

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/azure-cli/azure/cli/command_modules/appservice/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -2498,8 +2498,10 @@ def _build_app_settings_output(app_settings, slot_cfg_names, redact=False):


def _redact_appsettings(settings):
logger.warning('App settings have been redacted. '
'Use `az webapp/logicapp/functionapp config appsettings list` to view.')
# Removing the redaction message as it's breaking people's pipelines
# Addresses https://github.com/Azure/azure-cli/issues/27724
# logger.warning('App settings have been redacted. '
# 'Use `az webapp/logicapp/functionapp config appsettings list` to view.')
for x in settings:
settings[x] = None
return settings
Expand Down Expand Up @@ -2595,8 +2597,10 @@ def delete_connection_strings(cmd, resource_group_name, name, setting_names, slo


def _redact_connection_strings(properties):
logger.warning('Connection string values have been redacted. '
'Use `az webapp config connection-string list` to view.')
# Removing the redaction message as it's breaking people's pipelines
# Addresses https://github.com/Azure/azure-cli/issues/27724
# logger.warning('Connection string values have been redacted. '
# 'Use `az webapp config connection-string list` to view.')
for setting in properties:
properties[setting].value = None
return properties
Expand Down