skip to Main Content

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

How do we deploy azure function in VS Code?

I followed the deployment guide precisely here https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-vs-code?tabs=nodejs#republish-project-files However, After deploying, In Azure portal, there is no functions in function app. And in the output log in VS code: - /Users/myapp/code/test-azure-functions/node_modules/rimraf/dist/cjs/src/bin.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15) at Function.Module._load (internal/modules/cjs/loader.js:730:27) at Module.require (internal/modules/cjs/loader.js:957:19)…

VIEW QUESTION

JSON is getting serialized with WriteAsJsonAsync

I am calling an API with : content = await request.Content.ReadAsStringAsync(); var response = req.CreateResponse(request.StatusCode); await response.WriteAsJsonAsync(content, request.StatusCode); return response; and it seems to be ok and working but the JSON is coming out like this: "{"Policy_reference":"P12300025"}" full code: var…

VIEW QUESTION
Back To Top
Search