FabricTools v0.33.0 Public Preview

Get-FabricLongRunningOperation

Monitors the status of a long-running operation in Microsoft Fabric.

Syntax

Get-FabricLongRunningOperation [[-OperationId] <string>] [[-Location] <string>]
 [[-RetryAfter] <int>] [[-Timeout] <int>] [[-TimeoutSeconds] <int>] [<CommonParameters>]

Description

The Get-FabricLongRunningOperation function queries the Microsoft Fabric API to check the status of a long-running operation. It periodically polls the operation until it reaches a terminal state (Succeeded or Failed).

Examples

Example 1

This command polls the status of the operation with the given operationId every 10 seconds until it completes. ``powershell ``

Get-FabricLongRunningOperation -operationId "12345-abcd-67890-efgh" -retryAfter 10

Parameters

NameTypeReq.Pos.PipelineDescription
-Location string 1 –

The URL provided in the Location header of the initial request. This is used to check the status of the operation.

-OperationId string 0 –

The unique identifier of the long-running operation to be monitored.

-RetryAfter int 2 –

The interval (in seconds) to wait between polling the operation status. The default is 5 seconds.

Default: 5
-Timeout int 3 –

The maximum time, in minutes, to wait for the operation. A value of 0 waits indefinitely.

Default: 0
-TimeoutSeconds int 4 –

The remaining timeout budget, in seconds, passed internally to limit long-running operation polling.

Default: 0

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

Notes

Author: Tiago Balabuch