How to use Drivers in Azure Functions?

Daniel Hudson 20 Reputation points
2023-09-26T13:59:59.2666667+00:00

Usually, if we want to connect to a Database (SAP, SQL, Oracle etc.) using python for example, we need to install drivers in our machines and make the connection. For example using pandas.read_sql

But a machine or a VM is a full environment with everything. Anything you need you can put there. Azure Function (as far as i know) is not a complete environment like a VM. So how to handle drivers (that need a installation on the machine/VM) in Azure Functions?

If i said anything wrong, please feel free to correct me and give me a class :)

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

Accepted answer
  1. Pramod Valavala 20,611 Reputation points Microsoft Employee
    2023-09-26T19:03:59.38+00:00

    @Anonymous Since these drivers are just packages, you can include them in the requirements.txt file for your project and publish it to azure.

    If you need even more control over the environment in which your function runs, you could opt to use a custom container instead as well.


0 additional answers

Sort by: Most helpful