Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microsoft/foundry-hosted-agent-validation
Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and `azd ai agent run`) and after deploying it to an Azure AI Foundry project with `azd`. Use this when asked to validate a hosted agent sample.
Passed 20 of 21 test cases with the skill, and 10 of 21 without it.
and 21 more in the full report
11 fixed10 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
This benchmark measured an earlier version of the skill.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
After deploying a hosted agent to Azure AI Foundry, which CLI command reveals the environment variables registered in the deployed agent's active definition?
| Checked | Without skill | With skill |
|---|---|---|
| Directs executing azd ai agent show <agent-name> --output json. | Missed | Passed |
The instructions your model reads when the skill loads.
A hosted agent sample is "validated" when it passes three independent checks, plus cleanup:
python main.py) and invoke it over HTTP.azd ai agent run — the azd local dev loop.azd deploy to Foundry, then invoke the hosted agent.Each check must succeed for single-turn and multi-turn (session /
previous_response_id) conversation. Always end with cleanup (delete the
deployed agent, remove the temp azd project, restore the sample dir).
Read the sample's own
README.mdand the parent.../foundry-hosted-agents/README.mdfirst — they define the run/deploy commands and any sample-specific payload. This skill captures the process and the non-obvious gotchas the READMEs don't.
Gather these:
https://<account>.services.ai.azure.com/api/projects/<project>.azd ai agent init):
/subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.CognitiveServices/accounts/<account>/projects/<project>.
Find it with az cognitiveservices account list + the project name.gpt-4.1-mini). This is
often different from the model id in agent.manifest.yaml — the actual
deployment name wins.myacr.azurecr.io). Reusing one avoids azd provision creating resources.test cases passed, vs 10 / 21 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.