in this article I will show how to create IBM MQ server based on a Docker image that will be deployed to azure container instance
create the container instance using Az cli
in this example I will use public ACI with public IP while you can use private/Vnet integrated as well
The below cli command creates ACI image.
az container create -g MQEnviroment --dns-name-label myibmmqcontainerwithlable --location westeurope --name myibmmqcontainerwithlable --image ibmcom/mq --ip-address public --ports 9443 1414 --environment-variables LICENSE=accept MQ_QMGR_NAME=QM1
Also, you can create the above image using ARM template.
After you deploy the image, you need to run it from the portal.
The web console will be running on port 9443
https://myibmmqcontainerwithlable.westeurope.azurecontainer.io:9443/
The username and password are:
admin/passw0rd
the default developer configuration can be found on mq-container/developer-config.md at 9.2.4 · ibm-messaging/mq-container (github.com)
The IBM MQ explorer will help in testing, the steps to download can be taken form IBM site
Below is the configuration I have used to connect.
Note:
If you struggle downloading using the IBM downloader, then use http option
Important information about the IBM MQ and Docker
To review or log to the Linux machine that running the MQ server you need to go to Containers blade then Logs or connect
To test the above setup from logic app standard , I have created two logic apps one to put message and the other one to receive it
Configuration snapshot for the MQ service provider connector
{
"name": "mq_channelName",
"value": "DEV.APP.SVRCONN",
"slotSetting": false
},
{
"name": "mq_password",
"value": "passw0rd",
"slotSetting": false
},
{
"name": "mq_portNumber",
"value": "1414",
"slotSetting": false
},
{
"name": "mq_queueManagerName",
"value": "QM1",
"slotSetting": false
},
{
"name": "mq_serverName",
"value": "myibmmqcontainerwithlable.westeurope.azurecontainer.io",
"slotSetting": false
},
{
"name": "mq_userName",
"value": "app",
"slotSetting": false
},
{
"name": "mq_useTLS",
"value": "False",
"slotSetting": false
},
Due to the nature of design difference between the stateless and stateful logic app the trigger and action are different
Stateful |
Stateless |
|
|
Stateful |
Stateless |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.