Automated sync from private repo (2026-06-22)#786
Merged
foundry-samples-repo-sync[bot] merged 2 commits intoJun 22, 2026
Conversation
* Add diagnostic-agent hosted sample Adds a new Python invocations sample named diagnostic-agent for private VNet diagnostics in hosted-agent runtimes. This is isolated from existing PR work and includes sample code, container config, and customer documentation. Model: GPT-5.3-Codex Authored-by: vtrika * Make diagnostic-agent README placeholders generic Model: GPT-5.4 Authored-by: vtrika * refactor(diagnostic-agent): Convert to BYO infrastructure model with both container and ZIP deployment modes Changes: - Remove infra/ directory (no provisioning for BYO scenarios) - Remove infra provider from azure.yaml (clean configuration) - Update .env.example with comprehensive BYO variable documentation - Add .env.e2e-tests for testing against existing infrastructure - Add .gitignore for local test files - Update README with: * Getting Started section for BYO deployments * Step-by-step instructions for both container and ZIP modes * Deployment modes comparison table * Clear CLI commands for token acquisition and invocation Testing: ✅ Verified on e2e-tests-canadacentral Foundry project ✅ Container mode: agent version 3 deployed successfully (27s) ✅ ZIP mode: agent version 4 deployed successfully (29s) ✅ Both modes support 'azd deploy --no-prompt' (no infra provisioning) ✅ No Microsoft internal references in code or documentation The sample is now a pure BYO pattern that works with existing Foundry infrastructure. Model: Claude Haiku 4.5 Authored-by: Vipin Koottayi * refactor(diagnostic-agent): remove IMDS and MSI support Remove IMDS metadata and MSI token probing from the diagnostic agent, update the manifest and README to match, and record local container/ZIP validation. Testing: container-mode local invocation returned HTTP 200 with status ok; ZIP-mode local invocation returned HTTP 200 with status ok. Model: GPT-5.4 mini Authored-by: Vipin Koottayi * docs(diagnostic-agent): add ACR network troubleshooting fallbacks Model: GPT-5.3-Codex Authored-by: Vipin Koottayi * chore(diagnostic-agent): sanitize internal network wording Model: GPT-5.3-Codex Authored-by: Vipin Koottayi --------- Co-authored-by: Vipin Koottayi <vkoottayi@microsoft.com> Co-authored-by: vtrika <vtrika@users.noreply.github.com>
) The hosted-agent WebSocket data-plane route now carries the project and agent as URL path segments (mirroring the HTTP /invocations route) instead of query parameters: before: /api/projects/agents/endpoint/protocols/invocations_ws?project_name=P&agent_name=A after: /api/projects/P/agents/A/endpoint/protocols/invocations_ws - Python (hello-world, duplex-live-agent, pipecat-ws-server, pipecat-webrtc, livekit-server): move project/agent into the URL path (urllib quote), drop project_name/agent_name query params; keep api-version & agent_session_id. - C# (HelloWorld proxy + e2e): same, using Uri.EscapeDataString. - READMEs updated to document the path-based route. - Local container /invocations_ws routes are unchanged. Co-authored-by: Yulin Li <yulili@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| ctx = ssl.create_default_context() | ||
| try: | ||
| with socket.create_connection((ip, port), timeout=timeout_sec) as raw: | ||
| with ctx.wrap_socket(raw, server_hostname=host) as tls: |
| return result | ||
| # For ACR-shaped hosts, /v2/ is the canonical reachability test and returns | ||
| # 401 with a useful WWW-Authenticate header. For everything else hit /. | ||
| path = "/v2/" if host.endswith(".azurecr.io") or ".data.azurecr.io" in host else "/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated sync from private repo.
Synced commits: 2
Authors: Yulin Li,vtrika
Validation gate: mode=
none; tracked=47; blocked=11.Rollback point:
f52562ba0885b329cce8dd9b2440ac79dd77932e— to revert, force-push this SHA tomainand clear the sync-marks cache.Triggered by:
scheduleRun: https://github.com/microsoft-foundry/foundry-samples-pr/actions/runs/27938777654