Jump to content

Azure Data Factory to ADX Free Cluster


Recommended Posts

Guest ShafMahmood
Posted

Azure Data Factory to ADX Free Cluster

 

 

 

 

If you are using Azure Data Factory and need to connect to an Azure Data Explorer Free Cluster, this walkthrough will show you how to create the linked service using System Managed Identity.

 

 

 

First make a note or copy the URL for your free cluster, example of the one we are using in the walkthrough:

 

mediumvv2px400.png.5888ff9fa93298aaf3d64300163fc9f9.png

 

 

 

From Data Factory select Manage -> Linked Services -> New.

 

mediumvv2px400.png.2ec0ce9946a8d9737382c4b8d0aeffb4.png

 

 

 

 

 

Select ADX as the Linked Service Data Store.

 

mediumvv2px400.png.7d042ea01a83fec977ec20135f1e5953.png

 

 

 

Provide a Name and Description and for Authentication method select System Assigned Managed Identity.

 

mediumvv2px400.png.84ce5be30c6434e7f801b58233e60fa1.png

 

 

 

 

 

For Account selection method select Enter manually and enter the URL of your cluster for Endpoint, ensure that the right database is selected if you have more than one.

 

 

 


Note: If you are not using the same account you created the cluster with you will not be able to select a database unless you have added permissions for the account.

 

 

mediumvv2px400.png.ee79256f7b634c06d78ac9e02cdc77df.png

 

 

 

At this point you will also see the managed identity name and object ID, make a copy of the object ID.

 

 

 

A test connection at this point will fail as you have not yet added permissions to the free cluster.

 

mediumvv2px400.png.db783d038a4f2861c4015ae2771e820c.png

 

 

 

Add permissions to the free cluster for your ADF Managed Identity.

 

 

 

Run the following command to add the identity to the database:

 

 

 

.add database MyDatabase admins ("aadapp=<Managed Identity Object ID>;<Tenant ID>")

 

 

 

mediumvv2px400.png.fa6901216daccbeefd81b91170fc4070.png

 

 

 

Once this is done you should be able test and see Connection successful.

 

mediumvv2px400.png.b21ff82553ddb6288742c2defb80ac14.png

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...