FabricTools v0.33.0 Public Preview

Update-FabricMLModel

Updates an existing ML Model in a specified Microsoft Fabric workspace.

Syntax

Update-FabricMLModel [-WorkspaceId] <guid> [-MLModelId] <guid> [[-MLModelDescription] <string>]
 [-WhatIf] [-Confirm] [<CommonParameters>]

Description

This function sends a PATCH request to the Microsoft Fabric API to update an existing ML Model in the specified workspace. It supports optional parameters for ML Model description.

Examples

Example 1

This example updates the ML Model with ID "model-67890" in the workspace with ID "workspace-12345" with a new name and description.

Update-FabricMLModel -WorkspaceId "workspace-12345" -MLModelId "model-67890" -MLModelName "Updated ML Model" -MLModelDescription "Updated description"

Parameters

NameTypeReq.Pos.PipelineDescription
-MLModelId guid ✓Required 1 –

The unique identifier of the ML Model to be updated. This parameter is mandatory.

-WorkspaceId guid ✓Required 0 –

The unique identifier of the workspace where the ML Model exists. This parameter is optional.

-Confirmalias: cf switch Named –

Prompts you for confirmation before running the cmdlet.

-MLModelDescription string 2 –

New description for the ML Model.

-WhatIfalias: wi switch Named –

Runs the command in a mode that only reports what would happen without performing the actions.

This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.

Notes

  • Calls Confirm-TokenState to ensure token validity before making the API request.

Author: Tiago Balabuch, Kamil Nowinski