azureapiaccess-tokenhttp-status-code-401azure-video-indexer

why I get an 401 error when i upload a file to video indexer


I've created a logic app that uploads a video file from OneDrive to VideoIndexer for processing. Im getting an 401 error.

{
  "ErrorType": "USER_NOT_ALLOWED",
  "Message": "Access token does not have 'Contributor' permission. Trace id: '*****'."
}

** Im using a Trial account ** the error happened in callback url step

I tried to give a contributor access in the IAM account of my Media service.


Solution

  • When using a Trial account you need to retrieve a token using the dataplane API https://api-portal.videoindexer.ai/api-details#api=Operations&operation=Get-Account-Access-Token

    Make sure you select "trial" as region and that you create a token with "edit" permission scope.