FabricTools v0.33.0 Public Preview

Get-FabricSemanticModelDefinition

Retrieves the definition of an SemanticModel from a specified Microsoft Fabric workspace.

Syntax

Get-FabricSemanticModelDefinition [-WorkspaceId] <guid> [[-SemanticModelId] <guid>]
 [[-SemanticModelFormat] <string>] [<CommonParameters>]

Description

This function retrieves the definition of an SemanticModel from a specified workspace using the provided SemanticModelId. It handles token validation, constructs the API URL, makes the API request, and processes the response.

Examples

Example 1

This example retrieves the definition of the SemanticModel with ID "SemanticModel-67890" in the workspace with ID "workspace-12345".

Get-FabricSemanticModelDefinition -WorkspaceId "workspace-12345" -SemanticModelId "SemanticModel-67890"

Example 2

This example retrieves the definition of the SemanticModel with ID "SemanticModel-67890" in the workspace with ID "workspace-12345" in JSON format.

Get-FabricSemanticModelDefinition -WorkspaceId "workspace-12345" -SemanticModelId "SemanticModel-67890" -SemanticModelFormat "json"

Parameters

NameTypeReq.Pos.PipelineDescription
-WorkspaceId guid ✓Required 0 –

The unique identifier of the workspace where the SemanticModel exists. This parameter is mandatory.

-SemanticModelFormat string 2 –

The format in which to retrieve the SemanticModel definition. This parameter is optional.

Default: TMDL
-SemanticModelId guid 1 –

The unique identifier of the SemanticModel to retrieve the definition for. 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