misinformeddna / azurefunctions.aspnetconfiguration Goto Github PK
View Code? Open in Web Editor NEWAdds ASP.NET Core Configuration capabilities to Azure Functions
License: MIT License
Adds ASP.NET Core Configuration capabilities to Azure Functions
License: MIT License
Thanks for the great library. I wanted to ask if you have had success with using this approach (accessing local files) on the Azure Functions Consumption Plan model? I came across this gotcha here - MicrosoftDocs/azure-docs#55946 and wondered if I should continue down the reading local files path.
I noticed that user secrets were being overridden by local.settings.json
. I did some research and here's how it happens:
The Azure Functions SDK sets the default configuration before this library can make it's changes. As such, all settings in the default configuration are added as environment variables.
After that is done, this library adds its own configuration values in the order of user secrets followed by environment variables. So if the environment variable is blank in the initial config, then the environments can just override what the user secrets just set.
For instance:
// local.settings.json
{
"Secret": ""
}
```json
// secrets.json
{
"Secret": "lsdkfdlds"
"Password": "Passw0rd"
}
then environment values will end up with
Secret: ""
Password: "Passdw0rd"
This will be a breaking change so this will be done in a new version.
Method not found: 'Microsoft.Extensions.Hosting.IHostingEnvironment Microsoft.Extensions.Hosting.HostBuilderContext.get_HostingEnvironment()'.
This is a deprecation/shift that took place in NetCoreApp3.1
For example:
https://andrewlock.net/ihostingenvironment-vs-ihost-environment-obsolete-types-in-net-core-3/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.