Get-FabricMLModel
Retrieves ML Model details from a specified Microsoft Fabric workspace.
Syntax
Get-FabricMLModel [-WorkspaceId] <guid> [[-MLModelId] <guid>] [[-MLModelName] <string>]
[<CommonParameters>]Description
This function retrieves ML Model details from a specified workspace using either the provided MLModelId or MLModelName. It handles token validation, constructs the API URL, makes the API request, and processes the response.
Examples
Example 1
This example retrieves the ML Model details for the model with ID "model-67890" in the workspace with ID "workspace-12345".
Get-FabricMLModel -WorkspaceId "workspace-12345" -MLModelId "model-67890"Example 2
This example retrieves the ML Model details for the model named "My ML Model" in the workspace with ID "workspace-12345".
Get-FabricMLModel -WorkspaceId "workspace-12345" -MLModelName "My ML Model"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -WorkspaceId | guid | ✓Required | 0 | – | The unique identifier of the workspace where the ML Model exists. This parameter is mandatory. |
| -MLModelId | guid | 1 | – | The unique identifier of the ML Model to retrieve. This parameter is optional. |
|
| -MLModelName | string | 2 | – | The name of the ML Model 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