Get-FabricWarehouse
Retrieves warehouse details from a specified Microsoft Fabric workspace.
Syntax
Get-FabricWarehouse [-WorkspaceId] <guid> [[-WarehouseId] <guid>] [[-WarehouseName] <string>]
[<CommonParameters>]Description
This function retrieves warehouse details from a specified workspace using either the provided WarehouseId or WarehouseName. It handles token validation, constructs the API URL, makes the API request, and processes the response.
Examples
Example 1
This example retrieves the warehouse details for the warehouse with ID "warehouse-67890" in the workspace with ID "workspace-12345".
Get-FabricWarehouse -WorkspaceId "workspace-12345" -WarehouseId "warehouse-67890"Example 2
This example retrieves the warehouse details for the warehouse named "My Warehouse" in the workspace with ID "workspace-12345".
Get-FabricWarehouse -WorkspaceId "workspace-12345" -WarehouseName "My Warehouse"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -WorkspaceId | guid | ✓Required | 0 | – | The unique identifier of the workspace where the warehouse exists. This parameter is mandatory. |
| -WarehouseId | guid | 1 | – | The unique identifier of the warehouse to retrieve. This parameter is optional. |
|
| -WarehouseName | string | 2 | – | The name of the warehouse to retrieve. This parameter is optional. |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Notes
- Calls
Confirm-TokenStateto ensure token validity before making the API request.
Author: Tiago Balabuch, Kamil Nowinski