FabricTools v0.33.0 Public Preview

Disconnect-FabricGit

Disconnects a Fabric workspace from its Git repository.

Syntax

Disconnect-FabricGit [-WorkspaceId] <guid> [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Disconnects the specified workspace from the Git repository and branch it is connected to. Workspace items are not deleted, but the link to source control is removed. Because this affects every user of the workspace, the cmdlet asks for confirmation by default; use -Confirm:$false to skip the prompt.

Examples

Example 1

Disconnect-FabricGit -WorkspaceId '11111111-1111-1111-1111-111111111111'

Disconnects the workspace from Git after confirmation.

Example 2

Get-FabricWorkspace -WorkspaceName 'Sales' | Disconnect-FabricGit -Confirm:$false

Disconnects the 'Sales' workspace from Git without prompting.

Parameters

NameTypeReq.Pos.PipelineDescription
-WorkspaceIdalias: Id guid ✓Required 0 By name

The ID of the workspace to disconnect. Accepts pipeline input by property name (alias Id).

-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.

Inputs

System.Guid

{{ Fill in the Description }}

Notes

https://learn.microsoft.com/en-us/rest/api/fabric/core/git/disconnect

Requires the workspace Admin role.

Author: Kamil Nowinski