Home > front end >  Azure Video Analyzer for Media - ARM_ACCOUNT_MUST_BE_MANAGED_BY_ARM
Azure Video Analyzer for Media - ARM_ACCOUNT_MUST_BE_MANAGED_BY_ARM

Time:03-10

I have followed this tutorial to create an unlimited account: https://docs.microsoft.com/es-es/azure/azure-video-analyzer/video-analyzer-for-media-docs/create-video-analyzer-for-media-account

Now, I have 4 new resources in my Azure Portal:

  • Managed Identity
  • Media Service
  • Storage Account
  • Video Analyzer for Media

Then, I created a new subscription in this page: https://api-portal.videoindexer.ai/product#product=authorization

Everything seems to be ok, but when I try to call the API to get an Account Access Token I get this error:

{
    "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: 'c99f6cd7-8577-4f3f-b7b8-58a504e60b7d'."
}

Any idea?

CodePudding user response:

You should use ARM APIs in order to get access token for you account. Please see here: https://docs.microsoft.com/en-us/azure/azure-video-analyzer/video-analyzer-for-media-docs/create-video-analyzer-for-media-account#management-api You can generate access token using Azure Portal thorugh your resources.

If you have any further question please let me know.

CodePudding user response:

Please see sample in there how to generate access token for AVAM ARM account: https://github.com/Azure-Samples/media-services-video-indexer/tree/master/ApiUsage/ArmBased

(look at Program.cs)

  • Related