"AppSettings":
{"AzureAd":
{
"Instance": "https://login.microsoftonline.com/",
"Domain": "abc.com",
"TenantId": "90836560-70ab-4caa-9e10-7e80b43d8d5a"
}
}
How to get the value of a "Instance" value in the class file. I have tried this below which doesn't work
var symmetrickey = _configuration.GetSection("AppSettings:AzureAd:Instance").GetChildren()
.Select(configSection => configSection.Value);
where as Im getting array of node "AzureAd" when I modify like below
var symmetrickey = _configuration.GetSection("AppSettings:AzureAd").GetChildren()
.Select(configSection => configSection.Value);
But I want the "Instance"/"TenantId" value by specifically mentioning either of the text .