1.
Navigate to your Azure AI Search service in the Azure Portal
2.
Go to Settings > Identity
3.
Under System assigned tab, set Status to On
4.
Navigate to Storage account
5.
Go to Access Control (IAM) > Add role assignment
6.
Select Storage Blob Data Contributor and assign it to your search service
1.
In the Azure Portal, navigate to your Azure AI Search service (e.g., srch-dev-westus-001)
3.
Check the API access control tab
4.
Ensure it is set to Both (API keys and role-based access control) or Role-based access control
1.
Navigate to your Azure AI Search service in the Azure Portal
2.
Click on Access control (IAM) in the left navigation menu
3.
Click + Add and select Add role assignment
4.
Search for and select one of the required roles (e.g., Search Index Data Reader)
5.
Click Next to go to the Members tab
6.
Select User, group, or service principal as the identity type
8.
In the members panel, search for service principal associated with the MCP Server
9.
Select the MCP Server service principal (it will have a GUID in its ID)
11.
Click Review + assign and then assign again to confirm
12.
Repeat steps 3-11 for each required role
1.
Navigate to your Cosmos DB account in the Azure Portal
2.
Go to Settings > Networking
3.
Under the Public access tab, ensure Selected networks is chosen
4.
In the Virtual networks section, click + Add existing virtual network
5.
Select the same virtual network and subnet where your Azure MCP Server web app is deployedTo find this: Navigate to your MCP Server web app > Networking > Virtual network integration
Note the virtual network name and subnet
1.
Navigate to your Cosmos DB account in the Azure Portal
2.
Click on Access control (IAM) in the left navigation menu
3.
Click + Add and select Add role assignment
4.
Search for and select Cosmos DB Account Reader Role
5.
Click Next to go to the Members tab
6.
Select Managed identity as the identity type
8.
Search for and select the MCPServer service principal
10.
Click Review + assign and then assign again to confirm
11.
Repeat for DocumentDB Account Contributor role
The account name (e.g., 'mycosmosaccount')
The database name (e.g., 'sales', 'products')
The container name (e.g., 'orders', 'users')
The query conditions in natural language (e.g., 'where price is less than 50', 'placed after January 1')
Ensure your prompts include all required information (service/account, index/database, container)
Use clear, specific language describing what you want to query
For Cosmos DB, structure queries as natural language conditions (e.g., 'where price is greater than 100')
For AI Search, use search terms and keywords rather than SQL syntax
Query Azure AI Search indexes using natural language prompts
Retrieve schema and field information from search indexes
List and query Cosmos DB accounts, databases, and containers
Execute data queries against Cosmos DB using conversational prompts