Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Connected Field Service for Azure IoT Hub Setup

(2) ShareShare
ReportReport
Posted on by 10
Hi D365 Community,
I'm working on setting up Connected Field Service (CFS) with Azure IoT Hub, and I'm running into some  issues. I've followed the Microsoft documentation https://learn.microsoft.com/en-us/dynamics365/field-service/installation-setup-iothub for the setup, https://github.com/microsoft/Dynamics-365-Connected-Field-Service-Deployment#deploy-the-arm-template but I'm just not getting it to work correctly.  I'm relatively new to CFS, so please bear with me if I'm missing something obvious!
 
My main problem is that devices aren't syncing between CFS and IoT Hub. When I create a device in CFS, it doesn't seem to sync with Azure IoT Hub.  And if I create a device in IoT Hub, it doesn't appear in CFS. I've double-checked the configurations as best I can, but I'm still stuck.
 
Since I'm new to CFS, I'm wondering if there are any common "newbie" mistakes I might be making.  Has anyone else experienced similar problems, especially when first starting out?  Any tips or troubleshooting steps you could share would be greatly appreciated.
 
I'm particularly interested in:
* Common pitfalls in the CFS and IoT Hub integration.
* Best practices for device registration and synchronization.
* Any tools or logs that can help diagnose the issue.
* Anything that might be specific to someone just starting out with CFS.
 
Thanks in advance for your help!
 
Best regards,
Krish
 
  • Verified answer
    Muhammad Shahzad Shafique Profile Picture
    2,273 Most Valuable Professional on at
    Connected Field Service for Azure IoT Hub Setup
    1.  Common Pitfalls:
    • Missing IoT Connector (Azure Function App) deployment.
    • Not enabling IoT Alerts to Work Orders in CFS settings.
    • Incorrect IoT Hub connection string or shared access policies.
    2.  Device Sync Best Practices:
    • Devices must be created in IoT Hub first; CFS pulls them via the Azure Function.
    • Use the Register Device plugin in CFS only after confirming IoT Hub connectivity.
    3.  Diagnostics:
    • Check Azure Function logs in Application Insights.
    • Review IoT Provider record in Dynamics 365 for correct config.
    • Use Device-to-cloud message tracking in IoT Hub.
    4.  Tips for Beginners:
    • Always deploy via the ARM Template before testing.
    • Ensure Event Grid and IoT Hub permissions are granted to the function app.
    • Don’t skip setting up Device IDs properly in IoT Hub before linking in CFS.
  • Vahid Ghafarpour Profile Picture
    11,906 Super User 2025 Season 2 on at
    Connected Field Service for Azure IoT Hub Setup
    I think iothub diagnostics would be great option, it is old but can help you
     
     
     
  • Verified answer
    Holly Huffman Profile Picture
    6,496 Super User 2025 Season 2 on at
    Connected Field Service for Azure IoT Hub Setup
    Hi there! 
     
    Apologies if you've already checked these things: 
    • First thought is permissions - checking that IoT devices have the right permissions assigned for CFS?
    • Double checking strings, endpoints to ensure IoT and CFS match
    • Do devices IDs match in both systems? 
    • Ensuring IoT hub has appropriate security roles assigned
    • Any networking blocks / firewall ports not opened? 
    • Have you been able to run any logs we could look through? 
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 431 Most Valuable Professional

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 37 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 29

Featured topics

Product updates

Dynamics 365 release plans