Webapp:Multiple bugs - `az webapp config appsettings set` command
See original GitHub issueFacing two problems
az webapp config appsettings set -g $ResourceGroupName -n "app-name" --settings SettingKey=$SettingValue SettingKey2=$SettingValue2
does not work even though the settings are space separated, it errors out. If it is set as a string it puts all of it in the one config setting (with the “()” for keyvault reference. This is relevant for the next problem.)az webapp config appsettings set -g $ResourceGroupName -n "app-name" --settings SettingKey=$SettingValue
- Does not work properly if the$SettingValue
is a keyvault reference. It sets the value in the web app but omits the last ‘)’ causing it to not be a valid keyvault reference string.
I know this is an avenue is for page feed back, but please let me know who I can get in touch with to resolve this issue on the product itself.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 30f2ae52-2c7f-7e7e-8a62-f1b614f281d3
- Version Independent ID: 9f23ff17-14e0-7800-0094-fb50a5fa91d6
- Content: az webapp config appsettings
- Content Source: latest/docs-ref-autogen/webapp/config/appsettings.yml
- Service: app-service-web
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
az webapp config appsettings - Microsoft Learn
Set a web app's settings. az webapp config appsettings delete. Delete web app settings. Azure CLI Copy.
Read more >Create a multi-container app in Web App for Containers
To make these changes, use the az webapp config appsettings set command in Cloud Shell. App settings are case-sensitive and space-separated.
Read more >How to get Azure webapp config appsettings using Az ...
You can use this powershell cmdlet Get-AzWebApp. The sample code: $myapp = Get-AzWebApp -ResourceGroupName "resource_group_name" -Name ...
Read more >Django on Azure - beyond "hello world" - Anthony Shaw
To change environment variables in the CLI, you can use a command like: az webapp config appsettings set --name <app-name> --resource-group ...
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
Correction: I know this is a pretty old issue, but this solution doesn’t work actually… When you single quote, the $settingValue doesn’t get resolved any more.
Hi, we’re sending this friendly reminder because we haven’t heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don’t hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!