ネスト構造のアプリケーション設定 アプリケーション設定で、ネスト構造のキーを構成する場合、設定方法によって、指定の仕方が異なります。 appsettings.json で、以下の構造を構成したとします。 { "Logging": { "LogLevel": { "Default": "Information", "Microsoft.Hosting.Lifetime": "Information" } }, "azCosmosDb": { "connectionString": "xxxxxx", "databaseId": "xxxxxxx" } } コード上では、階層を :で区切ってキーを指定します。 azCosmosDb:connectionString azCosmosDb:databaseId 以下は、IConfiguration を DI で取得して、キーを指定して値を取得する