Forum Discussion

TanHoangMinhNguyen's avatar
TanHoangMinhNguyen
Copper Contributor
May 19, 2023

CreateMigrationJob api not working with ProvisionedMigrationContainers and ProvisionedMigrationQueue

Hello all,

Currently I'm facing the problem when I'm using the ProvisionedMigrationContainersInfocontainer uri for Data, the ProvisionedMigrationContainersInfocontainer uri for MetaData and the ProvisionedMigrationQueueInfo uri for Queue to run the api as below

ctx.Site.CreateMigrationJob(webId, importDataContUriStr, importMetaDataContUriStr, importQueueUriStr);

But I got the error

 

As I know, the Uri generated by ProvisionedMigrationContainersInfocontainer is not enough permission. It's missing List permission that is required for this api. And the Uri generated by ProvisionedMigrationQueueInfo is also not enough permission. It's missing SharedAccessQueuePermissions.Update permission.

Uri for Data: https://xxxxx.blob.core.windows.net/0-1623-20230512-1b0c6bae3f21454bbeed44a8822b89cb?sv=2018-03-28&sr=c&sig=gUEUwrSiX5XbZJxTqbuReCrLEqRJxvNnIDAoj1jkJP8%3D&st=2023-05-08T00%3A00%3A00Z&se=2023-05-12T00%3A00%3A00Z&sp=rw

Uri for MetaData: https://xxxx.blob.core.windows.net/0-1623-20230512-572e3a8444a54a6db9301b3a0ff92f0c?sv=2018-03-28&sr=c&sig=0at4KaagpKJh3Jc6mlhQn4I5wYrs9onC1tNgra7GcS8%3D&st=2023-05-08T00%3A00%3A00Z&se=2023-05-12T00%3A00%3A00Z&sp=rw

Uri for queue: https://xxxx.queue.core.windows.net:443/1623pq20230509-b51805b423b14ef4b77a41955bdbeb9c?sv=2018-03-28&sig=rTx4Wo5icJDlYL0Zyrfxy5Fx7BQyIsrsYz0Z12126Qw%3D&st=2023-05-08T00%3A00%3A00Z&se=2023-05-30T00%3A00%3A00Z&sp=rap

Ex: sp=rw (Read and Write), should be sp=rwl
Ex: sp=rap (Read,Add and Process), should be sp=rau

Ref: https://learn.microsoft.com/en-us/sharepoint/dev/apis/migration-api-overview

But I could not try to gen another SAS uri token to change the permission

Question: is it possible to make this api works with ProvisionedMigrationContainers and ProvisionedMigrationQueue ? Or possible to gen another SAS uri token from ProvisionedMigrationContainersInfocontainer and ProvisionedMigrationQueueInfo

 

Thanks and regards,
//TanHoangMinhNguyen

 

No RepliesBe the first to reply

Resources