App Service Application Settings Saved as Null via Azure CLI and Portal

Youc 20 Reputation points
2025-05-05T02:42:45.89+00:00

I’m using an active Developer Support Plan

Issue:

  • When updating application settings on my App Service (youcUI in resource group youUIGrp) via either Azure Portal or Azure CLI, the key-value pairs are being saved with null values.
  • This prevents us from saving SMTP configurations and is blocking email functionality in production.

Confirmed:

  • No resource locks
  • RBAC access is Contributor
  • CLI and Portal commands work correctly in other environments

Troubleshooting:

  • The Azure CLI command used:
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
{count} votes

Accepted answer
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2025-05-07T23:36:35.7666667+00:00

    Hi @Youc

    My instincts tell me that the Azure CLI is simply obfuscating the values but I'll reach out to the team to be certain. Having said that, I've been able to confirm that even though the values show as NULL, they do get updated as expected.

    What I did was display the environment variable setting value on a page, issued the Azure CLI command, restarted the web app and refreshed the page. The value was updated as expected.

    I can share more details through our ongoing private message if needed.


0 additional answers

Sort by: Most helpful

Your answer

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