Configuring an ADF Linked Service Connection for Teradata
For information on how to enable a connection for use with linked services, see Configuring a Linked Service Connection.
Field labels in this walkthrough follow the BimlFlex Connection Editor, with the connection column that carries each value and the Azure Data Factory property it maps to named alongside.
After selecting Teradata from the Linked Service Type dropdown, the form required for creating a Teradata Linked Service will appear.
BimlFlex writes the Teradata linked service at version 2.0, with separate server, authentication, user name and password properties.
Source Only Connector
A Teradata connection is used as a source. It is not available as a target.
The Teradata Linked Service Type is offered on connections that use the Teradata System Type.
The Copy activity reads each source object with a source query. The dataset names the Teradata database and table of the object, with the object's schema written as the database.
In Azure Data Factory, the Teradata connector supports the Copy activity as a source and the Lookup activity, and offers no sink.
Choosing an Authentication Method
| Method | Authentication Method Value | Authentication Type Written | Credentials |
|---|---|---|---|
| Basic | Basic Authentication | Basic | User Name and Password |
| Windows | Windows Authentication | Windows | User Name (a Windows account, for example EXAMPLE\bfx-reader) and Password |
| LDAP | LDAP | LDAP | User Name and Password of the directory account |
Recommendation: Store the Password in Azure Key Vault rather than entering it as plaintext.
Complete Example: Basic Authentication with Azure Key Vault
The values below are made up for illustration.
| Field | Example Value |
|---|---|
| Connect via Integration Runtime | AutoResolveIntegrationRuntime |
| Server Name | example-td01 |
| Authentication Method | Basic Authentication |
| User Name | bfx-reader |
| AKV Linked Service (Password, Azure Key Vault tab) | bfx-kv |
| Secret Name (Password, Azure Key Vault tab) | BFX-SRC-TeradataPassword |
From these values the build writes a linked service with version set to 2.0, the server, authenticationType set to Basic, the username, and a password that references the secret in Azure Key Vault.
Required Fields
These fields are required for every Teradata Linked Service connection:
- Connect via Integration Runtime
- Server Name
- Authentication Method
- User Name
- Password (or Azure Key Vault)
Connect via Integration Runtime
Connect via Integration Runtime names the integration runtime for a Teradata Linked Service connection.
The default value is AutoResolveIntegrationRuntime.
To use another runtime, select it from the dropdown or choose + New to add one.
The custom values that appear in this dropdown can be maintained in Settings under Azure, in the AzureIntegrationRuntime setting.
The value is stored in the connection's LS_ConnectVia_IntegrationRuntime column and maps to the ADF connectVia property.
When the value is AutoResolveIntegrationRuntime, no connectVia property is written and the default Azure integration runtime is used.
On a self-hosted integration runtime with a version below 5.56.9318.1, install the Teradata .NET Data Provider version 20.00.03.00 or above on the runtime machine. Self-hosted integration runtime version 5.56.9318.1 and above carry a built-in driver, and no driver install is needed.
Server Name
The Server Name is the name or network address of the Teradata server (for example, example-td01).
It is on the Connection String tab of the form, is stored in the connection's LS_Server column, and maps to the ADF server property.
The Teradata connector at version 2.0 supports Teradata Vantage versions 17.0, 17.10, 17.20 and 20.0.
The SSL mode, the ports, data encryption, the character set and the response buffer size are set as the Connection Settings section describes.
Authentication Method
The Authentication Method dropdown offers Basic Authentication and Windows Authentication.
The selection is stored in the connection's LS_AuthenticationMethod column.
The build writes the matching value to the ADF authenticationType property: Basic for Basic Authentication and Windows for Windows Authentication.
The form hides the User Name and Password fields while Windows Authentication is selected, and the linked service still needs both. To set them, select Basic Authentication, enter the User Name and Password, and then select Windows Authentication. The values entered are kept when the connection is saved.
The dropdown offers no LDAP entry.
A connection whose LS_AuthenticationMethod column holds LDAP is written with the LDAP authentication type.
The build decides the authentication type in this order, matching names without regard to letter case:
- the
LS_AuthenticationTypecolumn when it is filled:Basic,WindowsorLDAP - else the
LS_AuthenticationMethodcolumn:Basic Authentication,Windows AuthenticationorLDAP - else
Basic, when both columns are blank
A filled value outside these names writes no authenticationType property, and the build reports a warning that names the connection and the value.
The linked service then fails validation, because it requires an authentication type.
User Name
The User Name is the Teradata user for Basic authentication, the Windows account for Windows authentication, or the directory account for LDAP authentication.
It is stored in the connection's LS_Username column and maps to the ADF username property.
A User Name is required for every authentication method.
With Windows Authentication selected the field is hidden, so enter it as the Authentication Method section describes.
Password
The Password field accepts the password as plaintext in the LS_Password column on the Password tab, or an Azure Key Vault reference on the Azure Key Vault tab that resolves to the password at runtime.
The Azure Key Vault reference is held in the LS_PasswordKVS_ fields: AKV Linked Service, Secret Name, and an optional Secret Version.
It is written when both the AKV Linked Service and the Secret Name are filled.
Either form maps to the ADF password property. Fill in one of the two forms.
It is suggested that Azure Key Vault be used in place of manually entering the Password.
Encrypted Credential
When the connection's LS_EncryptedCredential column is filled, its value is written to the ADF encryptedCredential property.
The Teradata form has no field for it, and a value held in the column is kept when the connection is saved.
Version
The Teradata form shows a Version dropdown that offers 2.0, and selects 2.0 when the stored value is empty.
The value is stored in the connection's LS_Version column.
The build reads the connection's LS_Version column and writes the ADF version property: 2.0 when the column is blank, and a stored value as it is stored.
Version 2.0 is the version Azure Data Factory deploys for Teradata. Version 1.0 is not deployable.
When LS_Version holds 1.0, the build reports an error that names the linked service and asks for Version 2.0. Set the column to 2.0 or clear it.
Version 2.0 maps Teradata data types as the Microsoft documentation lists for version 2.0, for example Date to Date, Time With Time Zone to String, and Timestamp With Time Zone to DateTimeOffset.
Connection Settings
A Teradata linked service at version 2.0 takes six optional connection settings.
Each setting is stored in the connection's Additional Settings (LS_AdditionalSettings) under the key in the table, and maps to the ADF property of the same name.
| Setting | Key and ADF Property | Values | Service Default |
|---|---|---|---|
| Ssl Mode | sslMode | Disable, Allow, Prefer, Require, Verify-CA or Verify-Full | Verify-Full |
| Port Number | portNumber | The port for connections that do not use HTTPS/TLS | 1025 |
| Https Port Number | httpsPortNumber | The port for HTTPS/TLS connections | 443 |
| Use Data Encryption | useDataEncryption | 1 encrypts all data passed between the driver and the database, and 0 encrypts the authentication information only. The setting is ignored for HTTPS/TLS connections. | 1 |
| Character Set | characterSet | The character set of the session, for example UTF8 | ASCII |
| Max Resp Size | maxRespSize | The size of the response buffer for SQL requests in bytes, from 4096 to 16775168 | 524288 |
A setting whose key is absent or empty is not written to the linked service, and the service default applies.
A filled setting is written as it is stored, except that the value 0 of Port Number, Https Port Number, Use Data Encryption or Max Resp Size is not written.
A Use Data Encryption of 0 therefore leaves the service default 1 in force, and all data passed between the driver and the database stays encrypted.
The Teradata form has no field for these settings, and the values held in Additional Settings are kept when the connection is saved.
Connection String
The form shows a Connection String tab with an Azure Key Vault tab beside it, and an Additional Connection String Properties field. A connection string entered on the connection is not written to the linked service, because the version 2.0 form carries no connection string. The same holds for a connection string held in Azure Key Vault and for Additional Connection String Properties.
Keep the Connection String tab selected. Selecting the Azure Key Vault tab beside it hides the Authentication Method, User Name and Password fields. Enter the Server Name on the Connection String tab, and keep the password on the Password field's Azure Key Vault tab.
Azure Data Factory Linked Service Additional Information
For additional information on ADF Teradata Linked Service and its connection requirements see the Azure Data Factory Teradata Connector documentation.