Forum Discussion
Create a IoTHub Connection Using MS Fabric API
- 1 year ago
Hi,
I found an API endpoint in the documentaion to list the supported connection types.And with the "try it" option, you can retreive the needed information:
So the connections details for an IoTHub should have "IoTHub.Contents" as creation methods and "entutyPath" as parameter. Here is my body the is actually working. Which is akward because it's not matching exactly, I let you check the differences...
Hi burakkaragoz,
Can you provide a full JSON sample of your body?
It's seem that I don't use the correct "creationMethod" value.
Hi yvaubourg ,
yeah, that part’s not super well documented tbh. there’s no single public list with all connection types + their expected parameter names (at least not yet).
what we do is:
- go to Fabric UI → create the connection manually
- open Dev Tools (F12) → Network tab
- watch the request payload when you hit “Create”
- you’ll see the exact structure + parameter names used by the UI
it’s a bit hacky but works every time.
also, some connection types are documented here (but not all):
https://learn.microsoft.com/en-us/fabric/data-factory/connector-overview