FabricTools v0.33.0 Public Preview

Publish-FabricEnvironment

Publishes a staging environment in a specified Microsoft Fabric workspace.

Syntax

Publish-FabricEnvironment [-WorkspaceId] <guid> [-EnvironmentId] <guid> [<CommonParameters>]

Description

This function interacts with the Microsoft Fabric API to initiate the publishing process for a staging environment. It validates the authentication token, constructs the API request, and handles both immediate and long-running operations.

Examples

Example 1

Initiates the publishing process for the specified staging environment.

Publish-FabricEnvironment -WorkspaceId "workspace-12345" -EnvironmentId "environment-67890"

Parameters

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

The unique identifier of the staging environment to be published.

-WorkspaceId guid ✓Required 0 –

The unique identifier of the workspace containing the staging environment.

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

Notes

  • Uses Confirm-TokenState to validate the token before making API calls.

Author: Tiago Balabuch, Kamil Nowinski