Skip to content

Commit 4f0a996

Browse files
committed
use $FabricConfig.BaseUrl to avoid a hard-coded base URL.
1 parent 8bfa71f commit 4f0a996

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/Public/Utils/Get-FabricLongRunningOperation.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This command polls the status of the operation with the given operationId every
4343
# Use the Location header to define the operationUrl
4444
$apiEndpointUrl = $location
4545
} else {
46-
$apiEndpointUrl = "https://api.fabric.microsoft.com/v1/operations/{0}" -f $operationId
46+
$apiEndpointUrl = "{1}/operations/{1}" -f $FabricConfig.BaseUrl, $operationId
4747
}
4848
Write-Message -Message "API Endpoint: $apiEndpointUrl" -Level Debug
4949

source/Public/Utils/Get-FabricLongRunningOperationResult.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This command fetches the result of the operation with the specified operationId.
2828
)
2929

3030
# Step 1: Construct the API URL
31-
$apiEndpointUrl = "https://api.fabric.microsoft.com/v1/operations/{0}/result" -f $operationId
31+
$apiEndpointUrl = "{0}/operations/{1}/result" -f $FabricConfig.BaseUrl, $operationId
3232
Write-Message -Message "API Endpoint: $apiEndpointUrl" -Level Debug
3333

3434
try {

0 commit comments

Comments
 (0)