Skip to content
  • There are no suggestions because the search field is empty.

Fabric Lakehouse - Placeholder values

Applies to
Platform: Fabric Lakehouse

Fabric Lakehouse placeholder values name the lakehouses, schemas, source paths and connections of a Fabric Lakehouse project. Enter them in replacement_config.json before you run replace_placeholders.ps1. Afterwards the notebooks contain your names.

The replacement itself is described in Replace the placeholders in the artifacts. For Target Platform Azure Synapse, see Azure Synapse.

Variable names

Each variable name has the form <project>#<group>#<variable>: the Project Identifier in lower case without spaces, then a layer or source system in lower case without spaces, for example rawvault for Raw Vault. The other groups are loadcontrol#loadcontrol, notebook_orchestration#notebook_orchestration, deployment#deployment and airflow#airflow.

Variables

Layers and source systems

  • workspace_name: the Fabric workspace of the lakehouse. Leave it empty for a lakehouse in the workspace of the notebooks; the replacement removes the empty name with its dot.
  • database_name: the lakehouse of the layer, prefilled with datalakehouse for every layer. For a source system, the lakehouse of the source tables, for example of a linked Stage project.
  • schema_name: the schema in the lakehouse, empty in the generated file. For targets in a lakehouse with schemas, enter a schema for every layer; the default lakehouse of the notebooks must then have schemas. For targets in a lakehouse without schemas, leave schema_name empty for every layer and for the load control. Also clear Generate Create Schema If Not Exists Statements in Deployment Options. For source tables in a lakehouse without schemas, leave it empty or enter dbo.

Stage Files and Stage JDBC sources

  • file_path: Stage Files only. The ABFS path of the folder that holds one folder per source, ending with a slash. The loader reads <file_path><source name>. To copy the path, open the context menu of the Files folder of the lakehouse, choose Properties and copy ABFS path.
    Context menu of the Files folder with Properties
    Then append your folders, for example:
    abfss://<workspace>@onelake.dfs.fabric.microsoft.com/
      <lakehouse>.Lakehouse/Files/Parquet/
    Write the path on one line.
  • jdbc_url, jdbc_driver, jdbc_user and jdbc_password: Stage JDBC only. The generated file prefills SQL Server examples. The loader inserts jdbc_user and jdbc_password as Python expressions. Write a literal in single quotes, for example '<user name>', or read a secret from Azure Key Vault without quotes:
    PyTridentTokenLibrary.get_secret_with_token(
      '<Key Vault URL>', '<secret name>', access_token)
    Write it on one line. The identity that runs the notebook needs read access to the secret. A missing secret stops the loader with 404 SecretNotFound.

Load control

  • loadcontrol#loadcontrol#database_name and schema_name: the lakehouse and schema of the log tables, prefilled with datalakehouse and empty. The rule for an empty schema_name above applies here too.

    Give each project its own load control lakehouse or schema (placeholders loadcontrol#loadcontrol#database_name and schema_name). With the default Deployment Options, a project that deploys the load control into the same location replaces the logs of the other projects.

  • execution_log_table_name and deployment_log_table_name: the log tables, prefilled with execution_log and deployment_log.
  • application_name and application_environment_name: written to every log row. application_name is empty in the generated file, application_environment_name is prefilled with DEV.

Notebooks and deployment

  • notebook_orchestration#notebook_orchestration#run_notebook_timeout: the seconds each loader notebook may run in the native load control, prefilled with 3600.
  • deployment#deployment#deployment_objects_timeout and deployment_loadcontrol_timeout: the seconds for the deployment and for the load control deployment, prefilled with 3600 and 120.

Airflow

Only with Airflow in LoadControl Options:

  • airflow#airflow#fabric_conn_id: the Airflow connection of the DAG, prefilled with fabric-integration.

Example

A Data Vault and Mart project test.vaultandmart.spark.fabric deploys its Stage to the lakehouse my_lakehouse, which has schemas, with the example schema stage:

{ "name": "test.vaultandmart.spark.fabric#stage#workspace_name",
  "value": "", "secretname": "" },
{ "name": "test.vaultandmart.spark.fabric#stage#database_name",
  "value": "my_lakehouse", "secretname": "" },
{ "name": "test.vaultandmart.spark.fabric#stage#schema_name",
  "value": "stage", "secretname": "" }

After the replacement, the Stage table is `my_lakehouse`.`stage`.`stg_st_item`.

Example files:

Azure Synapse

With Target Platform Azure Synapse, the layers and the load control are databases in a storage account, without workspace_name. These values differ:

  • database_name: the database of the layer, prefilled with the layer name, for example rawvault. For a source system, the database that holds the source tables.
  • database_directory: the storage path of the database, ending with a slash, for example abfss://<container>@<storage account>.dfs.core.windows.net/rawvault/. The notebooks run CREATE DATABASE IF NOT EXISTS ... LOCATION with it.
  • schema_name: leave it empty for the layers; the replacement removes it with its dot. In a Stage JDBC project, enter the schema of the source tables for the source system.
  • loadcontrol#loadcontrol#database_name and database_directory: empty in the generated file. Enter a database name and a path.
  • file_path: the storage path of the source folders, in the same form.
  • jdbc_user and jdbc_password: a literal in single quotes.
  • datafactory_pipeline#datafactory_pipeline# variables: settings of the pipelines for Apache Airflow.

Example files:

Release differences

  • Generator 2.2: airflow#airflow#fabric_conn_id and the datafactory_pipeline variables, with LoadControl Options Airflow.
  • Generator 2.0: with Target Platform Fabric, database_name is prefilled with datalakehouse.

Legacy placeholders

Up to Generator 1.10, Fabric projects also had database_directory, which you left empty. Generator 1.9 had log_table_name; since Generator 1.10 it is execution_log_table_name and deployment_log_table_name. Generator 1.8 had execution_dependencies_file_path.

Related articles