Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
45% 95%+50 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 10 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
25 agent runs
1 forkA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
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.Next to this one in the catalogue, plus more from the same author.