FabricTools v0.33.0 Public Preview

Update-FabricReflexDefinition

Updates the definition of an existing Reflex in a specified Microsoft Fabric workspace.

Syntax

Update-FabricReflexDefinition [-WorkspaceId] <guid> [-ReflexId] <guid>
 [-ReflexPathDefinition] <string> [[-ReflexPathPlatformDefinition] <string>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Description

This function sends a PATCH request to the Microsoft Fabric API to update the definition of an existing Reflex in the specified workspace. It supports optional parameters for Reflex definition and platform-specific definition.

Aliases: Update-FabricActivatorDefinition

Examples

Example 1

This example updates the definition of the Reflex with ID "Reflex-67890" in the workspace with ID "workspace-12345" using the provided definition file.

Update-FabricReflexDefinition -WorkspaceId "workspace-12345" -ReflexId "Reflex-67890" -ReflexPathDefinition "C:\Path\To\ReflexDefinition.json"

Parameters

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

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

-ReflexPathDefinition string ✓Required 2 –

An optional path to the Reflex definition file to upload.

-WorkspaceId guid ✓Required 0 –

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

-Confirmalias: cf switch Named –

Prompts you for confirmation before running the cmdlet.

-ReflexPathPlatformDefinition string 3 –

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 $FabricConfig global configuration, including BaseUrl and FabricHeaders.
  • Calls Confirm-TokenState to ensure token validity before making the API request.

Author: Tiago Balabuch, Kamil Nowinski