The way to get api key

Dmytro Dronov 0 Reputation points

I'm having trouble getting an api key.
No, everything is OK if you follow this tutorial
but I need to get this api key programmatically in my pipeline. Is there some way to extract the api key using CLI or some kind of sdk, maybe a workeround?
If there is no such way, then other developers may agree with me that it is worth implementing. P.S. I am aware of similar questions like this one: But this does not suit me, I do not want to receive an access token, I want an api key

Azure AI Video Indexer
Azure AI Video Indexer
An Azure video analytics service that uses AI to extract actionable insights from stored videos.
62 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Itai Norman 21 Reputation points Microsoft Employee

    Hi @Dmytro Dronov ,

    Did you see the code sample add the bottom of the article?
    The best practice is to store the API key in a key vault and get the API key using the key vault commands.

    Other option is to save it as a variable in your code. For the first you will need to manually retrieve it from the API portal.

    However, this is regrading to our classic account. The preferred way is to use ARM-based account, using ARM based account will resolve the use of API key. the auth will be in two steps:
    az login
    get access token
    Code sample


    0 comments No comments