How to Install Library in Azure Function ?

Ardel Vito Putra Herijanto 20 Reputation points
2024-05-13T07:31:40.1366667+00:00

Hi, so im trying to use azure iot hub and azure iot device library in my function. At the first i thought it can be directly imported like this.User's image

But it turns out showing an error like this when i check the monitor logs
User's image

Does anyone know how to install and import the library ? thank you for any responses & helps

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

Accepted answer
  1. MayankBargali-MSFT 69,581 Reputation points
    2024-05-13T07:51:25.41+00:00

    @Ardel Vito Putra Herijanto Thanks for reaching out.

    You can refer to the document here. You need to define the package in the requirement.txt file and if you want a specific version then you need to define the version as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful