I'm trying to write data to ADLS using a custom ADF activity authored in visual studio using the azure SDKs. The pipeline I create will be deployed into an existing ADF that already has an ADLS and batch linked service defined. My question is this: In the custom activity method, how do I use the existing ADLS linked service to write data?
This question is similar to this: ADF - C # Custom Activity but I don't think I can simply lift a connection string because the linked service is using my SPN and as a developer I'm not permitted to know the SPN key.
Here's the link service.
{
"name": "AzureDataLakeStoreLinkedService",
"properties": {
"hubName": "****-d-****-adf_hub",
"type": "AzureDataLakeStore",
"typeProperties": {
"dataLakeStoreUri": "adl://***************.azuredatalakestore.net/",
"servicePrincipalId": "*****-**-****-****-************",
"servicePrincipalKey": "**********",
"tenant": "********.com"
}
}
}
In the custom activity I get hold of the linked service:
var output = activity.Outputs[0];
var inputLinkedService = linkedServices.First(linkedService => linkedService.Name == _ADLSLinkedServiceName).Properties.TypeProperties as AzureDataLakeStoreLinkedService;
-- What now?