Configure Azure MYSQL Output Binding in Azure JavaScript eventHubTrigger Function

Shailesh Dhome 0 Reputation points
2024-02-20T18:36:34.8566667+00:00

I have a Azure Function written in JavaScript language. I want to integrate it with Azure Database for MYSQL, but I am not able to find any example Bindings for binding the Azure MYSQL Database as an output for a Function. I want to configure Azure Database for MYSQL as an output binding in my JavaScript Azure Function. This is an Event Hub Trigger Function. This function is of event hub Trigger type. Any urgent help would be highly appreciated. Thanks!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,266 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,591 Reputation points Microsoft Employee
    2024-02-21T17:11:52.2133333+00:00

    @Shailesh Dhome There is no official binding for MySQL that you can use like the Azure SQL Binding. Instead, you could simply use any MySQL SDK that you are familiar with in your function code. Ensure you follow the best practices to handle connections by using a static client object for example.