Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Hello S K, Raghav,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having Azure Foundry workflow agents deployment issue.
To resolve this, you must first ensure that the workflow’s final handoff returns a Basic chat > text message, not a structured or tool‑dependent value. This involves reviewing each agent node in the Foundry visualizer to confirm that the output is explicitly saved as plain text (for example, Local.LatestMessageText) and that no node expects or emits tool output. The Foundry workflow guidelines emphasize using clearly defined message types and understanding how variables flow through sequential nodes to prevent unintended PortableValue serialization.
Next, convert any remaining structured values into text before the final message is sent. If a data transformation node or agent produces a PortableValue or structured element, use a Set‑Variable or Parse‑Value node to fully stringify the content. This avoids the PortableValue error that arises when Teams/Copilot expects a chat message but receives an unsupported type. The Agents in Workflows guide’s sequential agent pipeline demonstrates how message consistency ensures that downstream executors can successfully process outputs without expecting tool calls.
Once the workflow’s output path is fully normalized, republish the agent so it receives a stable endpoint and proper identity through Foundry’s publishing mechanism. Microsoft recommends verifying that users interacting with the published agent in Teams or Copilot have the appropriate Azure AI User role on the Agent Application scope to prevent runtime invocation errors. You can find these publication requirements and RBAC details in the Foundry agent‑publishing documentation - https://learn.microsoft.com/en-us/azure/ai-foundry/agents/how-to/publish-agent.
Finally, run validation tests in Teams/Copilot and monitor the conversation traces in Foundry’s observability dashboard to ensure the workflow is now returning a clean text message with no tool bindings. If using azd or hosted agent infrastructure, also verify the regional limitations and preview constraints described in the Azure Developer CLI agent extension guide: https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/extensions/azure-ai-foundry-extension. This complete alignment of workflow output type, publishing configuration, and environment constraints reliably eliminates the recurring PortableValue and missing tool‑output failures.
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.