Skip to content

Llama Index access with Azure OpenAI Managed Identity #13496

Closed Answered by dosubot bot
himanshu-msft asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can access the Llama Index using Azure OpenAI with Azure Managed Identity instead of directly providing an api_key. The process involves setting the use_azure_ad field to True in the AzureOpenAI class, which then uses Azure AD for token authentication. This method leverages the DefaultAzureCredential from the azure.identity package to authenticate and obtain tokens for Azure Cognitive Services access, ensuring a secure and convenient authentication method without the need for explicit API keys.

Here's a brief overview of what you need to do:

  • Ensure the use_azure_ad field is set to True to enable Azure AD authentication.
  • Use the DefaultAzureCredential method to handle authentica…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by himanshu-msft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant