azureデータファクトリのカスタムアクティビティに問題があります。 その中の紺碧のデータ湖に接続したいです。 私は次の名前空間を使用しています:Azureデータレークとデータ工場のカスタムアクティビティ
using Microsoft.Azure.Management.DataLake.Store;
using Microsoft.IdentityModel.Clients.ActiveDirectory
using Microsoft.Rest.Azure.Authentication;
そしてここでは私のコードです:
public ConnectDataLakeStore(string applicationId, string applicationSecretKey, string tenantId)
{
var credentials = new ClientCredential(applicationId, applicationSecretKey);
var creds = ApplicationTokenProvider.LoginSilentAsync(tenantId, credentials).Result;
var fileSystemClient = new DataLakeStoreFileSystemManagementClient(creds);
}
を私は次の例外を取得:私はローカル環境のすべてにカスタムアクティビティを実行すると
Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Azure.Management.DataLake.Store.Models.AdlsErrorException: Operation returned an invalid status code 'Forbidden'
at Microsoft.Azure.Management.DataLake.Store.FileSystemOperations.<ListFileStatusWithHttpMessagesAsync>d__12.MoveNext()
を正常に動作します。 azureへの展開後に問題が発生します。広告アプリケーションにすべての権限を与えました。
ヒント
を解決するのに役立ちます。 .NET Frameworkのバージョンは、4.5.2未満である必要があります。 – BRMaster