Microsoft Fabric HorizonDB: Setup, Pricing, OneLake & PostgreSQL Guide
Want to try the new PostgreSQL database inside Microsoft Fabric? This hands-on preview guide shows the creation path, working SQL, what mirroring really does, how to query Fabric data, and the limits that can stop a deployment.
Microsoft Fabric HorizonDB is a managed, serverless PostgreSQL database item announced in public preview at Ignite on November 17, 2026. To try it, use an eligible Fabric capacity and workspace, ask an admin to enable the preview, select + New item → HorizonDB database (preview), then run SQL through the PostgreSQL editor. Eligible tables can mirror asynchronously into OneLake for Power BI. Crucial limitation: in this preview, only the database creator’s Microsoft Entra identity can connect to PostgreSQL. Pricing is capacity-usage-based, but you should not invent a dollar-per-hour rate or assume paused storage is free.
Watch Microsoft Fabric HorizonDB explained
These two English-language videos cover Microsoft Fabric HorizonDB itself, not the separate Azure HorizonDB product. Start with the Ignite session for the one-PostgreSQL-endpoint architecture, or use the introduction for an overview of serverless PostgreSQL in Fabric.
One PostgreSQL endpoint for AI apps · THR881
Microsoft Ignite 2026 · Explore how Fabric HorizonDB connects transactional PostgreSQL and analytical data in Fabric. Useful for understanding architecture, operational queries and AI app scenarios.
Introducing Fabric HorizonDB: Serverless PostgreSQL
Product introduction · What the new Fabric-native PostgreSQL database is designed for, including applications and analytics. Continue with the written tutorial below for preview setup steps and restrictions.
These are topic-specific videos, supplied and playback-checked by a reader. We use their original YouTube thumbnails with built-in fallback posters. Video players are only created after you select Play. If a video is removed or embedding is disabled later, use its direct YouTube link or the written guide below.
Also useful: Microsoft Ignite BRK359 official session page (availability of its recording is not confirmed).
What are you trying to do?
Advertisements
What Fabric HorizonDB can—and cannot—do in public preview
The launch announcement describes an integrated application database, but the released preview imposes important restrictions. A developer expecting a normal multi-user production PostgreSQL server should understand these before committing work.
| Capability | As of November 23, 2026 |
|---|---|
| Database users | Only the creating Microsoft Entra identity can connect. Sharing the Fabric item does not allow another PostgreSQL user, service principal or managed identity to connect. |
| PostgreSQL roles and access | No customer superuser; creating login roles and managing per-table user grants are not supported in this preview. |
| Compute and engine | Platform-managed; users do not select/pin a PostgreSQL version or assume a fixed vCore size or capacity limit. |
| OneLake | Eligible data mirrors asynchronously; the read-only SQL analytics endpoint is a separate surface, not the transactional PostgreSQL database. |
| Extensions | Managed extensions including vector, pg_diskann, pg_textsearch, pg_fabric_fdw and azure_ai; availability and external service access vary by preview. |
| Production readiness | Backup, restore, networking, quotas, SLA and disaster-recovery features must be confirmed for your actual preview. Use synthetic data for evaluation. |
Based on Microsoft’s preview limitations and overview. These restrictions may change.
How to create Microsoft Fabric HorizonDB step by step
Prerequisites
These boxes are a local reading checklist; they do not test your account. A Fabric trial, Power BI Pro license or generic Fabric item permission must not be assumed to grant this preview automatically.
- Sign in at app.fabric.microsoft.com using the identity that will own the test database.
- Open an eligible Fabric workspace attached to an active, supported capacity. Ask the admin to verify tenant/region preview availability first.
- Select + New item, search for HorizonDB database, then choose HorizonDB database (preview).
- Give the Fabric item a distinct name, for example
uig-horizondb-lab, and select Create. Provisioning is asynchronous. Watch for Online or Ready instead of creating duplicates when the item is still starting. - Open the database, choose New Query, and run the following PostgreSQL read-only verification query.
SELECT
current_database() AS database_name,
current_user AS signed_in_user,
current_setting('server_version') AS postgres_version,
pg_backend_pid() AS session_id,
clock_timestamp() AS checked_at;Expected: a single record with your database name, effective user, reported engine version, session ID and timestamp. In the current preview, the PostgreSQL database name is normally postgres; the Fabric item display name is not the PostgreSQL database name.
If the item is missing or the query fails, go to the troubleshooting section or Microsoft’s official quickstart.
A small PostgreSQL table you can actually practice with
Only run this in a disposable test database as the creator. It creates a separate uig_demo schema, uses explicit keys, and loads three synthetic orders. It does not touch any real business data. If re-running, the ON CONFLICT clause prevents duplicate IDs.
-- Run in HorizonDB PostgreSQL SQL editor, NOT the SQL analytics endpoint.
CREATE SCHEMA IF NOT EXISTS uig_demo;
CREATE TABLE IF NOT EXISTS uig_demo.orders (
order_id BIGINT PRIMARY KEY,
order_date DATE NOT NULL,
order_status TEXT NOT NULL,
order_total NUMERIC(12,2) NOT NULL CHECK (order_total >= 0),
source_updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
INSERT INTO uig_demo.orders
(order_id, order_date, order_status, order_total)
VALUES
(101, DATE '2026-11-17', 'completed', 120.00),
(102, DATE '2026-11-18', 'open', 55.50),
(103, DATE '2026-11-19', 'completed', 24.50)
ON CONFLICT (order_id) DO NOTHING;
SELECT order_status,
COUNT(*) AS order_count,
SUM(order_total) AS total_amount
FROM uig_demo.orders
GROUP BY order_status
ORDER BY order_status;Expected for unchanged example: two completed orders totaling 144.50 and one open order totaling 55.50. This checks standard PostgreSQL storage and querying, not OneLake mirroring or application authentication.
Advertisements
Connect to Fabric HorizonDB using PostgreSQL or VS Code
Fabric HorizonDB exposes a PostgreSQL endpoint. Use the host, port, database name, Microsoft Entra account format and TLS instructions from the item’s connection pane—not a copied Azure HorizonDB or Azure Database for PostgreSQL connection string.
- Open the HorizonDB item as the database creator and select its Visual Studio Code action or connection details.
- Copy only the non-secret host, port and database values. For the current preview, database name
postgresis documented. - Use the Microsoft PostgreSQL extension in VS Code when available, or an approved PostgreSQL client using Microsoft’s supported Entra token acquisition and released TLS settings.
- Run
SELECT current_user, current_database();. If it fails, compare the tenant, creator identity, token audience, endpoint and TLS mode before changing permissions.
See Microsoft’s HorizonDB FAQ for authentication rules.
Three ways HorizonDB connects to OneLake
These look similar in launch announcements but serve different users. Choose the direction based on where your data should live and which engine should execute the query.
pg_fabric_fdw reads approved Fabric SQL data through foreign tables. Query in place; no automatic local copy.Readers familiar with Fabric will recognize the reporting side from our Fabric SQL Database guide and the curated-table pattern from our Medallion Architecture tutorial. The storage and security details are not identical, however.
Mirror Fabric HorizonDB data to OneLake and Power BI
HorizonDB makes eligible PostgreSQL tables available as asynchronous analytical copies in OneLake. You can then use the related SQL analytics endpoint for read-only T-SQL queries and reporting workloads. This is not the same as connecting Power BI directly to the operational PostgreSQL database.
- Create a small eligible PostgreSQL table with a stable primary key, such as the sample orders above.
- Open the HorizonDB-associated mirroring item or mirroring status. Confirm that an initial copy starts and that your table appears.
- Wait for a healthy completed initial copy. Check last-applied or lag status rather than assuming a ready PostgreSQL database means the mirror is current.
- Open the SQL analytics endpoint (separate from the PostgreSQL SQL editor). Inspect the exposed schema and table names; they may differ from the PostgreSQL names.
- Query a bounded set of rows, then check row count and a source timestamp against the original PostgreSQL table.
The following is T-SQL for the SQL analytics endpoint, not PostgreSQL. Replace schema and table names with the actual endpoint explorer names after mirroring:
-- Run on the read-only SQL analytics endpoint, after mirroring finishes.
-- Replace the schema/table with the names shown in the endpoint.
SELECT TOP (20)
order_id, order_date, order_status,
order_total, source_updated_at
FROM [uig_demo].[orders]
ORDER BY order_id DESC;
SELECT COUNT(*) AS mirrored_rows,
MAX(source_updated_at) AS latest_source_time,
SUM(order_total) AS mirrored_total
FROM [uig_demo].[orders];Validate: compare these values with the corresponding PostgreSQL source result under a stable source snapshot. Mirroring is asynchronous: counts and totals can differ while changes are still applying. Display source timestamps in freshness-sensitive reports.
For broader Fabric analytics design, see our OneLake Shortcuts guide. Shortcuts reference accessible data; they are not identical to HorizonDB database mirroring.
Query Fabric data from HorizonDB using pg_fabric_fdw
Federated Analytics lets a PostgreSQL query access supported Fabric SQL-exposed assets without first copying all their rows into local PostgreSQL tables. Microsoft uses the service-managed pg_fabric_fdw extension. Its default foreign-server binding fabric_dw refers to the database’s own mirrored analytical endpoint.
After the relevant mirror is initialized and access is authorized, Microsoft’s documented foreign-schema pattern is:
-- PostgreSQL editor; advanced example after mirror is ready.
-- Replace mirrored schema/table names with actual endpoint metadata.
CREATE SCHEMA IF NOT EXISTS olap;
IMPORT FOREIGN SCHEMA uig_demo
LIMIT TO (orders)
FROM SERVER fabric_dw
INTO olap;
SELECT foreign_table_schema, foreign_table_name
FROM information_schema.foreign_tables
WHERE foreign_table_schema = 'olap';
EXPLAIN (VERBOSE, COSTS OFF)
SELECT order_status, COUNT(*) AS n
FROM olap.orders
GROUP BY order_status;This imports foreign table definitions, not the underlying rows. It may require adjusting the mirrored schema and table names, and it will fail if the source is not eligible or the integration is not configured. EXPLAIN (VERBOSE) helps identify how much work is pushed to Fabric rather than completed locally in PostgreSQL.
Not every SQL operation can be pushed down; unsupported query forms may be rejected and semantic differences can occur in collation or data types. Do not assume that querying across OneLake grants access to unrelated workspaces or arbitrary OneLake files. Read Microsoft’s federation limitations first.
Copy curated Fabric data back into HorizonDB
For an application that repeatedly needs a limited analytical result—for example, customer segment or latest rolling sales—remote queries are not always ideal. Fabric’s data delivery path can copy a vetted snapshot from supported Fabric sources into local PostgreSQL tables for low-latency serving.
- Prepare a bounded, deduplicated source snapshot in a supported Fabric Warehouse or Lakehouse SQL source. Define the grain and expected row count.
- Create a controlled target staging table in HorizonDB PostgreSQL with keys and data types suited to that snapshot.
- Configure a Copy job using Microsoft’s currently documented Azure Database for PostgreSQL destination connector, the HorizonDB host, database
postgres, the creator’s Organizational account authentication and Full copy read method. - Write to the staging target, verify keys, totals and rejected records, then perform an approved idempotent publish step into the application-facing table.
- Record batch ID and snapshot timestamp so the application knows when metrics were computed.
The broader ETL and production patterns are covered in our Fabric Learning Hub and Medallion Architecture guide.
Microsoft Fabric HorizonDB pricing: what do you actually pay?
Do not use Azure HorizonDB pricing as Fabric HorizonDB pricing. They are separate products. Microsoft describes Fabric HorizonDB as usage-based and consuming Fabric capacity while active. The public preview documentation does not provide a reliable universal dollar-per-database-hour or CU-per-query figure to populate a price calculator.
| Activity | Cost interpretation | What to verify |
|---|---|---|
| PostgreSQL database active | Consumes Fabric capacity according to the preview’s active compute profile. Not simply per SQL statement or CPU cycle. | Effective capacity and HorizonDB usage-reporting metrics |
| Eligible database paused | Customer-usable database compute is released; do not assume all charges vanish. | Paused-state usage terms and retained storage policy |
| Mirroring and analytical queries | Analytical storage, SQL or Warehouse operations can have distinct capacity implications. | Mirroring/storage terms and capacity workload consumption |
| Reverse ETL through Copy job | Data movement and destination activity are separate work, not automatically free. | Copy job pricing/consumption and run logs |
| AI inference / vector retrieval | Vector queries and model inference are different cost categories; a managed extension does not include free model usage. | Fabric/Foundry model endpoint and provider billing terms |
Does HorizonDB pause after five minutes?
Microsoft’s November launch blog describes compute pausing after five consecutive minutes of eligible inactivity, but the current onboarding and limitations pages do not promise a fixed idle or resume time for all preview environments. Open connections can prevent eligibility to pause. Build connection pools with released idle-session management, finite timeouts, health checks and bounded retries. An interrupted write whose commit status is unknown must be reconciled before replay.
See Microsoft’s compute usage guidance and pricing FAQ. Our Fabric capacity calculator helps with broader capacity scenarios, but must not be presented as an exact HorizonDB preview bill estimator.
Fabric HorizonDB vs Fabric SQL Database vs Azure HorizonDB
If your application requires multiple independently authenticated PostgreSQL users or workload identities today, the Fabric HorizonDB preview restriction is decisive. If your team uses T-SQL and wants a transactional SQL database inside Fabric, investigate Fabric SQL Database. If you need a familiar PostgreSQL workload with Azure enterprise controls, review Azure HorizonDB separately.
For app-hosting context, our Fabric Apps and Rayfin guide explains the surrounding application-platform concepts. Do not assume every Fabric Apps deployment or identity pattern is supported by the HorizonDB preview automatically.
Fabric HorizonDB not working? Choose the symptom
Check that your tenant enabled the preview, your workspace uses an active supported Fabric capacity in an eligible region, and you are a Contributor or Admin. Search for the exact item name HorizonDB database (preview). Don’t assume a missing item is fixed by changing your browser.
This selector is a navigation aid; it does not inspect your tenant. For detailed live-error diagnostics see Microsoft HorizonDB troubleshooting.
Safe escalation evidence
For a persistent error, record the failing step, UTC time, item/workspace ID, current lifecycle state, operation or correlation ID, creator identity type, preview region, and the smallest redacted reproduction. Do not share tokens, raw connection strings, internal hosts or customer data in public support threads.
Microsoft Fabric HorizonDB support report
UTC failure time:
Workspace / item IDs (private support only):
Preview region and capacity eligibility:
Database lifecycle state:
Creator Entra identity type (no tokens):
Operation / correlation ID:
Failing endpoint: PostgreSQL / SQL analytics / Copy job:
Sanitized error and reproduction:
Mirroring and Copy job state, if applicable:
One deliberate retry and outcome:
Microsoft Fabric HorizonDB FAQ
Is Fabric HorizonDB available to everyone?
It is in public preview, but availability depends on region, enabled tenant/workspace, appropriate Fabric capacity and creation permissions. The item may not appear in an ineligible workspace.
Can another developer, app user or service principal connect?
Not to the PostgreSQL database under the current preview restriction. Only the creating Entra identity can connect. Fabric item sharing does not change this.
Is PostgreSQL data stored in OneLake?
Native PostgreSQL transactions use service-managed database storage. Eligible tables can be mirrored asynchronously into OneLake as an analytical representation. The mirror is not the underlying transactional storage engine.
Can Power BI query HorizonDB immediately after an INSERT?
Use the operational PostgreSQL endpoint to verify a committed write. Mirrored OneLake and SQL analytics endpoint data can lag because replication is asynchronous. Check mirroring status and source timestamps when freshness matters.
Is HorizonDB free when idle?
Database compute can pause when scale-to-zero is enabled, but retained storage and independent Fabric workloads can still consume resources. Confirm actual preview terms and usage; no universally valid fixed USD estimate is provided.
Should I use Azure HorizonDB connection and pricing instructions?
No. Azure HorizonDB is a different Azure resource offering. Use connection details, TLS settings, preview limits and billing guidance specific to Fabric HorizonDB.
Can I use pgvector and AI functions?
Fabric HorizonDB includes managed AI/search-related extensions, but extension presence is not a guarantee of model endpoint authorization, quota, an available index type or free inference. Check the current extension catalog and configure external services explicitly.
Was this tutorial tested in a real Fabric tenant?
No. The technical steps and preview limitations were reviewed against Microsoft material on November 23, 2026. The example SQL is for a disposable environment, and it has not been executed in a customer HorizonDB preview. Verify actual releases and governance requirements before production use.
Useful guides already on UltimateInfoGuide
Official Microsoft sources checked
Reviewed November 23, 2026. Fabric HorizonDB is in public preview, so its UI, availability, pricing reporting and restrictions may change. This is independent documentation-based guidance, not a Microsoft-certified implementation, and no live tenant or customer data was accessed.
- Microsoft Learn — Fabric HorizonDB overview
- Create a HorizonDB database in the Fabric portal
- Public preview limitations (identity, SQL, federation, Copy job)
- Query mirrored data using the SQL analytics endpoint
- Control HorizonDB compute usage
- Frequently asked questions
- Microsoft PostgreSQL team — Ignite launch and design patterns
- Microsoft Ignite BRK359, on-demand video session
For editorial transparency, the article distinguishes launch claims from guaranteed preview capabilities. The five-minute idle rule is from the launch announcement; the official onboarding documentation does not promise a fixed pause or resume SLA.

