Configuring an ADF Linked Service Connection for Snowflake
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 underlying Azure Data Factory property names, with the connection column that carries each value named alongside. The exact labels shown in the BimlFlex Connection Editor may differ.
After selecting Snowflake from the Linked Service Type dropdown, the form required for creating a Snowflake Linked Service will appear.
The Snowflake Linked Service Type is offered for connections whose System Type is Snowflake Data Warehouse.
The Snowflake V2 connector is the successor to the Snowflake 1.0 connector. A connection that uses the Snowflake 1.0 connector reports message CON_21005014. To resolve it, select Snowflake from the Linked Service Type dropdown and complete the fields described on this page.
The Snowflake 1.0 connector is separate from the Version field on this page, which selects version 1.0 or 1.1 of the Snowflake V2 connector.
Choosing an Authentication Method
| Method | Credentials | Additional Settings |
|---|---|---|
| Basic | User Name and Password | None |
| KeyPair | User Name and Private Key, with a Pass Phrase when the private key is encrypted | None |
Recommendation: Store the Password, the Private Key and the Pass Phrase in Azure Key Vault rather than entering them as plaintext.
Complete Example: Basic Authentication with Azure Key Vault
| Field | Example Value |
|---|---|
| Connect via Integration Runtime | AutoResolveIntegrationRuntime |
| Account | contoso-analytics01 |
| Warehouse | BFX_WH |
| Database Name | BFX_DW |
| Role Name | BFX_LOADER |
| User Name | bfx_service_user |
| Authentication Type | Basic |
| Azure Key Vault Linked Service | bfx-kv |
| Secret Name (for Password) | BFX-SF-Password |
| Version | 1.1 |
Required Fields
Common Required Fields
Most required fields for a Snowflake Linked Service connection are the same for every Authentication Type. The credential fields depend on the Authentication Type used.
These common required fields are:
Authentication Type Dependent Required Fields
The remaining field requirements are dependent on Authentication Type.
Required fields for Basic:
- Password (or Azure Key Vault)
Required fields for KeyPair:
- Private Key (or Azure Key Vault)
- Pass Phrase (or Azure Key Vault), when the private key is encrypted
Optional fields are:
Connect via Integration Runtime
Connect via Integration Runtime names the integration runtime for a Snowflake Linked Service connection.
The default value is AutoResolveIntegrationRuntime.
To use another runtime, select it from the dropdown or choose + New to add one.
When a custom value is saved in the linked service form, it will be added to the custom integration runtimes.
The custom values that appear in this dropdown can be maintained in Settings under Azure - AzureIntegrationRuntime.
The runtime is stored in the connection's LS_ConnectVia_IntegrationRuntime column. Any value other than AutoResolveIntegrationRuntime is written to the linked service as the runtime it connects through.
Account
The Account identifies the Snowflake account the connector signs in to, given as the account name along with its organization (for example, contoso-analytics01).
It is stored in the connection's LS_Account column and maps to the ADF accountIdentifier property.
Warehouse
The Warehouse is the default virtual warehouse used for the session after connecting (for example, BFX_WH).
It is stored in the connection's LS_Warehouse column and maps to the ADF warehouse property.
Database Name
The Database Name is the default database used for the session after connecting (for example, BFX_DW).
It is stored in the connection's LS_Db column and maps to the ADF database property.
Role Name
The Role Name is the default security role used for the session after connecting (for example, BFX_LOADER).
It is stored in the connection's LS_Role column and maps to the ADF role property.
It is optional and is written to the linked service only when it is set.
Host
The Host is the host name of the Snowflake account (for example, contoso.snowflakecomputing.com).
It is stored in the connection's LS_Host column and maps to the ADF host property.
It is optional and is written to the linked service only when it is set.
User Name
The User Name is the login name of the Snowflake user, and it is required for both Authentication Types.
It is stored in the connection's LS_Username column and maps to the ADF user property.
Authentication Type
The Snowflake Linked Service connection can use Basic or KeyPair authentication.
The selected value is stored in the connection's LS_AuthenticationType column and maps to the ADF authenticationType property.
The Connection Editor lists KeyPair as Key pair. When no value is set, Basic is written to the linked service.
When using Basic, a Password is required.
For KeyPair, a Private Key is required, along with a Pass Phrase when the private key is encrypted.
Basic
Basic authentication signs in to Snowflake with the User Name and a Password.
The Password field accepts the password as plaintext in the LS_Password column, or an Azure Key Vault reference held in the LS_PasswordKVS_ fields that resolves to the password at runtime.
It maps to the ADF password property.
A connection in the Basic form carries no Private Key or Pass Phrase in the generated linked service.
It is suggested that Azure Key Vault be used in place of manually entering the Password.
KeyPair
KeyPair authentication signs in to Snowflake with the User Name and the private key of a key pair configured for that user in Snowflake.
The Private Key field accepts the private key content as plaintext in the LS_PrivateKeyContent column, or an Azure Key Vault reference held in the LS_PrivateKeyContentKVS_ fields that resolves to the private key at runtime.
It maps to the ADF privateKey property.
The Pass Phrase decrypts the private key when the key is encrypted.
The Pass Phrase field accepts the pass phrase as plaintext in the LS_PassPhrase column, or an Azure Key Vault reference held in the LS_PassPhraseKVS_ fields that resolves to the pass phrase at runtime.
It maps to the ADF privateKeyPassphrase property.
A connection in the KeyPair form carries no Password in the generated linked service.
It is suggested that Azure Key Vault be used in place of manually entering the Private Key and the Pass Phrase.
Version
The Version selects the version of the Snowflake V2 connector.
The Connection Editor offers -- None --, 1.0 and 1.1, and fills in 1.0 when a connection without a Version is opened.
Select -- None -- to leave the Version blank.
The value is stored in the connection's LS_Version column and maps to the ADF version property.
When the Version is blank, the generated linked service carries no version property.
Azure Data Factory requires the version property for version 1.1, so set 1.1 to use that version.
The differences between the two versions are listed in the Microsoft connector documentation linked at the end of this page.
Use UTC Timestamps
The Connection Editor shows a Use UTC Timestamps checkbox, stored in the connection's LS_UseUtcTimestamps column.
The value of this column is not written to the generated linked service.
To set the ADF UseUtcTimestamps connection property, add it under Additional Connection Properties (for example, {"UseUtcTimestamps": "true"}).
When set to true, all Snowflake timestamp types are returned in UTC.
Additional Connection Properties
Additional connection properties are stored in the connection's LS_AdditionalConnectionProperties column as a JSON object of property names and values (for example, {"UseUtcTimestamps": "true", "schema": "PUBLIC"}).
Each property in the object is written to the linked service as an additional connection property.
The first letter of each property name is written in lower case, so UseUtcTimestamps is written to the linked service as useUtcTimestamps.
The Snowflake additional connection properties UseUtcTimestamps and schema are supplied this way.
Azure Data Factory Linked Service Additional Information
For additional information on ADF Snowflake Linked Service and its connection requirements see the Azure Data Factory Snowflake Connector documentation.
For additional information on Snowflake and its connection requirements see the Snowflake User Guide.