We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f74c597 commit 077368cCopy full SHA for 077368c
source/Public/Utils/Get-FabricLongRunningOperation.ps1
@@ -29,7 +29,7 @@ Author: Tiago Balabuch
29
#>
30
param (
31
[Parameter(Mandatory = $false)]
32
- [guid]$operationId,
+ [string]$operationId,
33
34
35
[string]$location,
@@ -42,8 +42,8 @@ Author: Tiago Balabuch
42
Confirm-TokenState
43
44
# Step 1: Construct the API URL
45
- if ($location) {
46
- # Use the Location header to define the operationUrl
+ if (-not $operationId) {
+ # Use the Location header to define the operationUrl, if OperationId is not provided
47
$apiEndpointUrl = $location
48
} else {
49
$apiEndpointUrl = "operations/{0}" -f $operationId
0 commit comments