@Gambhir, Rishabh If you have followed the steps on this page to create a VI resource then the resource created is an ARM account and not a classic account. This is the reason the API you are using is throwing an error saying that the account is managed by ARM.
This article walks you through the steps of creating the Azure AI Video Indexer account and its accompanying resources. The account that gets created is Azure Resource Manager (ARM) account. For information about different account types, see Overview of account types.
A paid account is an ARM account and you need to use the correct API to generate the access token.
Azure AI Video Indexer paid accounts are Azure Resource Manager (ARM) based and unlike trial accounts, are created with your Azure subscription. ARM-based accounts give you access to security and management capabilities, such as Role Based Access Control (RBAC) user management, Azure Monitor integration, deployment through ARM templates, and more.
You can no longer create a classic account. Existing Classic accounts will be retired on June 30th, 2024. If you currently have a classic account, see the migration guide.
I hope this helps!!
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.