config appservice list: value at null instead of the one that I see in portal
See original GitHub issueDescribe 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:
- Created a year ago
- Comments:10 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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!
@sycured I do see masking logic in the code, but let me discuss internally and get back to you.