May 18 2023 11:39 PM
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&s...
Uri for MetaData: https://xxxx.blob.core.windows.net/0-1623-20230512-572e3a8444a54a6db9301b3a0ff92f0c?sv=2018-03-28&sr...
Uri for queue: https://xxxx.queue.core.windows.net:443/1623pq20230509-b51805b423b14ef4b77a41955bdbeb9c?sv=2018-03-2...
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