azure function app to use pymqi

Yang Chow Mun 121 Reputation points
2024-07-20T13:51:21.3333333+00:00

I would like to use azure function to read and write from/into IBM mq.

I have included pymqi in the requirement.txt but not able to install the library.

Checked online seem like required to install MQ Client libraries.

Anyone know how the MQ Client libraries can be installed in azure function? Or how pymqi can be installed inside function app?

Thanks

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

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 4,535 Reputation points Microsoft Employee
    2024-07-22T08:37:26.93+00:00

    Hello @Yang Chow Mun

    To use pymqi in Azure Function to read and write from/into IBM MQ, you need to install the IBM MQ client libraries in your Azure Function environment. Here are the steps to install the IBM MQ client libraries in Azure Function:

    1. Create a new folder in your function app named bin.
    2. Download the IBM MQ client libraries from the IBM website. You can download the libraries from the following link: https://www.ibm.com/support/pages/downloading-ibm-mq-9-client
    3. Extract the downloaded file and copy the contents of the Lib folder to the bin folder you created in step 1.
    4. In your function app, go to the Configuration tab and add an application setting named LD_LIBRARY_PATH with the value /home/site/wwwroot/bin.
    5. Save the application settings and restart your function app. After installing the IBM MQ client libraries, you can install pymqi in your function app by adding pymqi to the requirements.txt file and deploying it to your function app. Please note that you may need to modify your code to use the correct paths to the IBM MQ client libraries in your function app.

    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.