IBM Sterling Connect:Direct: Configuring C:D to use Azure Blob Storage
Here we provided the steps to setup Connect:Direct to use Azure Blob Storage.
Configure initparm.cfg
Edit initparm.cfg and add these parameters:
file.ioexit:\ :name=az01:\ :library=/<cd>/cdunix/ndm/lib/libcdjnibridge.so:\ :home.dir=/<cd>/cdunix/ndm/ioexit-plugins/s3:\ :options=-Xmx640m \ -Dstore.providerName=AZ \ -Daz.accountName=<my account name> \ -Daz.accountKey=<my account key> \ -Djava.class.path=/<cd>/cdunix/ndm/ioexit-plugins/s3/cd-s3-ioexit.jar com.aricent.ibm.mft.connectdirect.s3ioexit.S3IOExitFactory:
Save and Close.
where:
- <cd>: Connect:Direct home
- az.accountName: Azure Account Name
- az.accountKey: Azure Account Key
Example using ServicePricipal
Version 6.4.0.3 and higher
file.ioexit:\ :name= az01:\ :library=/<cd>/ndm/lib/libcdjnibridge.so:\ :home.dir=/<cd>/ndm/ioexit-plugins/s3:\ :options=-Xmx640m \ -Dstore.providerName=AZ \ -Daz.accountName=<my account name> \ -Daz.servicePrincipalTenantId=<tenant id> \ -Daz.servicePrincipalClientId=<client id> \ -Daz.servicePrincipalCertificate=</directory/your_certificate.pem> \ -Daz.servicePrincipalCertificateType=PEM \ -Dcom.ibm.tools.attach.enable=no \ -Djava.class.path=/<cd>/cdunix/ndm/ioexit-plugins/s3/cd-s3-ioexit.jar com.aricent.ibm.mft.connectdirect.s3ioexit.S3IOExitFactory:
Put a file in Azure Blob
Create file send_az.cdp, and provide this content:
CD1toAZ process snode=<NODENAME> step01 copy from ( file = /opt/cdunix/ndm/cfg/msgfile.cfg ) to ( file = az01://<BUCKET NAME>/demo_azure.txt disp = rpl ) pend;
Submit file using command:
submit file=send_az.cdp;
Get a file from Azure Blob
CD1fromAZ process snode=<NODENAME> step01 copy from ( file = az01://<BUCKET NAME>/Report.pdf ) to ( file = /home/appuser/Report.pdf disp = rpl ) pend;