New-FabricLakehouse
Creates a new Lakehouse in a specified Microsoft Fabric workspace.
Syntax
New-FabricLakehouse [-WorkspaceId] <guid> [-LakehouseName] <string>
[[-LakehouseDescription] <string>] [[-LakehouseEnableSchemas] <bool>] [-WhatIf] [-Confirm]
[<CommonParameters>]Description
This function sends a POST request to the Microsoft Fabric API to create a new Lakehouse in the specified workspace. It supports optional parameters for Lakehouse description and path definitions for the Lakehouse content.
Examples
Example 1
Creates a new Lakehouse in the specified workspace with a given name and enable schemas option.
New-FabricLakehouse -WorkspaceId "workspace-12345" -LakehouseName "New Lakehouse" -LakehouseEnableSchemas $trueParameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -LakehouseName | string | ✓Required | 1 | – | The name of the Lakehouse to be created. |
| -WorkspaceId | guid | ✓Required | 0 | – | The unique identifier of the workspace where the Lakehouse will be created. |
| -Confirmalias: cf | switch | Named | – | Prompts you for confirmation before running the cmdlet. |
|
| -LakehouseDescription | string | 2 | – | An optional description for the Lakehouse. |
|
| -LakehouseEnableSchemas | bool | 3 | – | An optional path to enable schemas in the Lakehouse Default: False |
|
| -WhatIfalias: wi | switch | Named | – | Runs the command in a mode that only reports what would happen without performing the actions. |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Notes
- Requires
$FabricConfigglobal configuration, includingBaseUrlandFabricHeaders. - Calls
Confirm-TokenStateto ensure token validity before making the API request.
Author: Tiago Balabuch, Kamil Nowinski