We have implemented the prerequisite for the database movement API
we are able to list all backups, the impersonated user is project owner on LCS
$projectId = "XXXXXXXXXXXXXXXX"
$sourceEnvironmentId = XXXXXXXXXXXXXXXXXXXXXXXXXXX"
$BackupName = "JAN.bakpak"
$refreshUrl = "">lcsapi.lcs.dynamics.com/.../$BackupName"
$sourceEnvironmentId = XXXXXXXXXXXXXXXXXXXXXXXXXXX"
$BackupName = "JAN.bakpak"
$refreshUrl = "">lcsapi.lcs.dynamics.com/.../$BackupName"
$refreshHeader = @{
Authorization = "Bearer $token"
"x-ms-version" = '2017-09-15'
"Content-Type" = "application/json"
}
Authorization = "Bearer $token"
"x-ms-version" = '2017-09-15'
"Content-Type" = "application/json"
}
$refreshResponse = Invoke-RestMethod $refreshUrl -Method 'POST' -Headers $refreshHeader
Write-Output $refreshResponse
Write-Output $refreshResponse
IsSuccess OperationActivityId ErrorMessage Versi
2020-05-20T11:11:31.9949463Z onEOL
2020-05-20T11:11:31.9965510Z --------- ------------------- ------------ -----
2020-05-20T11:11:31.9981451Z False d6a6ce68-10f1-4684-b580-85b1d09b8d95 You don't have the required permissions to perform this operation. 99...
what can it be?