Forum Discussion

rahul-biswas_le's avatar
rahul-biswas_le
New Member
1 year ago
Solved

ADLS Gen 2 Connection creation using Fabric REST API

I want to create a connection to ADLS Gen 2 using Fabric Rest API. Can anyone please share an example of how to construct the request body for the API call for this scenario? I have managed to get th...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi rahul-biswas_le,

    Thank you for reaching out in Microsoft Community Forum.

    providing the documents which might you assist you in creating a connection to ADLS Gen 2 using Fabric Rest API.
    Azure Data Lake Storage Gen2 REST API reference - Azure Storage | Microsoft Learn
    Set up your Azure Data Lake Storage Gen2 connection - Microsoft Fabric | Microsoft Learn


    Please continue using Microsoft community forum.

    If you found this post helpful, please consider marking it as "Accept as Solution" and select "Yes" if it was helpful. help other members find it more easily.

    Regards,
    Pavan.

  • KrishnaPaudel's avatar
    1 year ago

    Here is the sample request body that worked for me with Workspace Identity as authentication. 
    Try changing the auth to SPN in your case. Hope this helps.

     

    {
    	"displayName": "FHE_TestEndPoint",
    	"connectivityType": "ShareableCloud",
    	"connectionDetails": {
    		"creationMethod": "AzureDataLakeStorage",
    		"type": "AzureDataLakeStorage",
    		"parameters": [
    			{
    				"dataType": "Text",
    				"name": "server",
    				"value": "https://sampleadls.dfs.core.windows.net"
    			},
    			{
    				"dataType": "Text",
    				"name": "path",
    				"value": "sampleadlscontainer"
    			}
    		]
    	},
    	"privacyLevel": "Organizational",
    	"credentialDetails": {
    		"credentials": {
    			"credentialType": "WorkspaceIdentity"
    		},
    		"connectionEncryption": "NotEncrypted",
    		"skipTestConnection": false,
    		"singleSignOnType": "None"
    	},
    	"allowDatasourceThroughGateway": false
    }