Authorizing Data Lake Services with Visual Studio Factory Project Data

I have an Azure Data Factory Visual Studio project in which I use Azure Data Lake related services. When I create them, I must first authorize them. But this permission expires after a certain period of time, which is in days.

I can not find an option for re-authorization of related services. I tried to re-enable another linked service with the portal and use this authorization for the linked service created in VS, but this did not work.

I had to remove and re-create related services for a new authorization.

Is this feature missing or is there another way to get a new authorization for linked Data Lake services in VS?

+4
source share
2 answers

There is clearly no re-authorization in Visual Studio at this time. You will need to create a new linked service in VS in order to get an authorization code, and you can use it in an existing linked service. Using the Azure portal, you can click the Authorize button again to get new authorization codes, and then click Deploy

0
source

You can also use the service principle for what you need, not sure if it was supported back in 2016.

The only caveat is that you need Azure Active Directory (Azure AD).

 "typeProperties": {
    //"authorization": "urn:ietf:wg:oauth:2.0:XXX",
    //"sessionId": "XXX",
    "dataLakeStoreUri": "https://XXX.azuredatalakestore.net/webhdfs/v1",
    "accountName": "ACCOUNT_NAME_XXX",
    "subscriptionId": "SUBSCRIPTION_GUID",
    "resourceGroupName": "RESOURCE_GROUP_NAME",
    "servicePrincipalId": "APPLICATION_CLIENT_ID",
    "servicePrincipalKey": "APPLICATION_SECRET_KEY",
    "tenant": "XXX.onmicrosoft.com"
  }

Azure AD , . / APPLICATION_CLIENT_ID, APPLICATION_SECRET_KEY authorization sessionId, .

Azure AD .

, .

: Azure AD https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-integrating-applications

0

All Articles