Default value of keys in Azure App Configuration

Shubham Mehta 56 Reputation points Microsoft Employee
2022-06-16T18:58:00.03+00:00

Hello,

I am trying to implement azure app Configuration. I want to know how we can control the default values of a key. For example I do not have the key value pair in the app config but I do have the property in setting.cs file and from the service when I am trying to get that value for that missing key, Currently it gives me default value, like if the type of is bool it will return the value as
false
, similarly for string
null
and int
0
. How can I control this behavior and thrown an error message on key not found?

Does anybody how can I resolve the above issue?

Thanks in advance!

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
228 questions
0 comments No comments
{count} votes

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.