Hey Nuthanon, it sounds like you're encountering an issue with creating or viewing agents, along with potential Cosmos DB errors. Here are some steps you can take to troubleshoot this situation:
Possible Causes and Solutions:
Timeout Error: If you're hitting a timeout (60000ms exceeded), this might indicate a problem with connectivity to Cosmos DB.
- Action: Ensure that your Azure resources (like the AI project and VNET) are in the same region as the Cosmos DB. You should also verify that any firewalls on the agents’ subnet allow access to the required Fully Qualified Domain Names (FQDNs). Network Configuration Issues:
- Action: Make sure that your VNET and any private endpoints are configured only when creating the agent. Adding them later is not supported. Ensure all resources are in the same Azure region.
Permission Issues: If your access is restricted, check if the service principal or managed identity has the necessary roles on the AI project.
- Action: Assign roles such as Azure AI User or Azure AI Project Manager to the identity used by the agent. If using reasoning features like groundness detection, assign the Cognitive Services OpenAI Contributor role as well.
Cosmos DB Configuration: If there's an error specifically related to the Cosmos DB configuration, you might need to inspect any error details provided.
- Action: Consider reviewing the Cosmos DB metrics in the Azure portal for any discrepancies or issues logged.
Next Steps:
If the issue persists after trying the above solutions, please provide more information on the following:
- What specific error messages are you seeing when you attempt to create or view the agents?
- Are there any changes made recently to the networking or permissions for the resources involved?
- Have you checked connections between the AI Foundry project and Cosmos DB (like private endpoints)?
Hope this helps! Let me know if you need further assistance!
Reference Links:
- Troubleshoot problems creating, accessing, or managing agents
- Networking configuration issues and limitations
- Role-based access for Azure AI Foundry
- Azure Cosmos DB configurations and limitations
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.
Thanks
Pratyush