Get-FabricDatamart
Retrieves datamarts from a specified workspace.
Syntax
Get-FabricDatamart [-WorkspaceId] <guid> [[-DatamartId] <guid>] [[-DatamartName] <string>]
[<CommonParameters>]Description
This function retrieves all datamarts from a specified workspace using the provided WorkspaceId. It handles token validation, constructs the API URL, makes the API request, and processes the response.
Examples
Example 1
This example retrieves all datamarts from the workspace with ID "12345".
Get-FabricDatamart -WorkspaceId "12345"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -WorkspaceId | guid | ✓Required | 0 | – | The ID of the workspace from which to retrieve datamarts. This parameter is mandatory. |
| -DatamartId | guid | 1 | – | The ID of the specific datamart to retrieve. This parameter is optional. |
|
| -DatamartName | string | 2 | – | The name of the specific datamart to retrieve. This parameter is optional. |
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