New-FabricReflex
Creates a new Reflex in a specified Microsoft Fabric workspace.
Syntax
New-FabricReflex [-WorkspaceId] <guid> [-ReflexName] <string> [[-ReflexDescription] <string>]
[[-ReflexPathDefinition] <string>] [[-ReflexPathPlatformDefinition] <string>] [-WhatIf] [-Confirm]
[<CommonParameters>]Description
This function sends a POST request to the Microsoft Fabric API to create a new Reflex in the specified workspace. It supports optional parameters for Reflex description and path definitions.
Aliases: New-FabricActivator
Examples
Example 1
This example creates a new Reflex named "New Reflex" in the workspace with ID "workspace-12345" with the provided description.
New-FabricReflex -WorkspaceId "workspace-12345" -ReflexName "New Reflex" -ReflexDescription "Description of the new Reflex"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -ReflexName | string | ✓Required | 1 | – | The name of the Reflex to be created. This parameter is mandatory. |
| -WorkspaceId | guid | ✓Required | 0 | – | The unique identifier of the workspace where the Reflex will be created. This parameter is mandatory. |
| -Confirmalias: cf | switch | Named | – | Prompts you for confirmation before running the cmdlet. |
|
| -ReflexDescription | string | 2 | – | An optional description for the Reflex. |
|
| -ReflexPathDefinition | string | 3 | – | An optional path to the Reflex definition file to upload. |
|
| -ReflexPathPlatformDefinition | string | 4 | – | An optional path to the platform-specific definition file to upload. |
|
| -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
- Requires
$FabricConfigglobal configuration, includingBaseUrlandFabricHeaders. - Calls
Confirm-TokenStateto ensure token validity before making the API request.
Author: Tiago Balabuch, Kamil Nowinski