Questions tagged [azure-functions]

Experience the power of Azure Functions, a cutting-edge and versatile event-based serverless compute platform available on Azure and Azure Stack. Unleashing its potential, this dynamic open-source runtime seamlessly integrates with various environments such as Kubernetes, Azure IoT Edge, on-premises setups, and diverse cloud infrastructures.

Learn how to effectively combine the Dialogflow API v2 with the MS BotFramework by utilizing the dialogflow-nodejs-client-v2

Currently, I am in the process of building a chatbot using MS BotFramework functions. I am attempting to integrate Dialogflow with MS BotFramework, but I am encountering issues with setting up the configuration. The dialogflow-nodejs-client-v2 library requ ...

Azure Function: Eliminate duplicate data in JSON from two many-to-many relationships into a single table

I am facing an issue where I have multiple many-to-many tables mapping to a single table, resulting in duplicate data that needs to be removed from the JSON output. Additionally, the Ingredients and Conditions are displayed as lists, causing duplication of ...

The process of incorporating user properties into the output of a Service Bus topic from a Javascript Azure Function

I'm currently developing a TypeScript Azure Function that utilizes an Azure Service Bus topic as its output. Although I am able to send messages successfully, I have encountered difficulties in setting custom metadata properties for the message. In my att ...

Issue with compatibility between Node and DirectlineJS es6 exports in Azure Functions

Objective: The goal is to set up an Azure Function using Botframework-DirectlineJS and integrate it with a Bot (Framework) by utilizing the DirectLine secret. Challenge: The Botframework-DirectlineJS library mentioned above utilizes ES6 export statement ...

Where can `context.executionContext.functionDirectory` be found in Azure Functions Node.js V4 for loading external files?

When working with Azure Functions Node.js V3, there is a useful property called context.executionContext.functionDirectory To learn more, check out: https://github.com/Azure/azure-functions-host/wiki/Retrieving-information-about-the-currently-running-func ...

Is it possible to implement a customized pathway for the functions within an Azure function app?

Recently, I set up a new function app on Azure using Azure Functions Core Tools with Typescript as the language. The app includes a test function named MyTestFunction that responds with an HTTP response when called. This particular function is located in ...

Executing GnuPG commands with Azure Functions in Python

During my local development work with an Azure Function in Python, I am experimenting with the python-gnupg wrapper to call a GnuPG binary. Within the Azure Function triggered by HTTP, this is the code snippet that I am testing. import gnupg import tempfi ...

"Maximizing efficiency with Azure Functions, Azure SQL, Node.js, and optimized connection pooling for seamless

I'm curious - is it possible to implement an Azure SQL connection pool for Azure Functions (Node.js) requests? The time it takes to create a connection is a significant portion of the overall execution time of my requests, and I'm interested in finding wa ...

Using a Client Certificate from Azure Key Vault in a Python Azure Function App HTTPS Request

My aim is to initiate an HTTPS-Request from a Python Azure Function App while authenticating the request using a client certificate stored in an Azure Key Vault. During testing, I successfully executed the HTTPS-Request with the pkcs12 container loaded fr ...

Having trouble deploying Next.js on Azure due to an error indicating that the function content size was too large

Encountering difficulties when attempting to deploy the Next.js SSR app on Azure static-web-app. I have included the necessary configurations in the yml file to limit caching, but I am still receiving an ERROR: "The size of the function content was too lar ...

Stop Azure function from repeating its execution recursively

A custom Azure function has been developed to respond to an EventGrid subscription event triggered by the uploading of a new blob into Blob Storage. This function is responsible for resizing the uploaded image and then re-uploading it back into the same c ...

Leveraging ES Module packages in Azure TypeScript Function Development

I'm encountering an issue while trying to utilize the p-map package in my Azure Function. The error message that I'm getting is as follows: A Worker failed to load function: 'serverless' with function id: '<id>'. Result: Failure Exception: The Worker ...

Can messages be transmitted to Log Stream (App Insights Logs) within Azure Function App?

I've been searching for a solution, but have yet to find one. When I'm in my Function App, I go here: https://i.stack.imgur.com/9kwC2.png Then click the drop-down arrow and choose Application Insight Logs https://i.stack.imgur.com/s4Chu.png In the log ...

How can I retrieve the data passed in a post request using Azure Functions and JavaScript?

I have a JavaScript Azure function that takes a context and request as parameters: function(context, req) It's easy to retrieve data from a GET request using the req object. For example, if I pass name=test in the URL, I can retrieve it in my code like t ...

Differences between context.log and console.log in Azure function apps

While working with Azure function apps in the nodejs examples, you might have noticed the passed-in context object to the function. This allows you to use context.log method similar to console.log for outputting messages. Do you know the difference betwee ...

The Kudu console is freezing up during the npm install process

I have been experimenting with Azure Functions and wanted to incorporate some dependencies into my code. I followed the instructions provided HERE. However, after running 'npm install' and waiting for an extended period of time, the Kudu console ...

How can you design a versatile Logic app in Azure that handles all email functions?

Currently, I am developing an ETL script in Python Azure function to automate the process of sending email notifications regarding job status and progress tracking to various stakeholders. In order to achieve this efficiently, I am exploring the option of ...

Is it safe to store Azure Function App application settings in a public NodeJS repository?

Is it secure to save secret environment variables in Azure Function App's Application settings and reference them in NodeJS code as process.env.API_AI_ACCESS_TOKEN? If someone accesses the public repository and runs the code, will they be able to access m ...

Are there any npm packages pre-installed in Azure functions? If there are, how can I verify their presence?

As I work on building my Azure function locally using WebStorm/PHPStorm, I am curious about if there are any pre-installed npm packages readily available in the cloud for Azure functions. It can be quite cumbersome to include all necessary packages each ...

Python integration with Azure Durable Functions may encounter issues causing interruptions or delays in processing tasks, resulting in instances getting stuck in an

When implementing an Azure Durable Function in Python on the consumption plan, I encountered an issue where the function would fail to execute successfully after running it around 2000 times a day for a couple of weeks. The process involves fetching data f ...

What techniques can I utilize to ensure Azure function generates JSON specifically for web browsers?

I have a functioning Azure function with the following code: module.exports = function(context, req) { // this is the complete source code, believe it or not context.done(null, {favoriteNumber: 3}); }; When I utilize a tool like Postman to access ...

Writing to Json files in Azure Data Factory

Can I get your thoughts on this? So, working in Azure Data Factory, I have a series of activities that generate a JSON segment at the end of each run {"name":"myName", "email":"<a href="/cdn-cgi/l/email-protection" cla ...

Is it possible to execute npm commands on the Azure App console?

I'm encountering an error message whenever I attempt to execute any npm command (such as npm i) on a Windows Azure app console. The environment consists of Node v10.19.0 and Npm v6.13.4. https://i.stack.imgur.com/QyKZC.png Here is the formatted code ...

Azure Function (.NET 7, v4) encountering Cross-Origin Resource Sharing problem

I am experiencing a CORS problem with my Azure function written in C# using .NET 7. It is being called from my Angular application. Interestingly, the same function works fine when called from Postman with the same request body as the Angular application. ...

Issue encountered while attempting to deploy Node.js on Azure Functions, stemming from the absence of the gRPC binary module

Although I have experience with Azure Functions using C#, this is my first time delving into Node.js within the realm of Azure Functions. Hence, I apologize in advance if this comes across as a beginner question or even an inappropriate one. I successful ...

Troubleshooting Azure typescript function: Entry point for function cannot be determined

project structure: <root-directory> ├── README.md ├── dist ├── bin ├── dependencies ├── host.json ├── local.settings.json ├── node_modules ├── package-lock.json ├── package.json ├── sealwork ...

Using Angular in conjunction with Azure Durable Functions to implement a retry mechanism for HTTP responses

In my Angular 10 application, I am attempting to integrate Azure Functions. The key is to simplify the Azure function protocol by using a single Observable. Executing an Azure function requires the following steps: Initiate a POST request to the Azure fu ...

Corrupted Attachment in Azure Function Sendgrid Integration

Currently, my setup involves Azure Functions and node.js working with Sendgrid to send emails to users when specific PDF blobs are uploaded to our blob repository. While everything has been functioning properly so far, I am facing an issue when trying to a ...

Retrieve the object with the JsonPropertyName annotation from an Azure Function

Here is the current structure we are working with: public class Foo { [JsonPropertyName("x")] public string Prop1 { get; set; } [JsonPropertyName("y")] public string Prop2 { get; set; } [JsonPropertyName("z&q ...