Questions tagged [azure-function-app]

A function app is the container that hosts the execution of individual functions in the serverless framework Azure Functions.

A function app is the container that hosts the execution of individual functions in the framework.

Create a function app from the Azure portal

574 questions
3
votes
1 answer

What is the recommended way to store environment variables in Azure Functions for different environments?

Currently, I'm storing all key/value pairs in Application Settings, but I'm not happy with this approach. What is the recommended way to store settings for dev, test, stage, and prod? I need to make sure that prod settings are not visible to…
user246392
  • 2,661
  • 11
  • 54
  • 96
3
votes
1 answer

Login failed for user ''. Token is expired when using Azure Function app and Azure SQL Service using Managed Identity

I am using a function app which is service bus triggered. It connects to Azure SQL Server using Managed Identity. The connection is created using the following code. new SqlConnection(this.ConnectionString) { //…
3
votes
1 answer

Where to find the App Service Logs for a Http Trigger Function written in Powershell?

In Azure I create a Function App with Powershell Core Runtime stack: Then I add an Http Trigger with the following code: using namespace System.Net # Input bindings are passed in via param block. param($Request, $TriggerMetadata) # Write to the…
3
votes
1 answer

Microsoft Extension Framework add custom dimensions to the logger instead of each call?

I have an azure function: public void Run([TimerTrigger("0 0 0 * * *", RunOnStartup =true)]TimerInfo myTimer, ILogger log) { using (logger.BeginScope(properties)) { logger.LogTrace(message); } } Dictionary
3
votes
1 answer

Azure Function ModuleNotFoundError in Python script

I have the following script which I am trying to run in Azure Function: init.py import logging import azure.functions as func import pandas as pd import numpy as np from datetime import datetime def main(myblob: func.InputStream): …
3
votes
0 answers

How to Render Razor Page in Azure Functions via Visual Studio 2019?

public static async Task Run() { return data != null ? (ActionResult)new OkObjectResult($"Current-Temperature, {data.Current.Temperature}") : new BadRequestObjectResult("Please pass a name on the query string or in the…
3
votes
1 answer

HTTP Trigger on demand azure function calling itself multiple times

I have added http triggered azure function and deployed it in function app. function app contains only one this http trigger on demand azure function. function app has app service plan, not consumption plan. also, function app version is ~1. so that…
Priyanka Mane
  • 517
  • 2
  • 9
  • 23
3
votes
1 answer

How to restore deleted WEBSITE_CONTENTSHARE config value in Azure Function App

I have created an Azure Function App on Azure's consumption plan. Being on a consumption plan, the configuration setting WEBSITE_CONTENTSHARE is required. However, it looks like someone has deleted this value. (It is typically of the form…
Cade Bryant
  • 737
  • 2
  • 7
  • 19
3
votes
3 answers

Is there a way to have an Azure Function App created from multiple .NET projects and have all of the Functions from all of them?

We have an Azure Function App that has multiple Functions, and was created using .NET project (Name: Project1). We want to add a new Azure function from a different .NET project (Name: Project2) to the existing Azure Function App without overwriting…
3
votes
1 answer

Does stopping azure function app terminates executing timer trigger function or lets it complete its run and not reschedule after

I have an azure function app containing around 10 timer triggered functions. Each function has its own interval which differs from other functions. In order to redeploy the function app, i want to make sure that the currently executing functions…
sajid
  • 171
  • 1
  • 9
3
votes
2 answers

How to configure the pre-warmed instances in Azure Functions Premium?

We were experiencing timeouts the first time a function from a Function App was being called so we move from a normal to premium service plan as in theory you can have always a warmed instance ready to answer a call (based on this…
3
votes
2 answers

Azure Function App not able to access Azure SQL server- saying Client IP need to be added in SQL Server

Getting below exception when my Azure Function App tries to connect with Azure SQL Server. Cannot open server 'my-sql-sever' requested by the login. Client with IP address '52.165.228.212' is not allowed to access the server. To enable access, use…
3
votes
1 answer

Azure Functions: How to access the host key programmatically using C# code?

I'm writing an Azure Function App that needs to provide a HTML page with a form. The form should post back to one of the endpoints of the App. The App shall be protected with Azure's Authorization Key functionality. Azure allows the caller to…
Hauke P.
  • 2,695
  • 1
  • 20
  • 43
3
votes
1 answer

Azure Function can not download Managed dependency for PowerShell Core in Azure Portal

I have 4 function apps. Only one function app will successfully run a function, even if they are the same function. The other 3 functions either will not run or give me a managed Dependency download error as follows: > 2019-09-16T14:37:51.707…
3
votes
1 answer

How to update a single value in Application settings at runtime in Azure Function App

I'm building my first Function App so if I'm asking a silly question, please keep that in mind :) I have a need to store some settings at runtime. In standard desktop apps I can easily update app.config by using: System.Configuration.Configuration…
Misiu
  • 4,738
  • 21
  • 94
  • 198