Two parts of the workspace settings are easy to overlook: the OneLake tab, which controls how the workspace's storage behaves, and the Apache Airflow runtime settings under Data Factory, which control the compute for Airflow jobs. (Airflow jobs used to be called Data workflows, so older material may use that name.) This article covers what each one does and what you need in order to change it.
The OneLake tab
All OneLake settings are per workspace, and the workspace Admin role is what you need.
OneLake diagnostics
Diagnostics answer "who accessed what, when and how". When enabled, the workspace streams data access events as JSON into a lakehouse you choose. Events cover the Fabric web experience, API access, pipelines, engines, and access through shortcuts (captured in the source workspace). You can later turn the logs into Delta tables for reporting.
To turn it on, open Workspace settings, go to OneLake, switch on Add diagnostic events to a lakehouse and pick the destination. Points to remember:
- The lakehouse must be in the same capacity as the workspace being monitored.
- You must be workspace admin of the monitored workspace and a contributor on the destination lakehouse.
- Events take up to an hour to start arriving.
- Changing the destination lakehouse affects new events only; old events stay where they were. Turning diagnostics off and on again reuses the same lakehouse.
- Immutable logs can be enabled so nobody can alter or delete the files for a set period. The period is configured on the workspace that holds the diagnostic lakehouse, applies to all events there and cannot be changed once applied. Deleting early fails with a conflict error, so any cleanup job must skip files still inside the window or catch that failure.
File-level soft delete
Soft delete keeps deleted files recoverable. It is on by default with a seven-day retention, and you can switch it off or set any value from 1 to 365 days under OneLake > General. Soft-deleted data is billed at the same rate as active data, so a long retention costs real money. It applies to files in the workspace and does not change workspace or item retention. It can also be read and changed through the Fabric REST API.
Shortcut cache
Reading through an external shortcut normally hits the remote provider each time, which can mean egress charges. With caching on, OneLake keeps a copy in the workspace and serves repeat reads from it. You set a retention of 1 to 28 days (reset each time the file is read), and Reset cache clears everything. Caching supports Google Cloud Storage, S3, S3-compatible and on-premises data gateway shortcuts. It does not apply to an ADLS Gen2 shortcut.
Apache Airflow runtime settings
Under Data Factory, choose Apache Airflow Runtime Settings. The workspace default is a starter pool, and you can add a custom pool with New Pool.
- The starter pool is the default and is meant for development. It shuts down after 20 minutes without activity on the Airflow environment.
- A custom pool is meant for production. You name it, choose a compute node size (large for complex or production DAGs, small for simple ones), turn autoscale on or off and add extra nodes. Each extra node lets the pool run three more workers, so more DAGs can run at once. It stays on until you pause it manually.
- Resuming a paused environment takes up to five minutes in either case.
- If the setting that lets items customize compute is off, the starter pool is used for every environment in the workspace.
Private networks and virtual networks are not supported for Airflow jobs at the time of this documentation.
Common mistakes
- Placing the diagnostic lakehouse in a different capacity.
- Enabling an immutability period without realising it is permanent for that period.
- Expecting the shortcut cache to help an ADLS Gen2 shortcut.
- Leaving a custom Airflow pool running when idle; it does not shut itself down.
For the exam
- OneLake settings live in Workspace settings under OneLake and need workspace admin.
- Diagnostics write to a lakehouse in the same capacity; they can be made immutable.
- File soft delete defaults to seven days and accepts 1 to 365.
- Shortcut cache retention is 1 to 28 days and suits cross-cloud sources to save egress.
- Airflow: starter pool for development, custom pool for production; extra nodes add concurrency.