Microsoft Azure Data Explorer¶
Azure Data Explorer connection type enables Azure Data Explorer (ADX) integrations in Airflow.
Authenticating to Azure Data Explorer¶
There are three ways to connect to Azure Data Explorer using Airflow.
Use AAD application certificate (i.e. use "AAD_APP" or "AAD_APP_CERT" as the Authentication Method in the Airflow connection).
Use AAD username and password (i.e. use "AAD_CREDS" as the Authentication Method in the Airflow connection).
Use a AAD device code (i.e. use "AAD_DEVICE" as the Authentication Method in the Airflow connection).
Only one authorization method can be used at a time. If you need to manage multiple credentials or keys then you should configure multiple connections.
Default Connection IDs¶
All hooks and operators related to Microsoft Azure Data Explorer use
azure_data_explorer_default by default.
Configuring the Connection¶
- Data Explorer Cluster URL
Specify the Data Explorer cluster URL. Needed for all authentication methods.
- Authentication Method
Specify authentication method. Available authentication methods are:
AAD_APP: Authentication with AAD application certificate. A Tenant ID is required when using this method. Provide application ID and application key through Username and Password parameters.
AAD_APP_CERT: Authentication with AAD application certificate. Tenant ID, Application PEM Certificate, and Application Certificate Thumbprint are required when using this method.
AAD_CREDS: Authentication with AAD username and password. A Tenant ID is required when using this method. Username and Password parameters are used for authentication with AAD.
AAD_DEVICE: Authenticate with AAD device code. Please note that if you choose this option, you'll need to authenticate for every new instance that is initialized. It is highly recommended to create one instance and use it for all queries.
- Username (optional)
Specify the username used for data explorer. Needed for with AAD_APP, AAD_APP_CERT, and AAD_CREDS authentication methods.
- Password (optional)
Specify the password used for data explorer. Needed for with AAD_APP, and AAD_CREDS authentication methods.
- Tenant ID (optional)
Specify AAD tenant. Needed for AAD_APP, AAD_APP_CERT, and AAD_CREDS.
- Application PEM Certificate (optional)
Specify the certificate. Needed for AAD_APP_CERT authentication method.
- Application Certificate Thumbprint (optional)
Specify the thumbprint needed for use with AAD_APP_CERT authentication method.
When specifying the connection in environment variable you should specify it using URI syntax.
Note that all components of the URI should be URL-encoded.