Questions tagged [azure-functions]

Azure Functions is an event driven, compute-on-demand experience that extends the existing Azure application platform with capabilities to implement code triggered by events occurring in Azure or third party services as well as on-premises systems.

0
votes
0answers
12 views

JavaScript Azure Function stacktrace has none of my code in it

I have a simple Azure Function where I'm throwing an exception. it's one line consisting of throw new Error('Oh no... we hit an edge case') Curiously, my stacktrace is just some .NET stacktrace ...
0
votes
0answers
4 views

Posting to custom port from Azure function

I get a 503 service unavailable response when I post to an endpoint listening on a custom port from within an Azure Function. I checked the Network Settings for the function but couldn't find any ...
0
votes
0answers
6 views

Is there a way to vary the name of a queue in an ouput binding in an Azure Function written in TypeScript/JavaScript?

I am writing an Azure Function in TypeScript that will put something into one of multiple possible queues based on the input it receives. Is there a way to allow for the name of the queue to vary in ...
0
votes
0answers
18 views

Azure functions TypeScript decorator

Recently Azure functions released support for TypeScript: import { AzureFunction, Context, HttpRequest } from '@azure/functions'; @some_decorator - ??? const httpTrigger: AzureFunction = async ...
0
votes
0answers
16 views

Azure Table Storage (412) Precondition Failed

I have used the GitHub solution for URLshortener and deployed it on my Azure tenant. Now suddenly I am getting an error "Exception while executing function: Functions.UrlIngest. Microsoft.Azure....
0
votes
0answers
27 views

Can System.Drawing.Common be used in Azure Functions with a custom docker image?

I am using a the Aspose PDF library that relies on System.Drawing.Common, and running it on .Net Core 2.1. on Linux. I know this will not work in the sandbox, so I'm trying with a custom Docker image (...
2
votes
0answers
37 views

Azure Function v2 always returning Internal Server Error 500 after a handled StorageException

Imagine you have an Azure Function (v2) that uses Table storage, you run but the entity with SomePartitionKey/SomeRowKey exists (eg you run the below twice): [FunctionName("SomeEntity")] public ...
0
votes
0answers
21 views

Is there any way to trigger the Azure Functions to retranspile and restart your function when making changes and running locally?

I'm authoring an Azure Function in TypeScript in VS Code. If I start the Azure Functions host locally (either by using F5 in VS Code or by running "npm start" from the command line), everything runs ...
0
votes
0answers
16 views

Azure Devops deploying Azure C# Function

I'm failing to use the Azure Devops Release management to deploy my Azure Functions. Build In the build pipeline, I've got two tasks: dotnet publish publich release artifact This step succeeds ...
0
votes
2answers
42 views

Azure Function custom API Authentication

I got a HTTP triggered azure function, which is using by one of my web applications. The user of this site would be anybody who signed up to the site. Now I want to implement authentication to the ...
1
vote
2answers
22 views

Send message with actionresult

I need to return the server error from azure functions. Now I implement the same using InternalServerErrorResult(). It only sends the error code and no response/message can be sent with this function....
0
votes
1answer
25 views

Azure Functions consumption plan naming

I've created a new Function App in Azure. I picked a consumption plan for the App Service Plan. Once the app is created I now have a new App Service Plan called "WestEuropePlan" In my resource group. ...
1
vote
3answers
53 views

How to create a self Time triggered Function?

Looking for some self triggering function which starts on a time given. eg. A user has a conference to start at 25/04/2019 05:30 Here the user should get a notification at 25/04/2019 05:25 | 05:29 ...
0
votes
1answer
11 views

Loading 3rd Party dll in Azure Functions

I am using icu.net in Azure Functions with the 2.1 runtime. When I build the icu dlls (icuin59.dll, icuio59.dll, icutest59.dll, icutu59.dll, icuuc59.dll, and icudt59.dll) are copied to the ../...
1
vote
1answer
56 views

Hello World application for Azure Functions with TypeScript fails to start with VSCode

I am trying to build a very basic Application to test out Azure Functions with TypeScript. I have the Azure Functions extension installed in Visual Studio Code. All detailed informtaion about the ...
3
votes
1answer
69 views

Azure function blob BlobPath to lowercase

I have an Azure function like this public async Task<IActionResult> GetProducts ( [HttpTrigger(AuthorizationLevel.Function, "get", Route ="products/{prod}/all")] HttpRequest req, [Blob("%...
1
vote
0answers
42 views

Actionresult not returning correct error code

I am implementing a custom business exception and returns the exception using BadRequestObjectResult. exception throw throw new BusinessException(Int32.Parse(AppConstants.ErrorCodes.DeviceNotFound), ...
0
votes
1answer
40 views

Publish Failed Error while publishing Azure functions on azure

I am getting error while publishing azure functions on azure portal.I tried lot of things and visited lot of links but didn't find any suitable soltuion. Below is the output in output window. ...
0
votes
0answers
29 views

CosmosDB input binding with Id attribute is not working

Trying an azure function to bind with Cosmos DB input, which is not working for an Id query but it works if I don't put Id and get all the documents from the collection. public static Task ...
0
votes
2answers
45 views

Unable to manual trigger my Azure Timer Trigger using httpclient post request

https://docs.microsoft.com/en-us/azure/azure-functions/functions-manually-run-non-http I am trying to manual trigger my Azure Timer function App created in 2.0 and developed in .net core 2.0. When I ...
2
votes
1answer
35 views

Azure: create O365 events from MySQL database

I want to create Office 365 calendar events which are in a MySQL table (on-premise server). Currently, I'm planning to do it with Azure Data Factory and a Functions App. I copying the MySQL Data from ...
0
votes
0answers
29 views

AzureFunctions AppInsights Logging does not work in Azure AKS

I've been using Azure functions (non static with proper DI) for a short while now. I recently added ApplicationInsights by using the APPINSIGHTS_INSTRUMENTATIONKEY key. When debugging locally it works ...
0
votes
1answer
27 views

Partitionkey is ignored in CosmosDB

I have a flow where I send a json document to the ServiceBus and a function listens to the topic and creates a document in my CosmosDB. The CosmosDB has the partitionkey "targetid" When I provide ...
0
votes
0answers
11 views

Anomaly detection time series azure

What is powerAvg in Martingale type in Azure ML sutdio in time series anomaly detection module? What is the difference between power and powerAvg ? How exactly is the anomaly score calculated?
0
votes
1answer
20 views

Correct way to use optional parameter in Java Azure Function

I'm trying to figure out how to create Azure Functions using Java with a simple temperature conversion function. The route I've tried to define is: temps/{method}/{temp?} I've modified the ...
1
vote
1answer
28 views

Extract file from http response in Azure logic app

I have an Azure function (http triggered) which returns a CSV file in response. I am calling this function from a logic app using http request action (since I need to pass authentication details) and ...
0
votes
2answers
29 views

Error setting up Azure Function within Azure Resource under Log Analytics Workspace

I have error setting up Azure Function within Azure Resource under Log Analytics Workspace. When only AllMetrics is checked, it works. But whenever FunctionExecutionLogs is checked, error occurs like ...
0
votes
1answer
33 views

Semicolon in password in azure function application setting connection string value

Bonjour Ive created a azure function which does not work in the Azure Portal. The problem is that the password of the connnection string value contains a semicolon. It works great locally when ...
0
votes
0answers
26 views

Trigger Jenkins job remotely from Azure Functions / Azure VM

Am pretty new with Jenkins and just simply can't get this to work. I have been browsing the net for an answer but have not found an answer, or might not have understood what I should do. I have Jobs ...
0
votes
1answer
61 views

How to write unit test for azure function v1

I wrote an azure function v1 HttpTrigger that gets client details and transactions from our api service, there is only one parameter which is "frequency" which is optional also, so when the function ...
-1
votes
0answers
14 views

Debug Dot Net Core Azure Function App - Painful?

Has anyone experienced mind-bending weirdness trying to debug and step? VS is ignoring "step into" and throwing exceptions on code beyond breakpoints I can hit if I comment out the problem line - ...
0
votes
1answer
38 views

Is there a performance benefit of choosing the `azure function` vs the `http request` action?

Is there a performance benefit of choosing the azure function vs the http request action? There seems to be two ways to add an azure function to your logic app. The first way is to simply trigger an ...
2
votes
5answers
140 views
+50

Azure Function with AD auth results in 401 Unauthorized when using Bearer tokens

I have a very simple Azure function in C# for which I've setup Azure AD Auth. I've just used the Express settings to create an App registration in the Function configuration. public static class ...
0
votes
0answers
27 views

Concurrent Azure Function Access Local File

I've an Azure function triggered by an event hub that must call a local jar file as described in this link. The critical point is that I can have more than 500 event per second and each instance of ...
0
votes
2answers
43 views

Default Azure Function app base path D:\home\site\wwwroot Azure Function 2.x

Currently, by default, Azure function base path is set to "D:\home\site\wwwroot". For example, when publishing, VS uploads app to this folder. I need to read config file from this folder. We have ...
0
votes
0answers
15 views

Why does The behavior of “replay” ensure reliable execution in Azure durable functions?

I think that the behavior of "replay" ensures reliable execution in Azure durable functions as described in the following link. https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-...
0
votes
1answer
18 views

Base folder path via alternative to ExecutionContext.FunctionAppDirectory with Azure Function 2.x

ExecutionContext is null via dependency injection via constructor, ExecutionContext.FunctionAppDirectory is required to get the base folder path. Is there an alternative to ExecutionContext....
0
votes
1answer
34 views

How to reference ServiceBus in azure functions v2?

This is not working (anymore): getting this error CS0006: Metadata file 'Microsoft.Azure.ServiceBus' run.csx(11,23) and CS0234: The type or namespace name 'ServiceBus' was not found #r "...
0
votes
1answer
55 views

Setup data used by Azure Log Analytics with Azure Fucntions

I have questions on setting up data used Azure Log Analytics for Azure Functions. I cannot see options related to setting up Log Analytics or see information about it within Azure Functions. But I ...
0
votes
2answers
28 views

How to set environment variables or inputs in timerTrigger Azure Functions?

I am trying to setup a timerTrigger azure function My function.json: { "disabled": false, "bindings": [ { "type": "timerTrigger", "direction": "in", ...
0
votes
2answers
30 views

Is the name identifier claim of a given ClaimPrincipal provided to an Azure Function the same across different applications?

I have an application built on Azure Functions. My users can use Facebook, Google and Microsoft as a Identity Providers as my application has been registered in each of these providers. My Azure ...
0
votes
1answer
66 views

Depdency Injection and Logging start failing suddently without code changes when they were working properly with Azure Functions

I have a project that is using dependency injection via constructor and MS Logging from ASP.NET Core with Azure Function 2.0, which was working under 2.0.12333 locally and on Azure, and now have two ...
1
vote
1answer
31 views

Retrieve document from collection in azure function cosmosdb trigger

I have created an azure function that gets triggered when a new document is added to a collection. public static void Run(IReadOnlyList<Document> input, ILogger log) { if (input != null &&...
0
votes
1answer
36 views

Limit number of servers on Azure functions (consumption plan)

Is it possible to fix a cap on the number of servers on which the azure functions scale? I have a consumption plan and basically I would like to set a cap on the number of resources that azure ...
0
votes
0answers
21 views

Azure Data Factory with long duration Azure Functions

I would like to create a pipeline in Data Factory and I would like to use Azure Function for some C# code which will download files from some web services, etc. The problem is that only HTTP Triggered ...
0
votes
1answer
55 views

Deployed Azure Function gives a ProviderName error

I have an Azure function application that when I debug it in my local PC, it won't give any error and will work correctly, but when I deploy it into the Azure Functions web, it will throw an error ...
0
votes
1answer
31 views

Azure use python flask framework for function app

I saw that Azure now supports Python (preview) in the function apps. I have a existing Flask app and was wondering if it's possible to deploy that one as a function app without major changes? I have ...
1
vote
1answer
49 views

Azure functions secured with Azure AD B2C returns unauthorized when using B2C tenant domain

Given an azure function secured via AAD B2C with https://login.microsoftonline.com/tfp/MyTenantName.onmicrosoft.com/signinsingunp as issuer url, I can successfully authenticate a b2c user via msal.js ...
0
votes
0answers
46 views

Unable to init/run Azure Storage Emulator

Unable to init/run Azure Storage Emulator I am trying to create an Azure Function, and running into issues at the very start. I have VS 2017 enterprise, I created a template Azure function, and when ...
0
votes
1answer
31 views

how to throttle the scale out of an azure function

I have a blob-triggered azure function. For each new file added to the storage account, the function gets triggered, like the following: <Storage Account> --> Azure Function --> Remote ...

http://mssss.yulina-kosm.ru