Requirements
To follow the steps in this guide, you’ll need:- An existing database connection in Omni
- Connection Admin permissions for the connection you want to connect to dbt
- Permissions in Azure DevOps that allow you to add deploy keys
Configure SSH authentication
Retrieve the dbt repository's SSH URL
- In your browser, navigate to the Azure DevOps repository you want to connect to Omni.
- Click the Clone button near the top right corner of the page.
- Click the option to display the repository’s URL.
Create the dbt connection in Omni
- In Omni, navigate to Settings > Connections.
- Click the connection you want to use.
- Click the dbt tab.
- Fill in the following fields:
- Authentication Method - Select SSH (Deploy Key) from the dropdown.
- Git SSH URL - Enter the SSH URL you retrieved in step 1 of this guide
- Git Branch - Enter the name of the default branch for the repository. This is usually
mainormaster. - Folder - If your repository contains multiple dbt projects, enter the path to the folder that contains the dbt project you want to connect.
- Enable Virtual Schemas - Enables the use of virtual schemas, which require additional setup. See Working with dbt virtual schemas for instructions.
- Enable dbt Semantic Layer - Check this box to enable the dbt Semantic Layer integration. When enabled, Omni will use the dbt Semantic Layer to pull in metrics and dimensions defined in your dbt project.
- Auto-generate primary keys and relationships from dbt constraints - Check this box to allow Omni to generate primary keys and relationships from native dbt constraints.
- dbt Version - When set to Auto (default), Omni will auto-detect the dbt version from the
require-dbt-versionpin indbt_project.yml. If a usable pin isn’t found, Omni defaults to the latest supported version of dbt. Otherwise, you can select a specific version from the list of versions that Omni supports.
- Click Save.
Add the deploy key to your repository
If the repository is already connected to Omni through the Git integration, skip this step. Omni will use the existing deploy key.
- Browse to the Azure DevOps web portal (ex:
https://dev.azure.com/<your-org-name>/). - Click the User settings icon next to your avatar in the top right corner of the page.
- Click SSH public keys.
- On the page that displays, click + New Key.
- In the Add New SSH Key panel that displays, fill in the following:
- Name - Enter a descriptive name, such as Omni Snowflake Model
- Public Key Data -
- Click Add.
Next steps
After you successfully connect your dbt repository, you need to:- Configure your production dbt environment
- Sync dbt with Omni
- Set up Virtual Schemas. This isn’t required to use the dbt integration, but enabling Virtual Schemas before you start building in Omni avoids migrating later.

