Azure AI Foundry: Deploy to Teams, API Key Method

Quinn S 0 Reputation points
2025-03-10T21:27:49.3066667+00:00

I am trying to deploy an Azure AI Foundry Project into Microsoft Teams. According to the generated README from the zipped application folder, the Azure AI Search Key just needs to be pasted into the config.json file. What is the syntax needed for the API Key to have it set up properly in the JSON file?

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,223 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alekhya Vaddepally 0 Reputation points Microsoft External Staff
    2025-03-11T12:24:47.81+00:00

    Hi Quinn S,

    In config.json is used to store configuration details, it includes Azure AI search key to allow application to authenticate and interact within Azure AI search

    we need to write the syntax correctly otherwise it may not work properly

    To add or update the Azure AI search key in config.json file for your Azure AI Foundry project, you can follow syntax like:

    {

    "AzureAISearch": {

    "APIKey": "your-azure-ai-search-key-here"
    ```  }
    
    }
    
    Replace the "your-azure-ai-search-key-here" with the actual API key provided in your Azure portal.
    
    Also Ensure The key is inside double quotes. The JSON structure remains valid (commas, brackets, and formatting are correct). No extra spaces or hidden characters are included that might cause parsing issues.
    
    [https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/use-your-data?tabs=ai-search%2Ccopilot#deploy-to-a-copilot-preview,-teams-app-preview,-or-web-app](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/use-your-data?tabs=ai-search%2Ccopilot#deploy-to-a-copilot-preview,-teams-app-preview,-or-web-app)
    
    [https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/use-web-app#connecting-to-azure-ai-search-and-uploaded-files-as-a-data-source](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/use-web-app#connecting-to-azure-ai-search-and-uploaded-files-as-a-data-source)
    
    If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.
    
    Let me know if you have any further Queries.
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.