Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Hi Ockert Goosen,
What you are seeing is expected based on how Azure AI Foundry agents behave after publishing to Teams. This is not a SDK issue or something broken in your code.
When you publish a Foundry hosted agent to Teams or Microsoft 365 Copilot, the project is converted into an Agent Application. As part of this process, Foundry creates new identities and switches the runtime to the agent pipeline that is designed for Teams and Copilot. After this switch, the project‑level Assistants API is no longer the supported surface.
That is why POST /assistants starts returning 200 with an empty body. The call is effectively ignored because assistants are no longer meant to be created or managed at the project endpoint once the project is published. This also explains why the Playground and SDK stop working if they still depend on the project Assistants API.
After publishing, you should not use the project Assistants or Responses endpoints anymore. Instead, all traffic must go through the Agent Application endpoint that is created during publishing. This endpoint is the supported way to interact with the agent after it is exposed to Teams.
This endpoint is stable and continues to work after publishing. Make sure the caller identity has the Azure AI User role assigned on the Agent Application scope, not just on the project. Publishing creates a separate agent identity, so roles may need to be reassigned for tools or downstream access to keep working.
If you still need direct access to the Assistants API for testing or programmatic agent creation, the safest approach is to keep a separate Foundry project that is never published. Use that project only for Assistants API workflows and use a different project for Teams publishing. Once a project is published, it is expected to stay in the agent application mode.
In short, publishing to Teams changes the supported API surface. After publishing, always invoke the Agent Application endpoint, and avoid using POST /assistants on the original project.
I Hope this helps. Do let me know if you have any further queries.
Thankyou!