azure-functions

Connect to Azure SQL DB from a Azure Functions in JS

这一生的挚爱 提交于 2021-02-19 06:00:29
问题 I am trying to connect to my Azure SQL DB from an azure function written in nodeJS. I have set the connection strings in the application settings and it still does not work. I used ODBC key for connection settings. Did anyone try this? Below is the sample code for my function var Connection = require('tedious').Connection; var Request = require('tedious').Request; // Create connection to database const config = process.env["sqldb_connection"]; var connection = new Connection(config); //

Trigger azure function on user registration in b2c

旧巷老猫 提交于 2021-02-19 02:59:06
问题 I want to trigger a function when a user registers in my azure AD B2C. But I can't find any examples on this. Is the user added to any queue or stored in any table? Or do I need to look at the respons back when the user clicks the "register" button in my app? I followed this guide to create my B2C. What I want is to eg. send a welcome mail. 回答1: Azure AD B2C does not have any support for custom emails events or custom triggers through its built-in policies. However, you can use Azure AD B2C

Unable to update Azure Functions Core Tools in Visual Studio Mac

走远了吗. 提交于 2021-02-18 17:53:06
问题 I'm developing an Azure Functions App which has a variety of different triggers (HTTP, QUEUE, TIMER and SignalR). They work fine when I'm developing on my Work PC (Windows) but they don't work when I'm developing at home on my Mac. I get the following error: A host error has occurred [28/03/2019 20:37:53] Microsoft.Azure.WebJobs.Extensions.Storage: Could not load type 'Microsoft.Azure.WebJobs.Hosting.IOptionsFormatter' from assembly 'Microsoft.Azure.WebJobs.Host, Version=3.0.3.0, Culture

Why is my python timer trigger function not running at the correct time?

主宰稳场 提交于 2021-02-16 18:08:16
问题 this is probably a noob question. I have an Azure Function that responds to HTTP requests and it works fine, I can call it from a browser or from a Python 3.8 script. I want to make another function that will have Timer Trigger and will call the HTTP trigger function on a schedule. HTTP Trigger function returns a simple string with execution results. Now my code for Timer trigger function is using Python Requests and it works locally every time, but will work only 1/10 times when deployed to

Why is my python timer trigger function not running at the correct time?

妖精的绣舞 提交于 2021-02-16 18:07:16
问题 this is probably a noob question. I have an Azure Function that responds to HTTP requests and it works fine, I can call it from a browser or from a Python 3.8 script. I want to make another function that will have Timer Trigger and will call the HTTP trigger function on a schedule. HTTP Trigger function returns a simple string with execution results. Now my code for Timer trigger function is using Python Requests and it works locally every time, but will work only 1/10 times when deployed to

IoT Hub message routing with DeviceLifecycleEvents source does not work

好久不见. 提交于 2021-02-16 05:32:30
问题 I am already using an IoT Hub and have configured message routing to route TwinChangeEvents to an Event Hub. An Azure function with an EventHubTrigger processes the messages. This works perfectly fine. Now, I wanted to configure message routing to route DeviceLifecycleEvents to another Event Hub. Again, another Azure function with an EventHubTrigger should process the messages. However, the function is not triggered when I connect or disconnect devices. When I change the data source of the

Azure Function failures occurring, which App Insights Alert to create?

时间秒杀一切 提交于 2021-02-11 18:26:45
问题 Eh! Troubleshooting this all morning to no avail. Background: What: Azure Function Runtime: Python Trigger : EventGrid w/ Advanced Filters Advanced Filters (NOTE: Working just fine for last 30+ days): Subscribed to: Storage Account; blob upload only Auth: System-assigned Managed Identity (Function SAMI added as BlobDataReader role to Storage Account) Issue: Uploading .csv files to blob container does not trigger the Function AND various "ClientOtherError" and "AuthenticationError" messages

Azure Function failures occurring, which App Insights Alert to create?

纵饮孤独 提交于 2021-02-11 18:25:59
问题 Eh! Troubleshooting this all morning to no avail. Background: What: Azure Function Runtime: Python Trigger : EventGrid w/ Advanced Filters Advanced Filters (NOTE: Working just fine for last 30+ days): Subscribed to: Storage Account; blob upload only Auth: System-assigned Managed Identity (Function SAMI added as BlobDataReader role to Storage Account) Issue: Uploading .csv files to blob container does not trigger the Function AND various "ClientOtherError" and "AuthenticationError" messages

How to get the details of all the resoures from their resource groups

泄露秘密 提交于 2021-02-11 15:37:51
问题 I am trying to set up an azure logic-app with an azure function that will get all(most) of details of all the resources in a subscription. including their subscription ID, Resource Guid and the resource group they reside 回答1: What you basically need is to make use of the Azure Resource Management API's to operate on your resources. For your requirement you can make use of the below. GET https://management.azure.com/subscriptions/{subscriptionId}/resources?api-version=2019-05-10 Remember you

How to get the details of all the resoures from their resource groups

和自甴很熟 提交于 2021-02-11 15:34:24
问题 I am trying to set up an azure logic-app with an azure function that will get all(most) of details of all the resources in a subscription. including their subscription ID, Resource Guid and the resource group they reside 回答1: What you basically need is to make use of the Azure Resource Management API's to operate on your resources. For your requirement you can make use of the below. GET https://management.azure.com/subscriptions/{subscriptionId}/resources?api-version=2019-05-10 Remember you