An Azure video analytics service that uses AI to extract actionable insights from stored videos.
The error INVALID_AUTH_SUBSCRIPTION_KEY indicates that the subscription key being sent to the Azure AI Video Indexer endpoint is invalid or not associated with an active subscription for that API. This is an authentication/authorization problem at the API Management layer, not a limitation of the trial minutes themselves.
From the context, similar 401 errors in Azure API Management occur when:
- The
Ocp-Apim-Subscription-Keyheader contains the wrong value (for example, a hard-coded or outdated key), or - No valid subscription key for the product/API is being passed at all.
In a Power Automate scenario calling Azure AI Video Indexer (including a trial account), the supported approach is:
- Ensure a valid Video Indexer subscription key is used
- In the API Management developer portal for the Video Indexer APIs, verify the active subscription and copy the correct subscription key for the product that exposes the Video Indexer operations.
- Confirm that the subscription is active and not expired or disabled.
- Pass the key correctly from Power Automate
- In the HTTP action used to call the Video Indexer API, add the header:
-
Ocp-Apim-Subscription-Key:<your valid subscription key>
-
- Make sure there is no other hard-coded
Ocp-Apim-Subscription-Keyheader (for example, copied from a sample or previous environment) that overrides the correct value. The common failure pattern is a wrong hard-coded key in the request definition.
- In the HTTP action used to call the Video Indexer API, add the header:
- Use the trial account minutes as normal
- The trial account provides 2,400 free indexing minutes and can be used via both the Video Indexer website and the API. Trial usage is still enforced through the same API Management layer and therefore still requires a valid subscription key.
- As long as the correct subscription key is used and the trial is active, the API calls from Power Automate are supported and will be billed against the free trial minutes until they are exhausted.
If the error persists after confirming the correct key and header usage, re‑generate the subscription key in the API portal (if available) and update the Power Automate flow to use the new key, then test again.
References: