skip to Main Content

Azure function Application settings is not consistent to values in local.settings.json

local.settings.json: { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "", "FUNCTIONS_WORKER_RUNTIME": "node", "WEBSITE_RUN_FROM_PACKAGE": 1, "SCM_DO_BUILD_DURING_DEPLOYMENT": true } } However, after successfully executing: $ npm run-script build && zip -r azure_function.zip . && az functionapp deployment source config-zip -g acmeapp -n acmefunction2 --src…

VIEW QUESTION

Why do Azure Functions not support System.Text.Json and everyone uses NewtonSoft in examples?

Why do Azure Functions not support System.Text.Json and everyone uses newtonsoft in examples? Is it possible to use System.Text.Json in Azure functions? public static class FanyFunctionName { [FunctionName("FanyFunctionName")] public static async Task<IActionResult> Run( [HttpTrigger(AuthorizationLevel.Function, "post", Route = null)] HttpRequest req,…

VIEW QUESTION

Azure – Could not load file or assembly 'Microsoft.Extensions.Logging, Version=7.0.0.0, Culture=neutral, The system cannot find the file specified

I am trying to include serilog in my Azure function App project (.net 6), My Startup.cs public override void Configure(IFunctionsHostBuilder builder) { Log.Logger = new LoggerConfiguration() .WriteTo.Console() .WriteTo.AzureAnalytics(workspaceId: "xxxxxxxxxxxxxxxxxxxxxxx", authenticationId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") .CreateLogger(); builder.Services.AddLogging(lb => lb.AddSerilog(Log.Logger,true)); ConfigureServices(builder.Services); } private void ConfigureServices(IServiceCollection…

VIEW QUESTION
Back To Top
Search