ARM-created Azure AI Video Indexing using Get Account Access Token With Permission returns 400

Kaylee Elúvian 20 Reputation points
2024-03-28T18:18:51.25+00:00

Hi,

I'm losing my mind trying to debug this. I have an Azure AI Video Indexer created from an ARM template (following this instruction https://learn.microsoft.com/en-us/azure/azure-video-indexer/deploy-with-arm-template?tabs=deplybutton).

I cannot execute the AccessTokenWithPermission method in the api-portal.videoindexer.ai environment due to a 400:

{
    "ErrorType": "ARM_ACCOUNT_MUST_BE_MANAGED_BY_ARM",
    "Message": "You can only use the ARM management API for management calls on accounts created on ARM. <a href=\"https://aka.ms/avam-arm-docs\">Learn more</a>. Trace id: 'b869e714-3ee9-411f-8525-f254cdc8a940'."
}

The Learn More link goes to a 404.

This is after trying to use about a billion other ways to try to get a programmatically requested access token for our business application. Requesting one manually through Azure Portal works fine - but is only valid for an hour. I'm encountering nothing but weird roadblocks trying to do this any other way, though.

Does anybody know what I'm doing wrong here?

Thank you x

Azure AI Video Indexer
Azure AI Video Indexer
An Azure video analytics service that uses AI to extract actionable insights from stored videos.
44 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
948 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,375 questions
{count} votes

Accepted answer
  1. navba-MSFT 17,110 Reputation points Microsoft Employee
    2024-03-29T03:31:50.9233333+00:00

    @Kaylee Elúvian Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I was able to invoke the VideoIndexer generate Access Token REST API and get the access token.

    You can try to click on the TryIt option and fill the required field and then generate the Access Token. Here is the sample access token, I received.

    User's image

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful