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