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:$falseDisconnects the 'Sales' workspace from Git without prompting.
Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -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