A JSON file provider adds a JSON file as a configuration source. It can supply secrets or other settings, including values mounted into a container. section 13.5
The focused implementation relies on:
- A JSON structure matching appsettings.json, allowing settings such as CosmosDbSettings:AuthKey. section 13.5
Mounted secrets file
Mount a host secrets.json file into a separate container settings folder, then register /settings/secrets.json with AddJsonFile. Bind the CosmosDbSettings section to application settings. section 13.5

