onelake_create_shortcut
Create a OneLake shortcut to reference data from a target lakehouse without duplicating it. Ideal for medallion architectures where Dev/Test/Prod read from a central Bronze layer.
Instructions
Create a OneLake shortcut from one lakehouse to another.
This allows you to reference data from a target lakehouse without duplicating it.
Perfect for medallion architectures where Dev/Test/Prod read from a central Bronze layer.
Args:
lakehouse: Source lakehouse name or ID (where the shortcut will appear)
shortcut_name: Name for the shortcut
shortcut_path: Path in source where shortcut appears (e.g., "Tables", "Files/exports")
target_workspace: Target workspace name or ID (containing the data)
target_lakehouse: Target lakehouse name or ID (containing the data)
target_path: Path in target to link to (e.g., "Tables/customers_raw", "Files/bronze")
workspace: Source workspace name or ID (optional, uses context if not provided)
conflict_policy: Action when shortcut exists (Abort, GenerateUniqueName, CreateOrOverwrite, OverwriteOnly)
ctx: Context object
Returns:
Dictionary with shortcut details including name, path, and target
Example:
# Create shortcut from DEV silver lakehouse to central Bronze
onelake_create_shortcut(
workspace="DEV-Analytics",
lakehouse="silver_dev",
shortcut_name="bronze_customers",
shortcut_path="Tables",
target_workspace="RAW-Bronze-Central",
target_lakehouse="bronze_central",
target_path="Tables/customers_raw"
)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lakehouse | Yes | ||
| workspace | No | ||
| target_path | Yes | ||
| shortcut_name | Yes | ||
| shortcut_path | Yes | ||
| conflict_policy | No | CreateOrOverwrite | |
| target_lakehouse | Yes | ||
| target_workspace | Yes |