0

following problem:

I am using Azure App Configuration to store config data. I imported the following Json:

{
   "Url": "https://integratortrainingazureappservice.azurewebsites.net/productcategory",
   "SourceSystemSpecificProperties":{
      "ResponseArraySelectToken":"",
      "RetryCount":3
    }}

I get the following Result in Azure App Configuration:

enter image description here

enter image description here

Now I want to retrieve my Configuration with net 6.0 Azure Function code

  • TargetFramework: net6.0
  • AzureFunctionsVersion: v4
  • Microsoft.Extensions.Configuration.AzureAppConfiguration: 5.1.0

Here I define the configuration in my Startup Class enter image description here

Here I am trying to get my "SourceSystemSpecificProperties" Section, but I am getting a null value. enter image description here

After analyzing the Azure App Configuration again I notized, that there is no entry for SourceSettings.SourceSystemSpecificProperties. Therefore I am not able to retrieve this section because it is not existent. In general my code works, because I am able to retrieve "SourceSettings.Url" or "SourceSettings.SourceSystemSpecificProperties.RetryCount"

Is there a possibility to import or define my configuration settings for nested Jsons?

0 Answers0