Webapp:Multiple bugs - `az webapp config appsettings set` command

See original GitHub issue

Facing 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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
alexdreneacommented, Nov 9, 2021

@flyingUnderTheRadar Can you try putting quotations around your settings like so: --settings 'SettingKey=$SettingValue' 'SettingKey2=$SettingValue2' and let me know if the problem still persists

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.

0reactions
msftbot[bot]commented, Aug 10, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

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