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
2
votes
1 answer

Trying to create docker container function app, when i do docker run getting the error "Storage not defined"

Following the microsoft document (https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image?tabs=bash%2Cportal&pivots=programming-language-python) but for Azure Blob Storage trigger template. When i run…
2
votes
1 answer

Azure function doesn't run async method

I have an Azure Function that doesn't run in Azure. Locally it runs, but in Azure it doesn't. I have a try/catch in place, which doesn't catch any exception, but in the logs I get "2020-07-26T12:23:00.021 [Error] An exception occured." Don't…
2
votes
0 answers

How to configure multiple azure SignalR instances in serverless azure functions?

I want to configure Primary and secondary connection strings of Azure SignalR in azure function. [FunctionName("negotiate")] public static SignalRConnectionInfo GetSignalRInfo( [HttpTrigger(AuthorizationLevel.Anonymous, "post",…
2
votes
1 answer

Timer trigger Azure function - How to get datetime details of the last successful execution?

What is the difference between TimeInfo.ScheduleStatus.Last vs TimeInfo.ScheduleStatus.LastUpdated? What want to know is the datetime details of last successful run of my timer trigger Azure function? not just when it was last run regardless of…
2
votes
3 answers

Static code shared between multiple azure funtions?

Lets say I have a function app that contains 5 azure functions. In visual studio I have these functions as classes but they use some static helper methods (to avoid code duplicate). In these helper methods I have kind of lockers to make sure that a…
alaa_sayegh
  • 2,141
  • 4
  • 21
  • 37
2
votes
1 answer

functionTimeout in hosts.json not recognized by function app host runtime version ~3

With below mentioned host.json, we see that function timeout is set to default of 30 mins. Some of our workflows run beyond 30 mins. This was working in runtime ~2. Also by checking the logs from host startup, there is no way to see the timeout…
2
votes
1 answer

How do I get a static IP for an Azure Function App for whitelisting

I have a timer function APP deployed to Azure. I know that this has approx four or so possible outbound IP's. I can get those IP's whitelisted but the issue is if I ever blow the resource group away the outbound IP's will change. I want to try and…
David
  • 1,203
  • 6
  • 25
  • 48
2
votes
1 answer

How to extract Secret key from Azure key vault in Azure Function App on Nodejs stack

I have created an Azure Function app in Nodejs version 12. My hosting environment is windows. What is the easiest way to capture the username and password which are saved in Azure key vault inside my function. Also I am using Inline code Editor so…
2
votes
2 answers

Orchrestrate multiple Azure Functions (powershell & C#)

I have 2 Azure Functions - Powershell. One will Resume a PowerBI Embedded Capacity and the other will Pause it. Then I have 1 Azure Function - C# that has to run once the PowerBI Embedded Capacity is running. So in order to do that I will need an…
VAAA
  • 14,531
  • 28
  • 130
  • 253
2
votes
3 answers

Azure function app traces exhibiting strange behavior

I have 10+ azure function apps deployed. Out of them only one function app always writes a trace message "Executing HttpStatusCodeResult, setting HTTP status code 200" every 10 seconds. I can not find the source from where this log is coming. My…
DevMJ
  • 331
  • 1
  • 5
  • 17
2
votes
1 answer

How to retrieve storage account key using powershell function app?

I'm using powershell function app to retrieve storage account key but i'm not able to access resources .Please help me . $resourceGroup = "DemoResourceGroup" $AccountName = "Demo" $Key = (Get-AzStorageAccountKey -ResourceGroupName $resourceGroup…
vaibhav
  • 103
  • 2
  • 11
2
votes
4 answers

SQL Azure connection error with User Assigned Managed Identity 'Login failed for user'

I have a function app that is assigned a user assigned managed identity, and it uses that to connect to the SQL database. This was working fine for a few days, but then suddenly stopped working, without any changes to db or the function app. Error:…
2
votes
1 answer

Importing Function App in to API Management via Powershell

As part of our CI/CD pipeline I am looking to register our Azure Function Apps with Azure API Management using PowerShell. From looking at the documentation it appears that the Import-AzApiManagementApi cmdlet should support this but there does not…
Phil Murray
  • 6,396
  • 9
  • 45
  • 95
2
votes
0 answers

NodeJS Azure Function returns status 500 even after I override res.status

I have an Azure Function App v2 in NodeJS that returns status 500 even if I override the property res.status. The code is as follows: module.exports = async (context, req) => { ... try { const data = await myfunc(body) context.res…
2
votes
1 answer

Azure Function cosmosdb Environment settings

Hi I am writing Azure function trigger to capture changes for cosmosdb. I am facing a basic problem. In function.json, I would like to keep the below parameters dynamic ( It should be picked from environment variable). The reason is that the same…
SunilS
  • 2,030
  • 5
  • 34
  • 62