Share via

CLI command "az webapp config appsettings set" stopped updating App Settings for deployment slots

Yacoub Badran 25 Reputation points
2025-11-27T10:48:23.64+00:00

The Azure CLI command az webapp config appsettings set has stopped updating App Settings for deployment slots. This command has been working for years without issues, but it suddenly stopped applying changes to the deployment slot App Settings.

I am using the following command:

az webapp config appsettings set -g dev -n xx-dev-web --slot xx-xx --slot-settings WEBSITE_RUN_FROM_PACKAGE=1 Project=xx/xx.csproj ApiBaseUrl=https://xx-dev-api-xx.azurewebsites.net/v1/

The command runs without errors, but the App Settings in the specified slot do not update.

I have the latest azure-cli version: 2.80.0

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

Answer accepted by question author

Anonymous
2025-11-28T13:24:53.0466667+00:00

Hi @Yacoub Badran

You may try using --settings along with the --slot parameter instead of --slot-settings. With this approach, the update worked successfully for me.

below command works for me:

az webapp config appsettings set -g test-xx-xxxapp-secure -n xxxx-xx-secure-webapp --settings Project=abc ConnectionString=abc --slot dev

Results:

Slot Env with effect:User's image

Production Env without effect:

User's image

Hope this helps !

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.