FabricTools v0.33.0 Public Preview

Get-FabricGitConnection

Gets the Git connection details of a Fabric workspace.

Syntax

Get-FabricGitConnection [-WorkspaceId] <guid> [<CommonParameters>]

Description

Returns the Git connection state of the specified workspace, the Git provider details (provider type, organization or owner, project, repository, branch and directory) and the Git sync details (head commit and last sync time). A WorkspaceId property is added to the output so it can be piped into the other FabricGit cmdlets.

Examples

Example 1

Get-FabricGitConnection -WorkspaceId '11111111-1111-1111-1111-111111111111'

Returns the Git connection details of the workspace.

Example 2

Get-FabricWorkspace -WorkspaceName 'Sales' | Get-FabricGitConnection

Returns the Git connection details of the 'Sales' workspace.

Parameters

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

The ID of the workspace. Accepts pipeline input by property name (alias Id), so the output of Get-FabricWorkspace can be piped in.

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

Inputs

System.Guid

{{ Fill in the Description }}

Outputs

System.Management.Automation.PSCustomObject

Object with gitConnectionState (NotConnected

{{ Fill in the Description }}

System.Management.Automation.PSCustomObject

{{ Fill in the Description }}

Notes

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

Requires the workspace Admin role.

Author: Kamil Nowinski