This step-by-step guide can help you to configure a logic app and set a connection of both Azure blob storage and Azure service bus, so the logic app can fetch data from Azure blob storage as well as from Azure service bus. Follow the steps listed below to easily go through the process.


1. Get started with Azure portal and log in to the correct tenant.


2. Go to the logic app which you want to connect to Microsoft CE.



3. Open the logic app designer by clicking the corresponding button on the left panel.



4. Click SendToLasernet, and then click TransferData to specify a folder for the storage as well as set a connection to the required blob storage.



NOTE: By default, the folder path to upload matches the default Lasernet configuration you should have when setting up the Lasernet application. So you can leave the value of the Folder path unchanged.


Before changing a connection, you should edit it, so it has an access key to authenticate your applications when making requests to the Azure storage account. To this end, proceed with the following steps.


5. Go to the logic app for which you want to edit an API connection. On the left panel of the logic app page, click API connections. Afterwards, click the required API connection to open its page.


6. On the left panel of the API connection page, click Edit API connection.



On the Edit API connection, you need to define a value in the Azure Storage Account Access Key text box. To this end, proceed with the following steps:


7. In a new window, go to Azure portal and log in to the correct tenant, and then go to Storage accounts.


8. On the Storage accounts page locate the storage account for which you want to get an access key.



9. On the left panel of the storage account page, click Access keys. Copy a key to clipboard, and then paste the value in the Azure Storage Account Access Key text box, as shown on the picture below. Once you are done, click Save.


10. Switch back to the logic app designer. Click SendToLasernet, and then click TransferData. At the bottom of the TransferData box, click Change connection.


11. In the Connections box, select a connection you have just edited. Once a connection is selected, the box closes automatically.


12. Click the Save button to save the changes you have made.



You are now connected to Azure blob storage. Afterwards, proceed to setting a connection to Azure service bus. To this end, follow the steps listed below.


13. On the logic app designer page, click TransferData to close the box, and then click Send message to open it.


14. From the Queue/Topic name drop-down combo box, select the required queue.



Before changing a connection, you should edit it and provide an Azure service bus connection string. To this end, follow the steps listed below.


15. Go to the logic app for which you want to edit an API connection. Fist, click API connections. Afterwards, click the required API connection to open its page, and then click Edit API connection.



On the Edit API connection, you need to define a value in the Connection String text box. To this end, proceed with the following steps:


16. In a new window, go to Azure portal and log in to the correct tenant, and then go to Service Bus. Locate the service bus for which you want to get a connection string, and then navigate to the Shared access policies page. Click a policy of your choice, and copy a connection string to clipboard, as shown on the picture below.



17. Afterwards, switch back to the Edit API connection screen, and paste the value to the Connection String text box. Once you are done, click the Save button.



18. Switch back to the logic app designer. Click SendToLasernet, and then click Send message. At the bottom of the Send message box, click Change connection.


19. In the Connections box, select a connection you have just edited. Once a connection is selected, the box closes automatically.


20. Click the Save button to save the changes you have made.



You are now connected to Azure service bus.