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:
- Create a new folder in your function app named
bin
. - 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
- Extract the downloaded file and copy the contents of the
Lib
folder to thebin
folder you created in step 1. - In your function app, go to the
Configuration
tab and add an application setting namedLD_LIBRARY_PATH
with the value/home/site/wwwroot/bin
. - 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 therequirements.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.