Search code examples
azureazure-cognitive-servicesazure-video-indexer

Azure Video Analyzer for Media - ARM_ACCOUNT_MUST_BE_MANAGED_BY_ARM


I have followed this tutorial to create an unlimited account: https://learn.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?


Solution

  • 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)