Unity Catalog Catalog Integration
Setup, verify, or troubleshoot a Snowflake catalog integration for Databricks Unity Catalog.
Intent Routing (FIRST)
Ask the user:
What would you like to do?
A: Create a new catalog integration for Unity Catalog
→ Setup Snowflake to connect to Databricks Unity Catalog
B: Verify an existing catalog integration
→ Test connection and list namespaces/tables
C: Troubleshoot a catalog integration
→ Diagnose and fix connection issues
Route based on response:
- A (Create) → Load
setup/SKILL.mdthen follow Create Workflow - B (Verify) → Load
verify/SKILL.mdthen follow Verify Workflow - C (Troubleshoot) → Load
references/troubleshooting.mdthen follow Troubleshoot Workflow
Create Workflow
⚠️ REQUIRED: Load
setup/SKILL.mdFIRST before proceeding with this workflow.
Create a new catalog integration to connect Snowflake to Unity Catalog.
Step 1: Prerequisites
Follow setup/SKILL.md to collect:
Collect one-by-one:
- Confirm Unity Catalog setup exists
- Authentication method (OAuth vs Bearer token/PAT)
- Access delegation mode
- Connectivity type
- Databricks workspace URL
- Unity Catalog name
- Catalog namespace (optional)
- OAuth credentials OR Bearer token
- OAuth allowed scopes (if OAuth)
- Integration name
⚠️ STOP: Confirm prerequisites before proceeding
Step 2: Create Integration
Load create/SKILL.md and follow its workflow:
- If PrivateLink: Provision PrivateLink endpoint (AWS or Azure), verify status, register/approve endpoint in Databricks
- Generate CREATE CATALOG INTEGRATION SQL
- ⚠️ STOP: Review SQL with user
- Execute creation
Step 3: Verify
→ Continue to Verify Workflow
Verify Workflow
⚠️ REQUIRED: Load
verify/SKILL.mdFIRST before proceeding with this workflow.
Verify an existing catalog integration is working correctly.
Step V1: Get Integration Name
Ask: "What is the name of your catalog integration?"
If user doesn't know:
SHOW CATALOG INTEGRATIONS;
Step V2: Check Integration Status
Follow verify/SKILL.md which loads the shared verification workflow.
Run verification checks:
-- Check integration exists and is enabled
SHOW CATALOG INTEGRATIONS LIKE '<integration_name>';
-- Verify connection
SELECT SYSTEM$VERIFY_CATALOG_INTEGRATION('<integration_name>');
-- List namespaces (Unity Catalog schemas)
SELECT SYSTEM$LIST_NAMESPACES_FROM_CATALOG('<integration_name>');
-- List tables in a namespace
SELECT SYSTEM$LIST_ICEBERG_TABLES_FROM_CATALOG('<integration_name>', '<namespace>');
Step V3: Report Results
If all checks pass:
✅ Integration verified successfully
- Status: ENABLED
- Connection: Working
- Namespaces: <count> discovered
- Tables: Accessible
If any check fails → Continue to Troubleshoot Workflow
Step V4: Next Steps
If verification succeeded:
Load shared/next-steps/SKILL.md (path: ../shared/next-steps/SKILL.md)
Guide user through options for accessing catalog tables:
- Option A: Create individual Iceberg tables
- Option B: Create catalog-linked database (recommended)
Troubleshoot Workflow
⚠️ REQUIRED: Load
references/troubleshooting.mdto have error patterns and solutions available.
Diagnose and fix issues with an existing catalog integration.
Step T1: Get Integration Name
Ask: "What is the name of your catalog integration?"
Step T2: Gather Error Information
Ask: "What error or issue are you experiencing?"
Common symptoms:
- Integration creation failed
- Verification returns error
- Cannot list namespaces
- Cannot see tables
- OAuth/authentication errors
- Token expired
Step T3: Diagnose
Use error patterns from references/troubleshooting.md to diagnose.
Run diagnostics:
-- Check integration details
DESC CATALOG INTEGRATION <integration_name>;
-- Test connection
SELECT SYSTEM$VERIFY_CATALOG_INTEGRATION('<integration_name>');
Step T4: Match Error Pattern
Common issues and solutions in references/troubleshooting.md:
- OAuth authentication failures
- Bearer token (PAT) failures
- Unity Catalog privilege issues
- Catalog not found
- Network connectivity issues
- External volume issues
- Namespace/table discovery issues
- Table query failures
- PrivateLink endpoint not available
- PrivateLink endpoint limit exceeded
- PrivateLink endpoint already exists (includes hostname mismatch — use
SYSTEM$SET_PRIVATELINK_ENDPOINT_HOSTNAME) - PrivateLink endpoint not registered in Databricks (AWS)
- PrivateLink endpoint not approved in Azure Portal (Azure)
⚠️ STOP: Present diagnosis and wait for user direction before applying fixes.
Scope
This skill focuses on Snowflake-side setup:
- ✅ Creating catalog integrations for Unity Catalog (public and PrivateLink)
- ✅ PrivateLink endpoint provisioning and verification (AWS and Azure)
- ✅ PrivateLink endpoint registration (AWS) / approval (Azure) guidance
- ✅ OAuth and Bearer token authentication configuration
- ✅ Databricks service principal setup guidance
- ✅ Verification
- ✅ Troubleshooting
Out of scope (separate resources):
- ❌ Unity Catalog setup in Databricks → Unity Catalog Documentation
- ❌ External volume creation
- ❌ Creating tables or catalog-linked databases (use shared
next-stepsskill)
Quick Reference
Catalog Integration SQL (OAuth, Public):
CREATE OR REPLACE CATALOG INTEGRATION <name>
CATALOG_SOURCE = ICEBERG_REST
TABLE_FORMAT = ICEBERG
REST_CONFIG = (
CATALOG_URI = 'https://<workspace>.cloud.databricks.com/api/2.1/unity-catalog/iceberg-rest'
CATALOG_NAME = '<catalog_name>'
ACCESS_DELEGATION_MODE = <VENDED_CREDENTIALS|EXTERNAL_VOLUME_CREDENTIALS>
)
REST_AUTHENTICATION = (
TYPE = OAUTH
OAUTH_CLIENT_ID = '<client_id>'
OAUTH_CLIENT_SECRET = '<client_secret>'
OAUTH_TOKEN_URI = 'https://<workspace>.cloud.databricks.com/oidc/v1/token'
OAUTH_ALLOWED_SCOPES = ('all-apis')
)
ENABLED = TRUE;
Catalog Integration SQL (Bearer Token, Public):
CREATE OR REPLACE CATALOG INTEGRATION <name>
CATALOG_SOURCE = ICEBERG_REST
TABLE_FORMAT = ICEBERG
REST_CONFIG = (
CATALOG_URI = 'https://<workspace-host>/api/2.1/unity-catalog/iceberg-rest'
CATALOG_NAME = '<catalog_name>'
ACCESS_DELEGATION_MODE = <VENDED_CREDENTIALS|EXTERNAL_VOLUME_CREDENTIALS>
)
REST_AUTHENTICATION = (
TYPE = BEARER
BEARER_TOKEN = '<personal_access_token>'
)
ENABLED = TRUE;
Catalog Integration SQL (PrivateLink — OAuth):
-- Step 1: Check if endpoint already exists (skip provisioning if available)
SELECT SYSTEM$GET_PRIVATELINK_ENDPOINTS_INFO();
-- Alternative: SELECT * FROM SNOWFLAKE.ACCOUNT_USAGE.OUTBOUND_PRIVATELINK_ENDPOINTS;
-- Step 2: Provision PrivateLink endpoint (one-time, skip if already exists)
USE ROLE ACCOUNTADMIN;
-- For AWS (consider using *.cloud.databricks.com as hostname to cover multiple workspaces in the same region):
SELECT SYSTEM$PROVISION_PRIVATELINK_ENDPOINT(
'<vpc_endpoint_service_id>',
'<databricks_workspace_host_name>'
);
-- For Azure (consider using *.*.azuredatabricks.net as hostname to cover multiple workspaces in the same region):
SELECT SYSTEM$PROVISION_PRIVATELINK_ENDPOINT(
'<databricks_workspace_resource_id>',
'<databricks_workspace_host_name>',
'databricks_ui_api'
);
-- Step 3: Verify endpoint is available
SELECT SYSTEM$GET_PRIVATELINK_ENDPOINTS_INFO();
-- Alternative: SELECT * FROM SNOWFLAKE.ACCOUNT_USAGE.OUTBOUND_PRIVATELINK_ENDPOINTS;
-- Step 4: Register/approve endpoint in Databricks (see create/SKILL.md)
-- Step 5: Create catalog integration (AWS PrivateLink + OAuth example)
CREATE OR REPLACE CATALOG INTEGRATION <name>
CATALOG_SOURCE = ICEBERG_REST
TABLE_FORMAT = ICEBERG
CATALOG_NAMESPACE = '<namespace>' -- Optional
REST_CONFIG = (
CATALOG_API_TYPE = 'PRIVATE'
CATALOG_URI = '<databricks_workspace_url>/api/2.1/unity-catalog/iceberg-rest'
-- e.g. https://dbc-a1a11111-1a11.cloud.databricks.com/api/2.1/unity-catalog/iceberg-rest
CATALOG_NAME = '<unity_catalog_name>'
)
REST_AUTHENTICATION = (
TYPE = OAUTH
OAUTH_TOKEN_URI = '<databricks_workspace_url>/oidc/v1/token'
OAUTH_CLIENT_ID = '<your_databricks_client_id>'
OAUTH_CLIENT_SECRET = '<your_databricks_client_secret>'
OAUTH_ALLOWED_SCOPES = ('all-apis', 'sql')
)
ENABLED = TRUE;
-- Step 5 (alt): Create catalog integration (Azure PrivateLink + OAuth example)
CREATE OR REPLACE CATALOG INTEGRATION <name>
CATALOG_SOURCE = ICEBERG_REST
TABLE_FORMAT = ICEBERG
CATALOG_NAMESPACE = '<namespace>' -- Optional
REST_CONFIG = (
CATALOG_API_TYPE = 'PRIVATE'
CATALOG_URI = '<databricks_per_workspace_url>/api/2.1/unity-catalog/iceberg-rest'
-- e.g. https://adb-1234567890123456.12.azuredatabricks.net/api/2.1/unity-catalog/iceberg-rest
CATALOG_NAME = '<unity_catalog_name>'
)
REST_AUTHENTICATION = (
TYPE = OAUTH
OAUTH_TOKEN_URI = '<databricks_per_workspace_url>/oidc/v1/token'
OAUTH_CLIENT_ID = '<your_databricks_client_id>'
OAUTH_CLIENT_SECRET = '<your_databricks_client_secret>'
OAUTH_ALLOWED_SCOPES = ('all-apis', 'sql')
)
ENABLED = TRUE;
PrivateLink notes:
- Requires Business Critical Edition (or higher). To inquire about upgrading, please contact Snowflake Support.
CATALOG_API_TYPE = 'PRIVATE'tells Snowflake to route via PrivateLinkCATALOG_URIuses the public workspace URL — Snowflake routes over PrivateLink internally- AWS uses
<databricks_workspace_url>(e.g.https://dbc-...cloud.databricks.com); Azure uses<databricks_per_workspace_url>(e.g.https://adb-...azuredatabricks.net)ACCESS_DELEGATION_MODEselects how Snowflake accesses storage —VENDED_CREDENTIALS(catalog vends temporary credentials) orEXTERNAL_VOLUME_CREDENTIALS(external volume) — not a connectivity setting, and independent of catalog-server PrivateLink (CATALOG_API_TYPE). Both modes can use outbound PrivateLink to storage: external volumes already support it; for vended credentials, setDEFAULT_STORAGE_CONFIG = (USE_PRIVATELINK_ENDPOINT = TRUE). For the combined example, see the "Vended credentials with private connectivity to storage" section below.- AWS: Register Snowflake VPC endpoint in Databricks account console
- Azure: Approve private endpoint connection in Azure Portal → Databricks workspace → Networking
Diagnostic Commands:
SHOW CATALOG INTEGRATIONS LIKE '<name>';
DESC CATALOG INTEGRATION <name>;
SELECT SYSTEM$VERIFY_CATALOG_INTEGRATION('<name>');
SELECT SYSTEM$LIST_NAMESPACES_FROM_CATALOG('<name>');
SELECT SYSTEM$LIST_ICEBERG_TABLES_FROM_CATALOG('<name>', '<namespace>');
Vended credentials with private connectivity to storage
Any Unity Catalog integration with ACCESS_DELEGATION_MODE = VENDED_CREDENTIALS can route Snowflake-to-storage traffic through PrivateLink by setting DEFAULT_STORAGE_CONFIG = (USE_PRIVATELINK_ENDPOINT = TRUE). This setting is independent of catalog-server PrivateLink (CATALOG_API_TYPE = PRIVATE); you can enable either or both.
Step 1: Prepare catalog-side private storage access
Before routing storage traffic through PrivateLink, ensure Unity Catalog itself can reach the storage bucket through private connectivity:
- Classic compute (customer-managed VPC/VNet):
- AWS: Configure an S3 Gateway or S3 Interface VPC endpoint in the Databricks workspace VPC. Reference: Databricks PrivateLink for classic compute (AWS).
- Azure: Configure VNet
Microsoft.Storageservice endpoints on the workspace subnet. Reference: Azure Databricks Private Link.
- Serverless compute (Databricks-managed networking):
- AWS: Allowlist Databricks control-plane VPC IDs (via
aws:SourceVpc) on your S3 bucket policy. Reference: Databricks IP addresses and domains. - Azure: Add Databricks control-plane NAT IPs per region to your storage account firewall rules. Reference: Databricks IP addresses and domains.
- AWS: Allowlist Databricks control-plane VPC IDs (via
For the cross-vendor steps (block public storage access, provision Snowflake-side storage endpoint, allowlist, verify), see shared/vended-credentials-private-storage/SKILL.md.
CREATE CATALOG INTEGRATION example (catalog PrivateLink + vended credentials + storage PrivateLink)
USE ROLE ACCOUNTADMIN;
CREATE OR REPLACE CATALOG INTEGRATION <integration_name>
CATALOG_SOURCE = ICEBERG_REST
TABLE_FORMAT = ICEBERG
REST_CONFIG = (
CATALOG_API_TYPE = PRIVATE
CATALOG_URI = '<databricks_workspace_url>/api/2.1/unity-catalog/iceberg-rest'
CATALOG_NAME = '<catalog_name>'
ACCESS_DELEGATION_MODE = VENDED_CREDENTIALS
)
REST_AUTHENTICATION = (
TYPE = OAUTH
OAUTH_TOKEN_URI = '<databricks_workspace_url>/oidc/v1/token'
OAUTH_CLIENT_ID = '<your_databricks_client_id>'
OAUTH_CLIENT_SECRET = '<your_databricks_client_secret>'
OAUTH_ALLOWED_SCOPES = ('all-apis', 'sql')
)
DEFAULT_STORAGE_CONFIG = (USE_PRIVATELINK_ENDPOINT = TRUE)
ENABLED = TRUE;
Bearer token: Also supported — replace the
REST_AUTHENTICATIONblock withTYPE = BEARER/BEARER_TOKEN = '<token>'.
Enable on an existing integration
⚠️ MANDATORY CHECKPOINT: This
ALTERmodifies a live catalog integration. Present it to the user and wait for explicit approval before executing.
ALTER CATALOG INTEGRATION <name> SET DEFAULT_STORAGE_CONFIG = (USE_PRIVATELINK_ENDPOINT = TRUE);
Verify
DESC CATALOG INTEGRATION <name>→default_storage_configrow should containUSE_PRIVATELINK_ENDPOINT=true.SELECT SYSTEM$GET_PRIVATELINK_ENDPOINTS_INFO()→ the storage endpoint should show"status": "available"(AWS) or"status": "APPROVED"(Azure).SELECT * FROM <database>.<schema>.<iceberg_table> LIMIT 1→ end-to-end data probe.
Success Criteria
- ✅ Integration shows
ENABLED=TRUE - ✅
SYSTEM$VERIFY_CATALOG_INTEGRATION()returns success - ✅ Namespaces discoverable
- ✅ Tables visible
Documentation
- Configure Catalog Integration for Unity Catalog
- Configure Catalog Integration with Outbound Private Connectivity (PrivateLink)
- Snowflake Iceberg Tables
- Unity Catalog Documentation
- Databricks PrivateLink (AWS)
- Databricks PrivateLink VPC Endpoint Service IDs by Region (AWS)
- Azure Databricks Private Link