> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sync.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Azure Data Lake Storage

CData Sync アプリケーションからAzure Data Lake Storage コネクタを使用して、Azure Data Lake Storage からデータを取得してサポートされている任意の同期先に移動できます。これを行うには、コネクタを追加し、コネクタへの認証を行い、接続を完了する必要があります。

## Supported File Formats

When Sync writes data to Azure Data Lake Storage, you can choose the file format for the exported data. The following file formats are supported for the Azure Data Lake Storage source:

* (Default) **CSV：** Plain text comma-separated values.
* **Avro：** A row-based binary format that supports schema evolution.
* **Parquet：** A columnar storage format that is optimized for analytics.

## Azure Data Lake Storage コネクタを追加

Sync でAzure Data Lake Storage のデータを使用できるようにするには、まず以下の手順でコネクタを追加する必要があります：

<ol>
  <li>Sync のダッシュボードから**接続**ページを開きます。</li>
  <li>**接続を追加**をクリックして**コネクタを選択**ページを開きます。</li>
  <li>**データソース**タブをクリックして
  **Azure Data Lake Storage** 行に移動します。</li>

  <li>
    行末にある**接続を設定**アイコンをクリックして、**新しい接続**ページを開きます。この操作により、
    **接続を追加**ダイアログボックスが開きます。

    **Note：** **接続を設定**アイコンが表示されない場合は、**コネクタをダウンロード**アイコンをクリックして Azure Data Lake Storage コネクタをインストールしてください。
  </li>

  <li>**接続を追加**ダイアログボックスに接続名を入力します。</li>
  <li>**追加**をクリックして、コネクタの**設定**タブを開きます。</li>
</ol>

新しいコネクタのインストールについての詳細は、
[接続](https://docs.sync.cdata.com/26.4/ja/connections/connections.md)を参照してください。

## Azure Data Lake Storage への認証

After you add the connector, you need to set the required properties.

* **File Format:** Select the file format that you want to use: **Delta Parquet**, **CSV** (default), **Avro**, and **Parquet**.

  > [!NOTE]
  >
  > The **Delta Parquet** and **Apache Iceberg** file formats are not supported for Sync source connectors. If you select either of these formats, Sync generates an error.

* **Azure Storage Account:** Enter the name of your Azure storage account.

* **URI:** Enter the path of the file system and folder that contains your files (for example, `abfss://MyFileSystem/FolderName`).

CData Sync supports authenticating to Azure Data Lake Storage in several ways. Select your authentication method below to proceed to the relevant section that contains the authentication details.

* [**Azure Active Directory**](#azure-active-directory) (default)
* [**Azure Managed Service Identity**](#azure-managed-service-identity)
* [**Azure Service Principal**](#azure-service-principal)
* [**Azure Service Principal Certificate**](#azure-service-principal-certificate)
* [**Access Key**](#azure-access-key)
* [**Azure Storage SAS**](#azure-shared-access-signature)

### Azure Active Directory

To connect with an Azure Active Directory (AD) user account, specify the following properties:

* **Auth Scheme:** Select **AzureAD**.
* **Use Lake Formation:** Select **True** if you want the AWS Lake Formation service to retrieve temporary credentials. These temporary credentials enforce access policies against the user based on the configured IAM role. You can use this service when you authenticate through AzureAD, Okta, ADFS, and PingFederate, while providing a Security Assertion Markup Language (SAML) assertion. The default setting for **Use Lake Formation** is **False**.

### Azure Managed Service Identity

Azure 仮想マシン上でCData Sync が実行されている場合にAzure マネージドサービスID（MSI）を利用するには、**Auth Scheme** で**Azure MSI** を選択します。追加のプロパティは必要ありません。

### Azure Service Principal

Azure サービスプリンシパルとクライアントシークレットで接続するには、次のプロパティを設定します：

<ul><li>\*\*Auth Scheme：\*\***AzureServicePrincipal** を選択。</li>
<li>\*\*Azure Tenant：\*\*接続するMicrosoft Online テナントを入力。</li>
<li>\*\*OAuth Client Id：\*\*OAuth 認証サーバーにアプリケーションを登録した際に割り当てられたクライアントId を入力。</li>
<li>\*\*OAuth Client Secret：\*\*OAuth 認証サーバーにアプリケーションを登録した際に割り当てられたクライアントシークレットを入力。</li>
<li>（オプション）\*\*Scope：\*\*アプリケーションへのアクセス範囲を入力。</li>
<li>（オプション）\*\*OAuth Authorization URL：\*\*OAuth サービスのOAuth 認可URL を入力。</li>
<li>（オプション）\*\*OAuth Access Token URL：\*\*アクセストークンを取得するURL を入力。</li>
<li>（オプション）\*\*OAuth Refresh Token URL：\*\*OAuth トークンを更新するURL を入力。</li></ul>

アプリケーションのOAuth クライアントId およびクライアントシークレットを取得するには：

<ol><li>[Azure ポータル](https://portal.azure.com)にログインします。</li>
<li>左ナビゲーションペインで**すべてのサービス**を選択します。次に**アプリの登録**を検索し選択します。</li>
<li>**新規登録**をクリックします。</li>
<li>アプリケーションの名前を入力して**任意のAzure AD ディレクトリ - マルチテナント**を選択します。</li>
<li>アプリケーションを作成したら、**概要**セクションに表示されるアプリケーション (クライアント) ID の値をコピーします。この値をOAuth クライアントId として使用します。</li>
<li>**証明書とシークレット**セクションに移動して、アプリケーションの**新しいクライアント シークレット**を選択します。</li>
<li>有効期間を指定してクライアントシークレットを保存します。保存するとキーの値が表示されます。</li>
<li>値は一度しか表示されないので、コピーしておきます。この値をOAuth クライアントシークレットとして使用します。</li>
<li>**認証**タブで、必ず**アクセストークン (暗黙的なフローに使用)** を選択します。</li></ol>

### Azure Service Principal Certificate

Azure サービスプリンシパルとクライアント証明書で接続するには、次のプロパティを設定します：

<ul><li>\*\*Auth Scheme：\*\***AzureServicePrincipalCert** を選択。</li>
<li>\*\*Azure Tenant：\*\*接続するMicrosoft Online テナントを入力。</li>
<li>\*\*OAuth JWT Cert：\*\*Java web token（JWT）証明書ストアを入力。</li>
<li>**OAuth JWT Cert Type：**JWT 証明書を格納するキーストアの種類を入力。デフォルトの種類は**PEMKEY\_BLOB** です。</li>
<li>\*\*OAuth Client Id：\*\*OAuth 認証サーバーにアプリケーションを登録した際に割り当てられたクライアントId を入力。</li>
<li>（オプション）\*\*Scope：\*\*アプリケーションへのアクセス範囲を入力。</li>
<li>（オプション）\*\*OAuth Authorization URL：\*\*OAuth サービスのOAuth 認可URL を入力。</li>
<li>（オプション）\*\*OAuth Access Token URL：\*\*アクセストークンを取得するURL を入力。</li>
<li>（オプション）\*\*OAuth Refresh Token URL：\*\*OAuth トークンを更新するURL を入力。</li>
<li>（オプション）\*\*OAuth JWT Cert Password：\*\*OAuth JWT 証明書のパスワードを入力。</li>
<li>（オプション）\*\*OAuth JWT Cert Subject：\*\*OAuth JWT 証明書のサブジェクトを入力。</li></ul>

アプリケーションのOAuth 証明書を取得するには：

<ol><li>[Azure ポータル](https://portal.azure.com)にログインします。</li>
<li>左ナビゲーションペインで**すべてのサービス**を選択します。次に**アプリの登録**を検索し選択します。</li>
<li>**新規登録**をクリックします。</li>
<li>アプリケーションの名前を入力して**任意のAzure AD ディレクトリ - マルチテナント**を選択します。</li>
<li>アプリケーションを作成したら、**概要**セクションに表示されるアプリケーション (クライアント) ID の値をコピーします。この値をOAuth クライアントId として使用します。</li>
<li>**証明書とシークレット**セクションに移動して**証明書のアップロード**を選択します。次に、ローカルマシンからアップロードする証明書を選択します。</li>
<li>有効期間を指定してクライアントシークレットを保存します。保存するとキーの値が表示されます。</li>
<li>値は一度しか表示されないので、コピーしておきます。この値をOAuth クライアントシークレットとして使用します。</li>
<li>**認証**タブで、必ず**アクセストークン (暗黙的なフローに使用)** を選択します。</li></ol>

### Azure Access Key

Azure のアクセスキーで接続するには、次のプロパティを設定します：

<ul><li>\*\*Auth Scheme：\*\***Access Key** を選択。</li>
<li>\*\*Azure Access Key：\*\*ストレージアカウントに関連付けられているアクセスキーを入力。</li></ul>

アクセスキーを取得するには：

<ol><li>[Azure ポータル](https://portal.azure.com/)にルートアカウントの資格情報を使用してサインインします。</li>
<li>**ストレージ アカウント**をクリックして、使用するストレージアカウントを選択します。</li>
<li>**設定**の**アクセス キー**をクリックします。ページ上にストレージ アカウント名とキーが表示されます。</li></ol>

### Azure Shared Access Signature

Azure の共有アクセス署名で接続するには、次のプロパティを設定します：

<ul><li>\*\*Auth Scheme：\*\***AzureStorageSAS** を選択。</li>
<li>\*\*Azure Shared Access Signature：\*\*ストレージアカウントに関連付けられている共有アクセス署名を入力。</li></ul>

Azure 共有アクセス署名を作成するには：

<ol><li>[Azure ポータル](https://portal.azure.com)にルートアカウントの資格情報を使用してサインインします。</li>
<li>**ストレージ アカウント**をクリックして、使用するストレージアカウントを選択します。</li>
<li>**設定**の**Shared Access Signature** をクリックします。</li>
<li>アクセスポリシーとトークンの有効期限を設定します。</li>
<li>**SAS の生成**をクリックし、生成されたトークンをコピーします。</li></ol>

## 接続を完了する

To complete your connection:

1. Specify the following properties:

   **For the CSV file format:**

   * **FMT:** Enter the format that you want to use to parse all text files. The default format is **CsvDelimited**.
   * **Aggregate Files:** Specify whether you want to aggregate all the files that are located in the URI directory and that have the same schema into a single table named AggregatedFiles. The default option is **False**.
   * **Include Column Headers:** Specify whether you want to obtain column headers from the first lines of the specified files. The default option is **True**.

   **For the Avro and Parquet file formats:**

   * **Data Model:** Select the data model that you want to use to parse documents for your format and to generate the database metadata. The default data model is **Document**.
   * **Aggregate Files:** Specify whether you want to aggregate all the files that are located in the URI directory and that have the same schema into a single table named AggregatedFiles. The default option is **False**.
2. Define advanced connection settings on the **Advanced** tab. (In most cases, though, you should not need these settings.)
3. If you authenticate with AzureAD, click **Connect to Azure Data Lake Storage** to connect to your Azure Data Lake Storage account.
4. Click **Create & Test** to create your connection.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.