[Doc Issue] Quickstart: Deploy your first hosted agent - Microsoft Foundry | Microsoft Learn needs to be updated
- Dominant language
- Go
- Stars
- 569
- Forks
- 364
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 136
Description
azd version 1.23.6 (commit 16c72e70630dd9b078f457902b04e9ddac736ec8)
Walking through [Quickstart: Deploy your first hosted agent - Microsoft Foundry | Microsoft Learn](https://learn.microsoft.com/en-us/azure/ai-foundry/agents/quickstarts/quickstart-hosted-agent?view=foundry)
1. Pre-req - "[Microsoft Foundry project](https://learn.microsoft.com/en-us/azure/ai-foundry/tutorials/quickstart-create-foundry-resources?view=foundry)" should be removed. I assumed I need to create a project manually before I start but a new project is actually created for me.
2. PowerShell Invoke-RestMethod hides nested response content — It displayed System.Object[] instead of the actual agent output. Fix: pipe through .output.content | ConvertTo-Json -Depth 5 to expand the nested objects and see the full text response. Recommend using this instead:
```
(Invoke-RestMethod -Method Post -Uri "http://localhost:8088/responses" -ContentType "application/json" -Body '{"input":"What is Microsoft Foundry?"}').output.content | ConvertTo-Json -Depth 5
```
Contributor guide
Assessment
This issue has not been assessed yet.