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
4 views

Azure Function Converting v1 to v2 DotNetStandard 'AzureWebJobsServiceBus' is missing or empty

Sorry for the long post I just wanted to provide all the information I could and address questions before they come up. Working on converting an Azure Function v1 .NET Framework 4.6.1 to a ...
0
votes
0answers
7 views

Azure function sendgrid email not being received

Hi all I have an Azure Function that serves as a contact form for a website, my function seems to work returning 200 OK, but I am not receiving the email. It uses the Azure sendgrid binding, send ...
0
votes
1answer
35 views

Best approach to call web api from azure function [on hold]

Actual situation: I have a 2 blob triggered azure functions that are working perfectly (one is v2 and the other v1) I have, in the other hand, a REST WEB API application (that exposes methods to ...
0
votes
1answer
19 views

Azure Functions: binding to DocumentClient versus static instance - what's recommended?

I know how to bind queries directly to an Azure Function and use Cosmos DB triggers in functions. However, I'm looking for direction around using DocumentClient (Nuget package Microsoft.Azure.Cosmos)...
0
votes
0answers
17 views

Mocking a Comos DB database

I'm using the Jest framework to write some integration tests for my Azure Function (in TypeScript) - a trigger to place some data into a Cosmos DB. However I have no idea how I go about mocking the ...
2
votes
1answer
38 views

Internal Error 500 An error has occurred On azure portal but In local works fine

I have azure function which take some param and create a request to another API. In local Visual studio it working fine but does not work on azure portal. Though the code is same. I have inspect all ...
1
vote
1answer
43 views

Authorization for Azure Function using Managed Service Identity to fetch blob from Azure Storage container

When I attempt to invoke an Azure Function in an Azure Function App using a system assigned managed identity to fetch a blob from an Azure Storage container, I’m encountering: System.Private.CoreLib: ...
2
votes
0answers
27 views

Call a URL without DNS Entry from Azure Function .Net

From an Azure function i need to call a webservice that is not under a published DNS entry. Typically on a server I own i would simply update the hosts file. Is there an equivalent way to do this with ...
1
vote
2answers
29 views

Hosting environment why is it set to Production, Difference between host.json and local.settings.json

I have two questions on .net core applications for functions. I am using blobtrigger. 1) When I run my project locally I get this 'Hosting environment' on the command prompt console, I want to ...
-3
votes
0answers
28 views

why are double quotes added around my blob body?

When my blob is saved to the storage account using a stream binding, why is it putting double quotes around the contents of the blob? Here's the bind implementation: public static class Bindor { ...
-1
votes
1answer
11 views

Blob path with folder structure System.Private.CoreLib: Exception

I am using azure blobTrigger like this With 'test' being the name of the container. public static void Run([BlobTrigger("test/{name}", Connection = "ConnectionKey")]Stream myBlob, string name, ...
0
votes
0answers
8 views

Unable to print values of class property of azure.functions.ServiceBusMessage

I'm using Azure portal based Azure function with python environment to read Azure Service Bus messages. When I'm trying to read class properties I get something (might be address of property, I am new ...
0
votes
1answer
17 views

Using NLog in Azure Fucntions

I have an Azure functions which refers the custom dll which we have written to access the graph api calls. In the dll, we also have a NLog logger facility which helps to log the details. Some thing ...
1
vote
1answer
37 views

CosmosDB Change Feed Scaling

I have my Azure function with CosmosDB trigger, that listens to a collection using lease collection mechanism. This function is hosted on consumption plan. I have noticed that under heavy load I tend ...
0
votes
1answer
20 views

Azure function with table Storage - update entity not working

I have this code: #r "Newtonsoft.Json" #r "Microsoft.WindowsAzure.Storage" using System; using System.IO; using System.Net.Http; using Newtonsoft.Json; using Microsoft.WindowsAzure.Storage.Table; ...
0
votes
0answers
34 views

How to configure environment variables in Azure DevOps pipeline?

I have an Azure Function (.NET Core) that is configured to read application settings from both a JSON file and environment variables: var configurationBuilder = new ConfigurationBuilder() ...
0
votes
1answer
18 views

JavaScript HTTP Trigger Azure fuction

I am trying to create a new Azure function (HTTP Trigger) There used to be an option to choose language but now it seems to default to C# and I'f like to create a JavaScript function. I tried ...
0
votes
0answers
24 views

Logging with Azure functions ~2.0

I am trying to integrate Microsoft.Logging.Extension with Azure Functions ~2. Logs below LogLevel=Error are not displayed in the Azure Log Stream or Kudu. The logs do appear in the console when ...
0
votes
0answers
32 views

Problem retrieving bearer access token using timer triggered Azure javascript function

I have an Azure Timer Triggered Function that needs to make various calls to the Graph API, which means I need an OAuth2 Bearer token issued by my tenancy's AAD. So I've written the function below, ...
1
vote
1answer
25 views

Send messages to multiple Service Bus topics and then send it to cosmos db

I am trying to send messages to multiple topics at once and then using an Azure Functions App send it to Cosmos DB ? Any idea how to do that?
0
votes
0answers
33 views

C#/Azure function: Fastest way to serve a file?

I have an Azure Function that serves a file with a custom name: I'm doing this: string outputName = fileName.Substring(0,fileName.Length-4)+"."+clientKey+".msi"; try { var res = new ...
-1
votes
0answers
31 views

ERROR: 'Get-CsPowerShellEndpoint' is not recognized as the name of a cmdlet >> azure function

I am creating a azure function to connect to teams online and update configuration in Teams administrative portal and have added modules skypeonlineconnector and lynconline connector references. ...
0
votes
1answer
39 views

How to get a blob path name container name from configuration file

I am using .net core and using Environment.GetEnvironmentVariable("Containername")) I would like to get the container name from the configurations for the function. As of right now I have the ...
0
votes
0answers
31 views

Update azure devops release pipeline: Tasks with versions 'Deploy Plataform 3:1.*' are not valid for deploy job 'Run on agent'

I'm using Azure DevOps Services REST API 5.0 to update a pipeline release. I have a release with a stage DEV that have two tasks in a 'Run on agent' job: Deploy plataform 1 Deploy plataform 2 ...
2
votes
2answers
55 views

Why can't I access my Azure Function when it requires authentication?

(I apologize for the length of this question; I wanted to be thorough.) I'm new to Azure and am trying to set up a "serverless" API which requires authentication. I have a Function which behaves ...
1
vote
1answer
43 views

Running Python Azure Functions on Windows 10 using VSCode

I am trying to develop Azure Functions in Python on Windows 10 PC. Every time I try to debug it I get this error: "AttributeError: module 'azure.functions_worker' has no attribute 'start_async' " I ...
0
votes
0answers
31 views

How to prevent Socket Exhaustion on HttpClientHandler

Unlike other clients in the Microsoft.Azure.Management namespace (ie SubscriptionClient), OperationalInsightsManagementClient does not take HttpClient as an argument in the constructor. This means I ...
0
votes
1answer
33 views

Problem with EF Core migration on Azure Function v2 on .NET Core

I have a project called MyApp which contains Entity Framework Core Models. To create the initial database from those models I used the following command in the Package Manager Console of Visual Studio:...
0
votes
0answers
26 views

How to communicate to external system using Function App

I'm using Azure Function App to get some files from SFTP server. My function is in Consumption plan. Is it possible to communicate to external system in this service plan? In Isolation plan we can ...
0
votes
1answer
43 views

How can I get NLog output to appear in the streaming logs for an Azure Function?

I have a simple Azure Function and I'd like to be able to monitor log output in both the streaming log window and in Application Insights. So far I am able to see NLog output in Application Insights ...
0
votes
1answer
42 views

Azure Functions storage account network security

I am currently working with a client that requires access to all Azure resource locking down as much as possible and I am having problems with the Storage Account that is utilised by our Azure ...
0
votes
2answers
36 views

Output message to Service Bus queue from HTTP triggered C# function

I am trying to output the body of a JSON http POST to Azure Service Bus. The Azure documentation provides an example but this is a time based function trigger, not an HTTP trigger. https://docs....
0
votes
1answer
23 views

Promise.resolve().then( vs Promise.resolve(

I'm working on some Azure Functions - I'm reading in some documents from a CosmosDB, the performing some actions on those documents. I've come across the following code, however don't really ...
0
votes
2answers
25 views

Azure Durable Functions - diagnose failures

I am testing how durable functions can fan in/out and how I can scale my code. for this example I am simulating many short running, cpu intensive operations. Not all activities seem to complete and I ...
0
votes
1answer
50 views

Best choice between Azure Function and Azure DevOps to run a simple program

I have a simple program that does data scanning and calculation based on my backend database. The requirement is finding a way to run that program scheduled. Now I have two choice, one is Azure ...
0
votes
1answer
32 views

how to capture substring within queuetrigger binding and use it for input blob binding?

How do I use the body of my queue message to bind to my input blob? The value I would need to capture would be myj.json. I've got a queue triggered function: [FunctionName ("...
0
votes
0answers
29 views

Invalid value for key 'attachdbfilename' when connecting to local sql db with function

I created serverless function which I want to connect to my local SQL Server database. In the local.setting.json I added the connection string that works ok when I try to connect with web api: { "...
-1
votes
2answers
27 views

OPTIONS Preflight request executes POST's code - is that standard?

If I understand correctly, a preflight OPTIONS request is sent as a way of asking "what's allowed here?". Then, once the response comes, if allowed, the calling site sends the POST request (or GET ...
0
votes
0answers
34 views

implement custom workflow in azure functions with time trigger in dynamics 365 at specified time

I have a custom workflow that copies the attachments from an email and places the copy in the notes.At the moment, this process is ran manually. I want to enable this process to be ran automatically ...
0
votes
1answer
30 views

Timer Trigger Azure Function not getting trigger on next day

Timer trigger azure function with "TimerConfig": "0 */30 * * * *" is getting triggered for every 30 minutes only on the day of deployment but from very next day is not getting triggered on schedule ie ...
0
votes
0answers
26 views

Azure Functions: How do I automatically inject a azure-cli-retrieved SAS token into my local settings file?

In the Azure Functions local dev environment, I can generate a SAS token from the command line using az storage account keys list ... az storage account generate-sas ... But then I have to cut and ...
1
vote
2answers
33 views

Azure Functions: How do I launch only a specific Function in local dev environment?

If I want to launch all available functions in the dev environment, I simply do: func host start Is there a way to choose a subset of the available functions, without having to move the intended-to-...
2
votes
1answer
41 views

Not sure why my Azure CLI is not showing python as a language option while creating azure http trigger function

I am trying to create a python function, but when I run 'func new', I do not see python while making selection of language. Can anyone point out some good literature where I can see what's going wrong....
2
votes
2answers
43 views

how to output to servicebus from httptriggered function

How do we bind output to service bus? I've set up an out binding inside of my azure function: { "queueName": "testqueue", "connection": "MyServiceBusConnection", "name": "myQueueItem", "type"...
1
vote
1answer
51 views

How to use Get-AzKeyVaultSecret in Powershell Azure Function 2.x

I'm setting up a Powershell Azure Function that needs keys from an Azure KeyVault. Most of the keys can be retrieved by using the @Microsoft.KeyVault(SecretUri='MySecretUriWithVersion') method. One ...
-1
votes
1answer
40 views

How many function apps / slots can be created in a single consumption plan per subscription?

I was not able to find an answer to my question in the title. I suppose there is a limit. No information is listed for my question at https://docs.microsoft.com/en-us/azure/azure-subscription-service-...
0
votes
1answer
32 views

Azure Function with CosmosDb Binding Proper Local Setup

I'm sure I'm missing something simple here, but I can't get this to work. I have installed the Azure Storage Simulator locally and have created an Azure Function 2.0 through Visual Studio 2019. I can ...
0
votes
1answer
16 views

Sending an event on creating a new file in azure data lake gen 1

I want to send an event or a notification to external NIFI flow once a new file has been added to azure data lake gen 1. Any one worked or has any information about this use case?
-11
votes
2answers
86 views

Convert from string to double from 4325 to 43.25 [closed]

I need help. Device send me temperature and humidity at this format as string: temperature: 4325 humidity: 583 I must convert this to double i.e. temp from 4325 to 43.25 and humidity from 583 to 58....
0
votes
1answer
32 views

cannot find requested object - System.Security.Cryptography.X509Certificates

My code is : var query = System.Web.HttpUtility.ParseQueryString(req.RequestUri.Query); string certificate = = query.Get("issuerCertificate"); byte[] bytes = Encoding.ASCII.GetBytes(certificate); ...

http://mssss.yulina-kosm.ru