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
1
vote
1 answer

Generate Azure Function's Access Code on the fly programmatically

I have couple of Azure functions (written in c#) .. URL of which i have given to a different team to call\invoke .. I noticed that the access code which is suffixed is always the same hence poses a security risk .. Is there a way where we can…
ecstasy
  • 161
  • 1
  • 2
  • 9
1
vote
1 answer

How do you scale Azure function app(background job) based on the number items pending in a database?

So suppose that you have an application that lets user request a job. For example (hypothetical): user uploads a video. There is an entry made in RDBMs with the URL to video on blob and the status is set to "Pending". There is a recurring time…
SamuraiJack
  • 5,131
  • 15
  • 89
  • 195
1
vote
1 answer

How to wait for the promise to get resolved

I am trying to write a function inside a async function in nodejs. here is my sample script module.exports = async function (context, req) { var mydata = (async () => { return "output needed" }) () console.log(mydata) } Expected…
1
vote
1 answer

How to return results from the synhcronous Azure Function in Nodejs

How do we return data in Azure sync function app. Here is the code I have written to connect with azure key vault and capture secrets but it returns null result. And if I don't use context.done() then it goes for infinity run. module.exports =…
Vipendra Singh
  • 689
  • 2
  • 12
  • 26
1
vote
1 answer

Where to see the logs of Azure Function App

I have written a small code in azure function app using nodejs to connect with snowflake. Here is my code context.log("starting connection"); var snowflake = require('snowflake-sdk'); // Create a Connection object that we can use later to…
1
vote
1 answer

Azure Function App - Python function works with app service plan type consumption, but not with dedicated app service plan

I have a working Python function app on a consumption (serverless) plan. Version is 3.8. It processes xml files into csv files. However, the number of xmls to be processed is too high so the function times out after 30 minutes ( I would expect 10…
Roel
  • 21
  • 3
1
vote
1 answer

Python config.py file in an Azure function

In my config.py file, I have this and I need it in order to run my function app. 'headers' : {'Content-Type': 'application/x-www-form-urlencoded', 'Cache-Control': 'no-cache'}, 'locallogdir': r'', 'azure_config' : { 'driver' : '{ODBC…
Zlot
  • 47
  • 1
  • 6
1
vote
3 answers

Use Classes and external py files in Azure functions

I'm working with Azure Functions using the HTTP trigger template. I'm trying to call my classes that are in another file but when I run the code the console shows me an error: This is the code that I have: I was searching in the documentation but…
1
vote
1 answer

How to grab value from promise in Nodejs

Hi I am writing a nodejs code in Azure functions to capture the username saved in Azure key vault. Here is the code I have written module.exports = async function (context, req) { var msRestAzure = require('ms-rest-azure'); var KeyVault =…
1
vote
1 answer

Deploy multiple resources using ARM Template

I have to deploy 2 resources and I have an ARM Template as follows: Template.json { "type": "Microsoft.Resources/deployments", "apiVersion": "2018-05-01", "name": "Resource1", "properties": { "templateLink": { "uri": "Test.json" …
1
vote
1 answer

Release pipeline to Prod is just queued, not starting to deploy- devops Azure

I have created a release pipeline in my devops for function app. It has stage for Test deployment(manually triggered) and prod deployment trigger set to "After Stage- Test". It also has pre-deployment approval set up. On manually triggering the…
1
vote
1 answer

Best practice with Azure Functions implementation and trigger

I have a discussion with some colleagues of mine about the Azure Functions. I'm giving you a bit of context. I have created an Azure Functions responsible for communicating the accounting system. In this function I have all I need related to the…
Enrico
  • 3,592
  • 6
  • 45
  • 102
1
vote
2 answers

How to use SAS connection string from storage account in Azure function application setting

I can run function app by using connection string from access key from storage account and putting it into function application setting However, if I generate SAS and connection string from Shared access signature menu in storage account and use…
1
vote
3 answers

How to set a Key Vault secret from Azure Function app in the same resource group?

I would like to set up an Azure Function, which would run every 4h, retrieve a JWK from an URL (it is not the one I show below) and save it into a Key Vault as a secret. When I try the Powershell code at the command line, it just works: PS C:\> $x5c…
1
vote
1 answer

Can I determine `IsDevelopment` from `IWebJobsBuilder`

Very much an XY problem, but I'm interested in the underlying answer too. See bottom for XY context. I'm in a .NET Core 3 AzureFunctions (v3) App project. This code makes my question fairly clear, I think: namespace MyProj.Functions { internal…