FabricTools v0.33.0 Public Preview

Stop-FabricEnvironmentPublish

Cancels the publish operation for a specified environment in Microsoft Fabric.

Syntax

Stop-FabricEnvironmentPublish [-WorkspaceId] <guid> [-EnvironmentId] <guid> [-WhatIf] [-Confirm]
 [<CommonParameters>]

Description

This function sends a cancel publish request to the Microsoft Fabric API for a given environment. It ensures that the token is valid before making the request and handles both successful and error responses.

Examples

Example 1

Cancels the publish operation for the specified environment.

Stop-FabricEnvironmentPublish -WorkspaceId "workspace-12345" -EnvironmentId "environment-67890"

Parameters

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

The unique identifier of the environment for which the publish operation is to be canceled.

-WorkspaceId guid ✓Required 0 –

The unique identifier of the workspace where the environment exists.

-Confirmalias: cf switch Named –

Prompts you for confirmation before running the cmdlet.

-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

  • Validates token expiration before making the API request.

Author: Tiago Balabuch, Kamil Nowinski