How can I obtain an access token for ARM account in Video Indexer using Power Automate?

Vishnoi, Astha 160 Reputation points
2024-01-24T08:14:01.9333333+00:00

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.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,655 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.