Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Fabric community is now in read-only for platform upgrade. Learn more

Reply
CoulterJames2
Advocate II
Advocate II

Programmatically Create Fabric Data Pipeline Cloud Connection

Is it possible to create a Fabric Data Pipelines cloud connection via the Create Connection API or is this connection type not supported for creation? I can retrieve the details of such connections, but not create them. In the response details for an existing connection, I see the type and path parameters as follows:

 

Connection '{
'allowConnectionUsageInGateway': False, 
'allowUsageInUserControlledCode': False, 
'id': 'a1b2c3d4-aaaa-bcbc-dddd-a1b2c3d4e5f6', 
'displayName': 'Fabric Data Pipeline demo', 
'connectivityType': 'ShareableCloud', 
'connectionDetails': {'path': 'FabricDataPipelines', 'type': 'FabricDataPipelines'}, 'privacyLevel': 'Organizational', 
'credentialDetails': {'credentialType': 'OAuth2', 'singleSignOnType': 'None', 'connectionEncryption': 'NotEncrypted', 'skipTestConnection': False}}'

But when I try to pass these same values to the Create Connection API, I get an error telling me that the creationMethod parameter is missing. What is the creationMethod for this type of connection? The only info I can find on this relates to SQL connections.

 

https://learn.microsoft.com/en-us/rest/api/fabric/core/connections/create-connection

1 ACCEPTED SOLUTION
tayloramy
Super User
Super User

Hi @CoulterJames2

 

It is possible. The creationMethod is the type of connection to create. If you look at the examples in the documentation, 

POST https://api.fabric.microsoft.com/v1/connections

{
  "connectivityType": "ShareableCloud",
  "displayName": "ContosoCloudConnection",
  "connectionDetails": {
    "type": "SQL",
    "creationMethod": "SQL",
    "parameters": [
      {
        "dataType": "Text",
        "name": "server",
        "value": "contoso.database.windows.net"
      },
      {
        "dataType": "Text",
        "name": "database",
        "value": "sales"
      }
    ]
  },
  "privacyLevel": "Organizational",
  "credentialDetails": {
    "singleSignOnType": "None",
    "connectionEncryption": "NotEncrypted",
    "skipTestConnection": false,
    "credentials": {
      "credentialType": "Basic",
      "username": "admin",
      "passwordReference": {
        "connectionId": "4399ab2c-7551-4c0e-8aa7-18fc2f217626",
        "secretName": "some-secret"
      }
    }
  },
  "allowUsageInUserControlledCode": true
}

 You can see that for this example, this is a SQL Server connection, and the CreationMethod is SQL. 

 

 

Here is another API to list all the supported CreationMethods: 
https://learn.microsoft.com/en-us/rest/api/fabric/core/connections/list-supported-connection-types?t...

 





If you found this helpful, consider giving some Kudos.
If I answered your question or solved your problem, mark this post as the solution!

Join the Fabric Discord!

Proud to be a Super User!





View solution in original post

4 REPLIES 4
tayloramy
Super User
Super User

Hi @CoulterJames2

 

For cloud connections, only the owner can see them. So whatever crednetials you used to send the POST request is the account that can manage them, even as a fabric admin you cannot see someone's cloud connections. 
I recommend using the REST API to also share the connection with yourself so you can see them, but editing them will need to be done only through the API using the credentials that created the connection. 
 





If you found this helpful, consider giving some Kudos.
If I answered your question or solved your problem, mark this post as the solution!

Join the Fabric Discord!

Proud to be a Super User!





Hi @tayloramy yes, I realised this was the reason and then had to add a role assignment using my own credentials. Thanks for the help.

tayloramy
Super User
Super User

Hi @CoulterJames2

 

It is possible. The creationMethod is the type of connection to create. If you look at the examples in the documentation, 

POST https://api.fabric.microsoft.com/v1/connections

{
  "connectivityType": "ShareableCloud",
  "displayName": "ContosoCloudConnection",
  "connectionDetails": {
    "type": "SQL",
    "creationMethod": "SQL",
    "parameters": [
      {
        "dataType": "Text",
        "name": "server",
        "value": "contoso.database.windows.net"
      },
      {
        "dataType": "Text",
        "name": "database",
        "value": "sales"
      }
    ]
  },
  "privacyLevel": "Organizational",
  "credentialDetails": {
    "singleSignOnType": "None",
    "connectionEncryption": "NotEncrypted",
    "skipTestConnection": false,
    "credentials": {
      "credentialType": "Basic",
      "username": "admin",
      "passwordReference": {
        "connectionId": "4399ab2c-7551-4c0e-8aa7-18fc2f217626",
        "secretName": "some-secret"
      }
    }
  },
  "allowUsageInUserControlledCode": true
}

 You can see that for this example, this is a SQL Server connection, and the CreationMethod is SQL. 

 

 

Here is another API to list all the supported CreationMethods: 
https://learn.microsoft.com/en-us/rest/api/fabric/core/connections/list-supported-connection-types?t...

 





If you found this helpful, consider giving some Kudos.
If I answered your question or solved your problem, mark this post as the solution!

Join the Fabric Discord!

Proud to be a Super User!





@tayloramy thanks for the tip - I called the API to view all connection types and found that the creationMethod for a Fabric Data Pipeline is FabricDataPipeline.Actions. I have a follow-up question though - having created the connection, it is not visible in the 'Manage connection and gateways page'. Is there a delay until it is visible?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Fabric Update Carousel

Fabric Monthly Update - July 2026

Check out the July 2026 Fabric update to learn about new features.