Before you begin
An Azure subscription is required.
Create your Azure Data Lake Storage Gen2 account if you do not have it
- For more details, see Create an Azure Data Lake Storage Gen2 account from the Azure documentation.
- Create an Azure Active Directory application on your Azure portal. For more details about how to do this, see the "Create an Azure Active Directory application" section in Azure documentation: Use portal to create an Azure Active Directory application.
Obtain the application ID, object ID and the client secret of the application
to be used from the portal.
- On the list of the registered applications, click the application you created and registered in the previous step to display its information blade.
- Click Overview to open its blade, and from the top section of the blade, copy the Object ID and the application ID displayed as Application (client) ID. Keep them somewhere safe for later use.
- Click Certificates & secrets to open its blade and then create the authentication key (client secret) to be used on this blade in the Client secrets section.
- Back to the Overview blade of the application to be used, click Endpoints on the top of this blade, copy the value of OAuth 2.0 token endpoint (v1) from the endpoint list that appears and keep it somewhere safe for later use.
Set the read and write permissions to the ADLS Gen2 filesystem to be used for
the service principal of your application.
It is very likely that the administrator of your Azure system has included your account and your applications in the group that has access to a given ADLS Gen2 storage account and a given ADLS Gen2 filesystem. In this case, ask your administrator to ensure that you have the proper access and then ignore this step.
Start your Microsoft Azure Storage Explorer and find your ADLS Gen2
storage account on the Storage Accounts
If you have not installed Microsoft Azure Storage Explorer, you can download it from the Microsoft Azure official site.
Expand this account and the Blob Containers node
under it; then click the ADLS Gen2 hierarchical filesystem to be used
under this node.
The filesystem in this image is for demonstration purposes only. Create the filesystem to be used under the Blob Containers node in your Microsoft Azure Storage Explorer, if you do not have one yet.
- On the blade that is opened, click Manage Access to open its wizard.
- At the bottom of this wizard, add the object ID of your application to the Add user or group field and click Add.
- Select the object ID just added from the Users and groups list and select all the permission for Access and Default.
- Click Save to validate these changes and close this wizard.
- Start your Microsoft Azure Storage Explorer and find your ADLS Gen2 storage account on the Storage Accounts list.