I am working on a Power Automate flow to upload videos to Azure AI Video Indexer. To do so, I need to obtain an access token. However, when I try to use the "Get Access Token" action, I receive the error message: 'You can only use the ARM management API for management calls on accounts created on ARM'. I then tried to use the ARM API to generate a token by sending a POST request with the following JSON body:
ARM API : https://management.azure.com/subscriptions/aa8c3ac8-ea70-4179-beb9-8080afec74bc/resourceGroups/klineresearchgroup/providers/Microsoft.VideoIndexer/accounts/callrecording/generateAccessToken?api-version=2024-01-01
POST
Header:
Content-Type : application/json
Body:
{
"permissionType": "Contributor",
"scope": "Account"
}
Unfortunately, I still encountered an error.
Can someone please help me figure out how to obtain the access token I need to upload videos to Video Indexer using Power Automate?
Thank you.