Hi Akundy, Vyas
Welcome to Microsoft Q&A and Thank you for reaching out.
You’re seeing the Timeout Error because the Azure OpenAI Containers API isn’t fully exposed for direct management through the Python SDK. In Azure, the container feature is mainly an internal mechanism that supports the Code Interpreter tool (used within the Responses API) rather than a standalone service you can list or query directly.
So, when you call client.containers.list(), the SDK is trying to reach an endpoint (GET /openai/v1/containers) that either doesn’t exist in Azure’s implementation or isn’t enabled in your region hence the timeout.
In Azure OpenAI, you don’t actually need to manually create or list containers to use the Code Interpreter. Instead, Azure provides an “auto” mode where containers are automatically managed behind the scenes. You simply upload files with client.files.create() and then reference those file IDs in the Responses API request by specifying a container parameter with "type": "auto". This automatically creates a temporary container for your code execution task, which is valid for a limited time (usually around one hour with an idle timeout of 20 minutes).
If you still want to confirm whether container management endpoints are available, you can check Azure’s REST API documentation or try calling GET https://<your-resource>.openai.azure.com/openai/v1/containers directly with tools like Postman but most users report this endpoint is either restricted or unsupported in Azure.
In short, the timeout isn’t caused by your setup but by the fact that Azure OpenAI doesn’t yet support explicit container listing. The correct approach is to rely on automatic container creation via the Responses API using "container": {"type": "auto"} and file_ids.
References
- Azure OpenAI Responses API overview & regions: [Azure Open...soft Learn | Learn.Microsoft.com]
- Guidance on container file download URLs on Azure: [stackoverflow.com]
- Official sample repo for Azure Responses API: [github.com]
I Hope this helps. Do let me know if you have any further queries.
Thank you!