New-FabricMLExperiment
Creates a new ML Experiment in a specified Microsoft Fabric workspace.
Syntax
New-FabricMLExperiment [-WorkspaceId] <guid> [-MLExperimentName] <string>
[[-MLExperimentDescription] <string>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
This function sends a POST request to the Microsoft Fabric API to create a new ML Experiment in the specified workspace. It supports optional parameters for ML Experiment description.
Examples
Example 1
This example creates a new ML Experiment named "New ML Experiment" in the workspace with ID "workspace-12345" with the provided description.
New-FabricMLExperiment -WorkspaceId "workspace-12345" -MLExperimentName "New ML Experiment" -MLExperimentDescription "Description of the new ML Experiment"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -MLExperimentName | string | ✓Required | 1 | – | The name of the ML Experiment to be created. This parameter is mandatory. |
| -WorkspaceId | guid | ✓Required | 0 | – | The unique identifier of the workspace where the ML Experiment will be created. This parameter is mandatory. |
| -Confirmalias: cf | switch | Named | – | Prompts you for confirmation before running the cmdlet. |
|
| -MLExperimentDescription | string | 2 | – | An optional description for the ML Experiment. |
|
| -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-TokenStateto ensure token validity before making the API request.
Author: Tiago Balabuch, Kamil Nowinski