# Connection Details for Azure Data Lake Gen 2 and Azure Blob Storage

{% hint style="info" %}
**Note:** The same method below applies to Azure Blob Storage authentication for Astera.
{% endhint %}

To connect to Azure Data Lake Gen 2 and Azure Blob Storage Account in Astera, you need to have the access token or SAS keys. Follow the steps below to obtain authentication specifications from your Microsoft Azure account.

1. Login to your account, follow the link; [portal.azure.com](https://portal.azure.com/)
2. After you log in, go to *Storage Accounts*.

Either search for it via the search bar or go to the menu bar from the top-left corner and open storage accounts.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FCsT8nEHXUMcJ8tTX8zpZ%2F01-Storage-Accounts.png?alt=media\&token=93010365-5f13-4bf9-bf4f-fbe377c764f7)

3. A list of all the storage accounts would appear.

Select the one that you want.

{% hint style="info" %}
**Note**: We’ve chosen the *datalakestr* account in this case.
{% endhint %}

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FzHxLa4RHYng3zakGVKk4%2F02-Select-Account.png?alt=media\&token=4ffd4f11-4128-4116-a1c4-a3f9297d2ea1)

### Authentication Methods

There are two authentication methods for connecting to Azure Data Lake Gen 2 and Azure Blob Storage.

* Access Keys
* Shared Access Signature

#### Authentication Method: Access Keys

1. On the selected storage dashboard window, go to *Security + Networking* and select *Access Keys*.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F7NzarUG04szF5AO5qng3%2F03-Access-Key-Selection-Screen.png?alt=media\&token=682157b5-13f9-4464-9dc8-0b2bf4ec94cb)

A new windowpane would open with all your access keys for the selected storage account. You need the *Storage Account Name* and *Access Key* to connect to Astera.

2. Select *Show Keys* to preview the keys and copy them.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FVyAKe3gzlVaqSrtT0TTt%2F04-Show-Key-Option.png?alt=media\&token=1945f483-f532-4506-aa66-48cd9ef25f68)

You can now use the copied access key to connect to Azure Data Lake Gen 2 and Azure Blob Storage in Astera.

#### Authentication Method: Shared Access Signature

1. On the selected storage dashboard window, go to *Security + Networking* and select *Shared Access Signature*.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FsPgMMa2mjhcTT6uqLgbo%2F05-Shared-Access-Signature.png?alt=media\&token=dfb2e731-2d20-4d5d-a9cf-838e09824fa7)

A new windowpane would open where you can configure *Shared Access Signature* settings for the access keys according to your requirements.

2. Click on *Generate SAS and Connection String* when you’re ready to generate the key.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FrGFQAxsDqExFFU0630cm%2F06-Generate-SAS.png?alt=media\&token=22956ab2-a02c-4e05-81e7-737ceba5827a)

You would need the *Blob* Service *SAS URL* for the *Shared Access Signature* *Authentication Method* in Astera Data Stack.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fxeglf7myVWOAeJtCsYyu%2F07-SAS-URL.png?alt=media\&token=3de0949f-1c84-4d5e-8891-0c0f18f1555d)

You can now use the copied URL to connect to Azure Data Lake Gen 2 and Azure Blob Storage in Astera Data Stack.
