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

Visual Studio Code – How to get multiple values of same variable in the function class from local.settings.json file?

Language Stack: .NET 6 LTS IDE: Visual Studio 2022 Community local.settings.json: { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", "FUNCTIONS_WORKER_RUNTIME": "dotnet", "toAddress": [ { "mail1": "[email protected]", "mail2": "[email protected]", "mail3": "[email protected]" } ] } } Function Class: using System; using System.IO; using…

VIEW QUESTION
Back To Top
Search