question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

config appservice list: value at null instead of the one that I see in portal

See original GitHub issue

Describe the bug

Command Name az webapp config appsettings list

Errors: Return "value": null instead of the correct one for some environment variables

  {
    "name": "DOCKER_REGISTRY_SERVER_PASSWORD",
    "slotSetting": false,
    "value": null
  },

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az webapp config appsettings list --name {} --resource-group {}

Expected Behavior

Having the right value that I see in portal.azure.com:

  {
    "name": "DOCKER_REGISTRY_SERVER_PASSWORD",
    "slotSetting": false,
    "value": "@Microsoft.KeyVault(VaultName=xxxxxxxxxxx;SecretName=xxxxxxxx)"
  },

Environment Summary

macOS-12.5.1-x86_64-i386-64bit, Darwin 21.6.0
Python 3.10.6
Installer: HOMEBREW

azure-cli 2.39.0

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
panchagnulacommented, Sep 29, 2022

@sycured the reason in CLI these settings were masked because of security issue that passwords shouldn’t be displayed in plaintext. This an open issue on the platform end, that the GET API GET /subscriptions/e483435e-282d-4ac1-92b5-d6123f2aa360/resourceGroups/sisirap-rg/providers/Microsoft.Web/sites/clitestapp/config/slotConfigNames? shouldn’t return passwords , hence the masking change on CLI, Unfortunately we cannot change this behavior due to security concerns on CLI. For now the workaround would be to use az rest with the API to return these values. Thanks!

1reaction
RakeshMohanMSFTcommented, Aug 19, 2022

@sycured I do see masking logic in the code, but let me discuss internally and get back to you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure apps - Azure App Service - Microsoft Learn
In the Azure portal, search for and select App Services, and then select your app. Search for App Services. In the app's left...
Read more >
Azure app service app settings in the portal are not overriding ...
I've set values to override all my app setting values in appsettings.json, but my app service is still using what is in appsettings...
Read more >
Configuring CI/CD Pipelines as Code with YAML in Azure ...
Select the Azure App Service Deploy task: Here i don't find my subscription. I am expecting 'visual studio enterprise' subscription in the list....
Read more >
claranet/app-service/azurerm - Terraform Registry
Terraform module composition (feature) for Azure App Service (Service ... Insights to use instead of deploying a new one. string, null, no.
Read more >
Context | Android Developers
Return the context of the single, global Application object of the current ... See the API demo App/Service/Service Start Arguments Controller for an ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found