Azure data factory AdlsGen1 structured link service fail to read file: Method not found

Jing Ou 56 Reputation points Microsoft Employee
2024-05-07T09:18:45.7433333+00:00

We create a AdlsGen1 structure stream linked service to read structure stream file. When we created the link service, clicked 'Test connection' and it succeeded, but it failed to preview stream and the error was 'Type=System.MissingMethodException,Message=Method not found: 'System.Threading.Tasks.Task`1<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult> Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.AcquireTokenAsync(System.String, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate)'.,Source=Microsoft.Rest.ClientRuntime.Azure.Authentication,'.

We use service principal for authentication and use cert as the SPI secret. Specifically, we create a cert in azure key vault and bind the cert to the SPI, and input the cert name as secret name in ADF. In other linked services it works well (including ADLS gen2 structure stream linked service). But for Adls gen1, it throws exception as shown before. Could you please have a look?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,773 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jing Ou 56 Reputation points Microsoft Employee
    2024-05-27T01:51:32.56+00:00

    @Roi Bing I created a support ticket to ADF team and they respond to me that it's a known issue and still in investigation and no ETA for it.

    Regarding to the workaround, you can use managed identity to link to Cosmos Structure Stream. Specially, create a managed identity -> grant the managed identity permission in Azure portal (at least Reader) -> in ADF, use Credential to authenticate, bind the managed identity to the Credential.

    1 person found this answer helpful.
    0 comments No comments