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 withdatalakehousefor 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, leaveschema_nameempty 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 enterdbo.
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.
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_userandjdbc_password: Stage JDBC only. The generated file prefills SQL Server examples. The loader insertsjdbc_userandjdbc_passwordas 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 with404SecretNotFound.
Load control
loadcontrol#loadcontrol#database_nameandschema_name: the lakehouse and schema of the log tables, prefilled withdatalakehouseand empty. The rule for an emptyschema_nameabove applies here too.Give each project its own load control lakehouse or schema (placeholders
loadcontrol#loadcontrol#database_nameandschema_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_nameanddeployment_log_table_name: the log tables, prefilled withexecution_loganddeployment_log.application_nameandapplication_environment_name: written to every log row.application_nameis empty in the generated file,application_environment_nameis prefilled withDEV.
Notebooks and deployment
notebook_orchestration#notebook_orchestration#run_notebook_timeout: the seconds each loader notebook may run in the native load control, prefilled with3600.deployment#deployment#deployment_objects_timeoutanddeployment_loadcontrol_timeout: the seconds for the deployment and for the load control deployment, prefilled with3600and120.
Airflow
Only with Airflow in LoadControl Options:
airflow#airflow#fabric_conn_id: the Airflow connection of the DAG, prefilled withfabric-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 examplerawvault. For a source system, the database that holds the source tables.database_directory: the storage path of the database, ending with a slash, for exampleabfss://<container>@<storage account>.dfs.core.windows.net/rawvault/. The notebooks runCREATE DATABASE IF NOT EXISTS ... LOCATIONwith 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_nameanddatabase_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_userandjdbc_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_idand thedatafactory_pipelinevariables, with LoadControl OptionsAirflow. - Generator 2.0: with Target Platform
Fabric,database_nameis prefilled withdatalakehouse.
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
- Previous: Fabric Lakehouse - Target environment, Azure Synapse - Target environment, Download generated artifacts
- Next: Fabric Lakehouse - Deployment, Azure Synapse - Deployment
- Reference: LoadControl Options (Project), Deployment Options (Project)
- See also: Replace the placeholders in the artifacts, Fabric Lakehouse - Artifacts, Fabric Lakehouse - Load data - Native load control