Skip to content

Commit 6ffbb46

Browse files
Add warning
regarding reading values from settings files
1 parent f69f608 commit 6ffbb46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/azure-functions/functions-dotnet-dependency-injection.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ public class HttpTrigger
193193

194194
Refer to [Options pattern in ASP.NET Core](https://docs.microsoft.com/aspnet/core/fundamentals/configuration/options) for more details regarding working with options.
195195

196+
> [!WARNING]
197+
> Avoid attempting to read values from files like *local.settings.json* or *appsettings.{environment}.json* on the Consumption plan. Values read from these files related to trigger connections aren't available as the app scales because the hosting infrastructure has no access to the configuration information.
198+
196199
## Next steps
197200

198201
For more information, see the following resources:

0 commit comments

Comments
 (0)