cannot save a particualar variable in Azure function configuration.

Mounika Nallapati 61 Reputation points
2021-07-08T10:21:12.323+00:00

Updating web app settings
Failed to update web app settings: The data is not valid (Invalid or not allowed environment key name: username

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,198 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pierre-Luc Giguere 1,076 Reputation points
    2021-07-08T18:07:40.593+00:00

    Hi,

    I am not able to locate a definitive list of reserved environment variables but I would say "username" is most likely used by the system thus not letting you use it.

    This seems backed by a reported bug in Azure-Samples where they changed Username to DevOps.Username to fix it.

    https://github.com/Azure-Samples/azure-devops-release-notes/pull/2/files

    0 comments No comments

0 additional answers

Sort by: Most helpful