0
Reply

How to create linked service in azuredatalake store using c#

Selvakumar Krishnamurthy

Selvakumar Krishnamurthy

May 9 2017 1:04 AM
296

Hi ,

How to create linked service in azuredatalake store using c# and what are the nuGet packges need to install.

 
I tired in the below methods:
----------------------------------------------------------- 

new LinkedServiceCreateOrUpdateParameters()

{

LinkedService = new LinkedService()

{

Name = sourceLinkedServiceName + "_AzureDataLakeStoreLinkedService",

Properties = new LinkedServiceProperties

(

//new DataLakeStoreAccountManagementClient( ("dataLakeStoreUri=" + "sds" + ";servicePrincipalId=" + "dddsd" + ";servicePrincipalKey=" + "ddd" + ";tenant=" + "tenant" + ";subscriptionId=" + "sdsd" + ";resourceGroupName = " + "sdsds")

)

}

}

);

its not working i need below format.
 {
 "name": "AzureDataLakeStoreLinkedService",
 "properties": {
 "type": "AzureDataLakeStore",
 "typeProperties": {
 "dataLakeStoreUri": "https://<accountname>.azuredatalakestore.net/webhdfs/v1",
 "servicePrincipalId": <<ClientId>>,
 "servicePrincipalKey": <<ClientSecret>>,
 "tenant": <<ActiveDirectoryTenantId>>,
 "subscriptionId": <<SubscriptionId>>,
 "resourceGroupName": <<ResourceGroupName>>
 }
 }
}
in the above code type properties cant work properly. if i missed something? please help me on this.
 
Thanks