
Hi All
Is it possible to connect more than one Azure IOT hub to field service?
I have created a test case and created 2 IOT Hubs in Azure and setup the 2 IOT Provider Instances in CRM.
When I register a new device in CRM and then select "register" to push to Azure IOT hub it does not respect the IOT Provider set against the device in CRM, it seems to only push to the default provider in Azure.
Is there any documentation regarding this type of configuration scenario?
Nick
Hi Nick, I am eager to learn more about your scenario if you want to reach out at dgittler@microsoft.com. To answer your question, our IoT provider feature does let you connect to multiple different IoT instances, but IoTH is a bit unique at the moment. You can accomplish what you are looking for but will take some tweaks:
• When we deploy azure resources, we deploy a logic app that moves data between D365 and IOTH. This logic-app is extensible.
• When you deploy CFS with IOTH, we create an IoT provider called “IoT Hub” which contains the end point and other information. You can have many instances of this IoT provider on a table called “IoT Provider Instance”. So you can create a second IoTH instance. Then, you can modify the logic app to query D365 to find out which instance you should call. For example, when a user clicks “pull device data” in D365, the LogicApp will send the pull request to IoTH. But you can add a step to the LogicApp to call back D365 to find which IoT Provider instance the device is related to, and then make the request to the proper instance