Skip to content

Labs: GA readiness for the Nov 18, 2026 general availability - #51

Merged
Paul Yuknewicz (paulyuk) merged 35 commits into
mainfrom
vieiraae-ga-labs
Nov 18, 2026
Merged

Paul Yuknewicz (paulyuk) merged 35 commits into
mainfrom
vieiraae-ga-labs

Conversation

@vieiraae

@vieiraae Alex Vieira (vieiraae) commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

What's in this PR

This PR aligns the labs with the GA management API (2026-11-01), adds a Terraform track, and covers the October 28, November 6, November 9 and November 12, 2026 releases. It adds labs 26–33, for 35 labs in total. Every lab was retested on live gateways with the latest az aigateway CLI release, 1.0.0b34, the portal, Bicep and azd, Terraform, and the notebooks.

New labs

Lab Release
26 · Publish embedding models for search and RAG Oct 28
27 · Route alias requests with conditions and session affinity Nov 6
28 · Let the gateway choose the model for each request Nov 6 and Nov 9
29 · Fail over to a backup model when a backend fails Nov 12
30 · Govern MCP tool calls with agent hooks Nov 6
31 · Publish Jev decision models for typed answers Nov 9
32 · Use gateway models in Microsoft Foundry projects Microsoft Foundry gateway connection
33 · Connect Microsoft 365 Copilot to MCP tools as the signed-in user Nov 6 (on-behalf-of authentication)

Lab 33 adapts kostapetan/ai-gateway-end-to-end by Kosta Petan and credits it.

Terraform track

  • A new Terraform track in the quick start and 30 labs uses the AzAPI provider at 2026-11-01. SETUP.md has a new Deploy a lab with Terraform section.
  • Each track ran terraform apply, a no-changes terraform plan -detailed-exitcode, and terraform destroy.
  • Lab 21 also moves the state to Azure Storage with Microsoft Entra sign-in, and runs the plan from a GitHub Actions workflow with OpenID Connect.

Updated labs

  • Labs 00–25 and the quick start now use the GA resource shape, field names, portal labels and runtime behavior. Every Bicep template uses Microsoft.ApiManagement/aigateways@2026-11-01, and screenshots are refreshed.
  • Every CLI track runs on 1.0.0b34. That release removed the content safety options, so labs 08 and 09 write content safety with az aigateway model update --policies and az rest.
  • Highlights:
    • Lab 05: exact and wildcard tool matching.
    • Lab 11: the case-safe role filter.
    • Labs 13 and 14: failures and policies are attributed to their own request, and retried requests count once.
    • Lab 17: a new section migrates AI assets from Azure API Management with the plugin. It inventories the assets, reviews the migration strategy for each one, and finds the ones ready to migrate. Then it migrates them directly or builds the equivalent Bicep or Terraform.
    • Lab 18: add or remove the subnet after creation, the public network access 403, and reaching the gateway through an inbound private endpoint.
    • Lab 19: the GA tool-server shape, and tool threat protection verified with Agent 365.
    • Lab 20: Match tools by name pattern, the gateway's own server block, and Agent 365 consent, tool and block steps verified end to end, with screenshots.
    • Lab 25: tested with real Claude Opus, Sonnet and Haiku 5.5 models.
    • Lab 32: connects the app team's project from the Foundry portal's Gateways page.
    • Every runtime API key has a display name, and the notebooks keep the first run's record of what they created.
  • Site: the home page has a static architecture hero with lab previews, and its map includes the new labs. The "Production & emerging" category is now "Enterprise readiness". Widget countdowns run only after a request (WCAG 2.2.2), and the Pause animations button is gone.
  • RELEASE-NOTES.md has sections for Oct 28, Nov 6, Nov 9, Nov 12 and the Nov 18 GA. Release links now use the docs #release-YYYY-MM-DD anchors.
  • TROUBLESHOOTING.md has new rows from the retests. Every step name matches a real lab step.
  • Also updated: AUTHORING.md and AGENTS.md (Terraform in the update and verify steps), the agent skill facts, catalog.json, the diagrams, labs/README.md and the root README.md.

Validation

  • npm run check builds 35 labs with 0 warnings, and npm run releases -- --check exits with code 0.
  • main is merged in, including the CLI 1.0.0b33 and 1.0.0b34 releases and migrate-apim compile. Every migrate-apim command and flag lab 17 uses still exists, and the tool's 553 tests pass.
  • Every docs link was checked against the current docs routes.
  • The notebooks are committed without outputs.
  • Screenshots use placeholder gateway names and masked keys.
  • The Azure, Microsoft Entra and Microsoft 365 resources created for the retests are deleted.

Not covered or not testable

Replace the animated hero with the product's Blueprint architecture, using
the product icons. Each part opens a popover that previews its lab and up
to five related labs, each in its own category color. Also fix the preview
server crashing when a file disappears during a rebuild, and update the
release checker for the new docs bundle format.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
Align every lab with the GA API (2026-11-01) and the releases of
Oct 28, Nov 6, Nov 9 and Nov 12, 2026, and retest them with
az aigateway 1.0.0b31, the portal, Bicep and azd, and the notebooks.

- New labs 26-31 for the new release features, with diagrams,
  screenshots and notebooks where they help.
- Migrate labs 00-25 to the GA resource shape, field names, portal
  labels and runtime behavior, with refreshed screenshots.
- Release notes for Oct 28, Nov 6, Nov 9, Nov 12 and the Nov 18 GA,
  with the release links moved to the docs anchor format.
- Troubleshooting rows from the retest, plus updated authoring guide,
  agent skill facts, catalog and labs README.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
Clicking the TypeSafe AI (Jev) provider tile now lists lab 31 under Related
labs, and labs 26-31 appear on the parts they teach. npm run check now warns
when a lab isn't on the map, and AGENTS.md and AUTHORING.md say to add new labs to it.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
Bound every looping animation to 5 seconds instead (WCAG 2.2.2): diagram flow
lines run three times and run again while the reader hovers the diagram, and the
alias widget's active route runs four times. prefers-reduced-motion still turns
animations off.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
The arrowheads were faint and tipped under the next card, which painted over them.
Each wire now ends at the next card's edge, above the cards, with a larger arrowhead
in a stronger color in both themes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
The 4.5px triangle halves and the 1.5px line snapped to the pixel grid differently,
which left each arrowhead about 0.7px off its line. The line and the arrowhead now
share one 10px box with whole-pixel sizes, so they stay centered at any zoom.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
…t 403)

Tested the gateway side of Agent 365 with a service principal that holds only the
built-in A365 Gateway Policy Operator role: a server block sets accessState and answers
HTTP 200 with a JSON-RPC AccessBlockedByGateway error; a tool block sets blockList and
answers ToolNotAvailable. Fix the role name and the managed-policy wording, and note
that self-registering AllowPrivateEndpoints stays Pending (lab 18).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
The oauthlib 4.0.1 pin was edited by hand in requirements.txt, so the next
uv pip compile could have resolved a vulnerable version again. Add
certifi>=2026.10.18 and oauthlib>=4.0.1 to requirements.in and recompile:
the pins are unchanged, and the lockfile is reproducible from its source.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
Use the server wildcard that the Claude Code permissions docs recommend for
all of an MCP server's tools, in the README, the notebook, the troubleshooting
table, and the skill. Checked with Claude Code 2.1.319 against a stub MCP
server named ai-gateway-learn: the rule allows the tool in claude -p, and the
run without a rule lists it in permission_denials.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
…kfile

Fixes Dependabot alert 3 (moderate: denial of service through quadratic-time
traceparent parsing in opentelemetry-api <= 1.45.1). Add the
opentelemetry-api>=1.45.2 floor to requirements.in and recompile, which also
moves opentelemetry-sdk to 1.45.2 and the instrumentation packages to 0.66b2.
The lockfile installs on Python 3.13, the agent's imports load, and
uv pip check finds no conflicts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Notebook reruns can leave billable resources behind and azd pointing to a deleted environment, while automatic widget updates lack a pause control required by WCAG 2.2.2.

3 open issues
What changed in this PR

Prepares the Azure AI Gateway labs for general availability, building on #36 and expanding the catalog from 27 to 33 labs.

Changes:

  • Migrates lab infrastructure and shared helpers to the 2026-11-01 API, including updated authentication, policy, telemetry, and resource shapes.
  • Adds deployment assets and examples for embeddings, conditional routing, automatic model selection, failover, agent hooks, and Jev decisions.
  • Refreshes notebooks, setup guidance, diagrams, site interactions, and supporting dependencies.
File Description
README.md Updates the lab count to 33.
labs/​tools/​serve.mjs Handles file-stream errors during rebuilds.
labs/​tools/​diagrams/​set-l31.mjs Adds the Jev decisions diagram.
labs/​tools/​diagrams/​set-l30.mjs Adds the agent hooks diagram.
labs/​tools/​diagrams/​set-l29.mjs Adds the model failover diagram.
labs/​tools/​diagrams/​lib.mjs Limits default diagram animation cycles.
labs/​tools/​diagrams.mjs Registers diagrams for labs 26–31.
labs/​site/​js/​99-init.js Initializes the new hero preview.
labs/​site/​js/​05-widgets-quota.js Removes shared simulation pause handling.
labs/​site/​js/​01-core.js Removes the global motion toggle logic.
labs/​site/​css/​07-responsive.css Adapts the architecture map for smaller screens.
labs/​site/​css/​06-widgets.css Limits alias animations and removes paused styling.
labs/​site/​css/​05-prose.css Enables continuous diagram animation on hover.
labs/​site/​css/​02-chrome.css Removes motion-toggle styling.
labs/​shared/​utils.py Uses the GA management API.
labs/​shared/​brand.py Displays both claim-override representations.
labs/​SETUP.md Updates CLI requirements and explains API differences.
labs/​quickstart/​infra/​resources.bicep Migrates quickstart resources to GA shapes.
labs/​build.mjs Adds diagram previews, map checks, and release-anchor support.
labs/​assets/​providers/​typesafe-ai-light.svg Adds the light-theme TypeSafe logo.
labs/​assets/​providers/​typesafe-ai-dark.svg Adds the dark-theme TypeSafe logo.
labs/​assets/​providers/​openai-light.svg Adds the light-theme OpenAI logo.
labs/​assets/​providers/​openai-dark.svg Adds the dark-theme OpenAI logo.
labs/​assets/​providers/​microsoft-foundry.svg Adds the Microsoft Foundry logo.
labs/​assets/​providers/​anthropic.svg Adds the Anthropic logo.
labs/​assets/​providers/​amazon-bedrock.svg Adds the Amazon Bedrock logo.
labs/​assets/​diagrams/​token-limits.svg Limits flow animation cycles.
labs/​assets/​diagrams/​threat-protection.svg Limits flow animation cycles.
labs/​assets/​diagrams/​streaming-usage.svg Limits flow animation cycles.
labs/​assets/​diagrams/​request-lifecycle.svg Limits flow animation cycles.
labs/​assets/​diagrams/​quickstart.svg Limits flow animation cycles.
labs/​assets/​diagrams/​provisioning.svg Limits flow animation cycles.
labs/​assets/​diagrams/​private-networking.svg Limits flow animation cycles.
labs/​assets/​diagrams/​policy-scopes.svg Limits flow animation cycles.
labs/​assets/​diagrams/​observability.svg Limits flow animation cycles.
labs/​assets/​diagrams/​mcp-federation.svg Limits flow animation cycles.
labs/​assets/​diagrams/​identity-boundaries.svg Limits flow animation cycles.
labs/​assets/​diagrams/​hosted-agent.svg Limits flow animation cycles.
labs/​assets/​diagrams/​github-copilot-byok.svg Limits flow animation cycles.
labs/​assets/​diagrams/​enterprise-reference.svg Limits flow animation cycles.
labs/​assets/​diagrams/​create-gateway.svg Limits flow animation cycles.
labs/​assets/​diagrams/​copilot-app-provider.svg Limits flow animation cycles.
labs/​assets/​diagrams/​claude-code.svg Limits flow animation cycles.
labs/​assets/​diagrams/​architecture.svg Limits flow animation cycles.
labs/​assets/​diagrams/​aliases.svg Limits flow animation cycles.
labs/​assets/​diagrams/​alias-routing.svg Limits flow animation cycles.
labs/​assets/​diagrams/​agent-365.svg Limits flow animation cycles.
labs/​31-jev-decisions/​infra/​ticket.json Adds a typed ticket-triage request.
labs/​31-jev-decisions/​infra/​requirements.txt Declares the TypeSafe SDK dependency.
labs/​31-jev-decisions/​infra/​main.parameters.json Maps Jev deployment environment settings.
labs/​31-jev-decisions/​infra/​main.bicep Orchestrates the gateway and Jev resources.
labs/​31-jev-decisions/​azure.yaml Adds azd provisioning for lab 31.
labs/​30-agent-hooks/​infra/​main.parameters.json Maps hook policy environment settings.
labs/​30-agent-hooks/​infra/​main.bicep Orchestrates the gateway and decision service.
labs/​30-agent-hooks/​infra/​hook/​requirements.txt Pins the Azure Functions dependency.
labs/​30-agent-hooks/​infra/​hook/​host.json Configures the Functions host and telemetry.
labs/​30-agent-hooks/​infra/​hook/​.funcignore Excludes local files from deployment.
labs/​30-agent-hooks/​infra/​hook-registration.bicep Registers the decision service in Entra ID.
labs/​30-agent-hooks/​infra/​guarded-tool-server.bicep Configures authenticated pre- and post-call hooks.
labs/​30-agent-hooks/​infra/​bicepconfig.json Enables the Microsoft Graph Bicep extension.
labs/​30-agent-hooks/​azure.yaml Adds function deployment and registration cleanup hooks.
labs/​29-model-failover/​infra/​main.parameters.json Maps backup model and failover settings.
labs/​29-model-failover/​infra/​main.bicep Orchestrates the failover lab resources.
labs/​29-model-failover/​infra/​deployments.bicep Deploys a small primary and backup model.
labs/​29-model-failover/​infra/​burst.sh Reports failover outcomes from Bash.
labs/​29-model-failover/​infra/​burst.ps1 Reports failover outcomes from PowerShell.
labs/​29-model-failover/​azure.yaml Adds azd provisioning for lab 29.
labs/​28-auto-model-selection/​infra/​route-prompts.sh Reports model selection and token usage.
labs/​28-auto-model-selection/​infra/​prompts.json Adds simple and complex routing prompts.
labs/​28-auto-model-selection/​infra/​main.parameters.json Maps model-selection settings and overrides.
labs/​28-auto-model-selection/​infra/​main.bicep Orchestrates automatic model selection resources.
labs/​28-auto-model-selection/​infra/​large-deployment.bicep Deploys the higher-quality model.
labs/​28-auto-model-selection/​azure.yaml Adds azd provisioning for lab 28.
labs/​27-conditional-routing/​infra/​research-deployment.bicep Deploys the research model.
labs/​27-conditional-routing/​infra/​main.parameters.json Maps research model and routing settings.
labs/​27-conditional-routing/​infra/​main.bicep Orchestrates conditional routing and affinity resources.
labs/​27-conditional-routing/​infra/​count-sessions.sh Demonstrates session affinity from Bash.
labs/​27-conditional-routing/​infra/​count-sessions.ps1 Demonstrates session affinity from PowerShell.
labs/​27-conditional-routing/​infra/​count-models.sh Counts routed requests from Bash.
labs/​27-conditional-routing/​infra/​count-models.ps1 Counts routed requests from PowerShell.
labs/​27-conditional-routing/​azure.yaml Adds azd provisioning for lab 27.
labs/​26-embeddings/​infra/​requirements.txt Declares the OpenAI SDK dependency.
labs/​26-embeddings/​infra/​publish-embeddings.bicep Publishes embeddings with a per-caller token limit.
labs/​26-embeddings/​infra/​main.parameters.json Maps embedding token-limit settings.
labs/​26-embeddings/​infra/​main.bicep Orchestrates the embeddings lab resources.
labs/​26-embeddings/​infra/​ingest.py Demonstrates throttling during bulk ingestion.
labs/​26-embeddings/​infra/​embeddings-deployment.bicep Deploys the embedding model in Foundry.
labs/​26-embeddings/​infra/​embed.py Demonstrates embeddings and cosine similarity.
labs/​26-embeddings/​azure.yaml Adds azd provisioning for lab 26.
labs/​25-claude-code/​25-claude-code.ipynb Preserves routing and updates MCP tool permissions.
labs/​24-github-copilot-byok/​infra/​copilot-model.bicep Migrates model resources to the GA API.
labs/​24-github-copilot-byok/​24-github-copilot-byok.ipynb Tracks resource ownership for cleanup.
labs/​23-streaming-responses/​23-streaming-responses.ipynb Updates the release documentation link.
labs/​22-model-routing/​infra/​alias-routing.bicep Migrates routing resources to the GA API.
labs/​21-enterprise-reference/​infra/​scripts/​connect-telemetry.sh Recognizes GA and preview exporter type fields.
labs/​21-enterprise-reference/​infra/​scripts/​connect-telemetry.ps1 Recognizes both exporter type fields in PowerShell.
labs/​21-enterprise-reference/​infra/​scripts/​apply-baselines.sh Applies baselines through the GA API.
labs/​21-enterprise-reference/​infra/​scripts/​apply-baselines.ps1 Applies baselines through the GA API.
labs/​21-enterprise-reference/​infra/​modules/​tools.bicep Migrates MCP resources and corrects naming comments.
labs/​21-enterprise-reference/​infra/​modules/​telemetry.bicep Migrates exporter endpoints and authentication.
labs/​21-enterprise-reference/​infra/​modules/​models.bicep Migrates provider and model resource shapes.
labs/​21-enterprise-reference/​infra/​modules/​keys.bicep Uses the GA API for runtime keys.
labs/​21-enterprise-reference/​infra/​modules/​gateway.bicep Uses the GA API and updates subnet guidance.
labs/​21-enterprise-reference/​infra/​main.bicep Removes the obsolete model API-format field.
labs/​21-enterprise-reference/​infra/​baselines.json Uses GA request-rate policy fields.
labs/​19-tool-threat-protection/​infra/​protected-tool-server.bicep Migrates MCP endpoints and failure-mode settings.
labs/​19-tool-threat-protection/​infra/​call-protected-tool.ps1 Corrects tool-name array concatenation.
labs/​18-private-networking/​infra/​private-network.bicep Simplifies network rules and updates networking guidance.
labs/​17-coding-agent-plugin/​README.md Clarifies discovery behavior and updates documentation links.
labs/​17-coding-agent-plugin/​17-coding-agent-plugin.ipynb Clarifies Python execution and updates the plugin link.
labs/​16-foundry-hosted-agent/​infra/​src/​gateway-agent/​requirements.in Updates framework dependencies and security minimums.
labs/​16-foundry-hosted-agent/​16-foundry-hosted-agent.ipynb Adjusts environment selection, diagnostics, and cleanup.
labs/​15-agent-frameworks/​README.md Adds Copilot SDK guidance and updates portal terminology.
labs/​15-agent-frameworks/​infra/​requirements.txt Updates compatible framework and SDK pins.
labs/​15-agent-frameworks/​infra/​.env.example Corrects the API-key portal label in comments.
labs/​14-otel-chargeback/​infra/​chargeback.kql Adds failure, missing-usage, and gateway-cost totals.
labs/​13-monitoring/​infra/​otel-exporter.bicep Migrates telemetry configuration to the GA schema.
labs/​13-monitoring/​infra/​monitoring.bicep Updates portal instructions in comments.
labs/​12-backend-identity/​infra/​provider.bicep Migrates provider endpoints and managed-identity authentication.
labs/​12-backend-identity/​infra/​gateway-identity.bicep Uses the GA gateway API.
labs/​11-entra-rbac/​infra/​role-assignment.bicep Adds workspace-scoped runtime role assignments.
labs/​11-entra-rbac/​infra/​main.parameters.json Defaults role scope to the workspace.
labs/​11-entra-rbac/​infra/​main.bicep Supports and defaults to workspace role scope.
labs/​11-entra-rbac/​infra/​assign-roles.sh Adds workspace scope to Bash role assignment.
labs/​11-entra-rbac/​infra/​assign-roles.ps1 Adds workspace scope to PowerShell role assignment.
labs/​10-api-keys/​infra/​api-keys.bicep Uses the GA API and updates display-name guidance.
labs/​09-gateway-baselines/​infra/​check-call.sh Updates the API-key error message.
labs/​09-gateway-baselines/​infra/​check-call.ps1 Updates the API-key error message.
labs/​09-gateway-baselines/​infra/​baseline-policies.json Updates rate-limit fields and explicit policy scopes.
labs/​09-gateway-baselines/​infra/​apply-baseline.sh Uses the GA workspace API.
labs/​09-gateway-baselines/​infra/​apply-baseline.ps1 Uses the GA workspace API.
labs/​08-content-safety/​infra/​safe-alias.bicep Migrates content-safety alias resources to GA.
labs/​07-cost-budgets/​infra/​budget-alias.bicep Migrates resources and claim-override representation.
labs/​07-cost-budgets/​07-cost-budgets.ipynb Updates counter terminology and cost-policy links.
labs/​06-token-limits/​infra/​limited-alias.bicep Migrates token-limit alias resources to GA.
labs/​06-token-limits/​06-token-limits.ipynb Clarifies counter dimensions and updates policy links.
labs/​05-mcp-tool-controls/​infra/​main.bicep Constrains request-rate renewal periods.
labs/​05-mcp-tool-controls/​infra/​controlled-tool-server.bicep Migrates tool controls and rate-limit configuration.
labs/​04-federate-mcp-tools/​infra/​tool-server.bicep Migrates MCP endpoints and backend failure modes.
labs/​03-multi-provider-aliases/​infra/​anthropic-aliases.bicep Migrates custom-provider header authentication.
labs/​02-first-model-call/​infra/​publish-model.bicep Migrates model publishing to GA resource shapes.
labs/​02-first-model-call/​02-first-model-call.ipynb Updates model-access and authentication links.
labs/​01-provision-gateway/​infra/​gateway.bicep Uses the GA API and updates subnet guidance.
labs/​01-provision-gateway/​01-provision-gateway.ipynb Updates networking guidance and portal labels.
AGENTS.md Documents architecture-map registration and release anchors.

Review effort: Balanced

Comment thread labs/site/js/05-widgets-quota.js Resolved
The quota, budget, and streaming widgets start their renewal period or window with the first request and stop updating once it ends, so nothing moves until the reader acts. wdTicker stops itself when the widget is idle and wakes on the next request.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
A rerun of a setup cell checked again for resources that the first run had created, so clean-up kept them (labs 04, 06, 07, 11, 15, 16, 17, 23, 24, 26, and 28). The flags now keep the first run's record, as lab 25 does, and lab 16 restores the azd folder's original default environment. AUTHORING.md describes the pattern.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Both session-counting scripts compare HTTP error labels as model responses, allowing failed requests to produce misleading affinity verdicts instead of an inconclusive result.

No open issues 🎉

2 previously missed issues

In code that hasn't changed since last review

Medium severity Exclude failed requests from affinity verdicts

labs/​27-conditional-routing/​infra/​count-sessions.ps1:34

The affinity verdict includes the HTTP-<status> labels emitted for failed requests. If every call returns 401 or 429, there is one unique label and the script reports stays without any model having answered; a mixture of failures and successes can incorrectly report moves. Report an inconclusive verdict when any call fails, and reserve stays/moves for successful model responses.

Medium severity Treat failed requests as inconclusive for affinity verdicts

labs/​27-conditional-routing/​infra/​count-sessions.sh:41

Repeated HTTP errors are treated as evidence of session affinity: three 429 responses produce HTTP-429 HTTP-429 HTTP-429 stays, although no backend model answered. Mixed errors and successes can likewise produce a misleading moves. Mark the verdict as inconclusive whenever a request fails rather than comparing error labels as model names.

3 resolved since last review

Review effort: Balanced

count-sessions compared HTTP-<status> labels as if they were backend models, so three 429s reported stays and a mix of errors and answers reported moves. A session with a failed request now reports inconclusive, and stays or moves only compares models that answered.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The API key lacks an explicit displayName, causing the portal to show “All APIs subscription” instead of “app-first-call” and violating the lab’s authoring requirements.

No open issues 🎉

Review effort: Balanced

The tool server templates of labs 04, 05, 19, 30, and 31 and the notebooks' lab.api_key created keys with empty properties, so the service named them "All APIs subscription (1)". They now set the display name to the key name, as the quick start and the CLI do. AUTHORING.md and the skill describe the default.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
@vieiraae
Alex Vieira (vieiraae) requested a balanced review from Copilot November 16, 2026 16:48
Add a "Migrate from API Management" section to lab 17 that uses
/aigateway:migrate (migrate-apim) to inventory a sample API Management
instance, review the migration strategy for each asset, identify the assets
that are ready, and then build the gateway directly, with Bicep, or with
Terraform. Every track was verified live with Bash and PowerShell on
az aigateway 1.0.0b34 and Microsoft.ApiManagement/aigateways@2026-11-01.

- infra/apim-source.bicep: sample BasicV2 instance with a Foundry backend,
  token limit, product, subscription, and a passthrough MCP server
- infra/migrated-gateway.bicep and terraform/: the equivalent gateway
- TROUBLESHOOTING rows for the migration, with workarounds for #62
- Catalog card, lab metadata, and skill description

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
Ran lab 20 (Agent 365 governance) and lab 19 (tool threat protection) in a
tenant with Agent 365 and updated the labs with what the admin center and
the AI Gateway portal show:

- Lab 20: consent in Agents > Settings > Gateways, the inventory's Publisher
  and Source columns, the sync delay, Save for tool switches, the Block
  dialog, and Unblock. Seven new screenshots.
- Lab 19: Search directory identities, the roles that can assign the AI
  Gateway Tools User role, the Scope step, both stages selected by default,
  and the delete dialog. Three new screenshots.
- Scripts and READMEs: Access > Keys is now Access > API keys.
- Lab 01 and 04: resource group default, provisioning time, MCP versions,
  and the Namespace prefix label.
- TROUBLESHOOTING and AUTHORING: new rows and the new screens.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
Ran lab 21's Terraform track end to end: apply, the baseline, moving the
state to Azure Storage with Entra sign-in, a no-changes plan, the GitHub
Actions workflow with OIDC (plan, apply, baseline, smoke test), and
destroy from the remote state.

- Read the OIDC subject prefix from GitHub, so federated credentials match
  repositories that use immutable subject claims.
- Note that required reviewers on private repositories need GitHub
  Enterprise.
- Say that gateway activation can take more than half an hour.
- Fix the federated credential troubleshooting row (AADSTS700213) and add
  the required reviewers row.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
…of), work in progress

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
…in user

New lab 33-copilot-obo-mcp, adapted from kostapetan/ai-gateway-end-to-end
(credited in the lab). Microsoft 365 Copilot and Copilot Cowork call an
Entra-protected MCP server on Azure Container Apps through Azure AI Gateway,
with Microsoft Entra on-behalf-of token exchange and a managed identity
instead of a client secret.

- Portal, Azure CLI (az aigateway 1.0.0b34), Bicep + azd, and Terraform
  tracks, all verified live, plus the Microsoft 365 MCP connector in Cowork.
- New copilot-obo diagram and 12 screenshots.
- Troubleshooting section, catalog paths and use case, home page map,
  release notes (November 6, 2026 on-behalf-of row), SETUP providers,
  lab 12 cross-link, AUTHORING lists, and skill facts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
…loper Portal menus

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94
…compile)

Resolve the README badge conflict: keep main's general availability CLI badge
and the branch's 35 labs badge.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The deployment archive can include local.settings.json and expose credentials because archive_file ignores .funcignore, so packaging must explicitly include deployment files or exclude sensitive and generated files.

1 open issue

Review effort: Balanced

The Terraform archive_file ignored infra/hook/.funcignore and packaged
local.settings.json, .venv, and __pycache__ when they existed. The CLI
track's zip and Compress-Archive commands did the same. Package
function_app.py, host.json, and requirements.txt explicitly instead.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because overriding the model version can make the Foundry connection report a different version from the actual deployment.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

The Bicep and Terraform tracks set the version in the connection's model
metadata separately from the Foundry deployment, so overriding one made
Foundry list a version that wasn't deployed. The quick start module now
outputs the deployed version, and lab 32 passes it to the connection, as
the CLI track and the notebook already do.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The module advertises Terraform 1.9 compatibility, but its ephemeral variable and write-only argument require Terraform 1.11 or later, causing initialization or planning failures on accepted older versions.

1 open issue

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The ARM migration and Entra registration changes require human review of live Azure deployment, cleanup, and on-behalf-of authentication evidence that source inspection cannot verify.

1 open issue

Review effort: Balanced

The Terraform track passes an ephemeral variable to the write-only
sensitive_body argument, which needs Terraform 1.11, but the configuration
accepted 1.9. anthropic-aliases.tf now sets required_version >= 1.11, as
lab 31 does, and the README, SETUP.md, and TROUBLESHOOTING.md say so.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d05b6670-abba-4799-9d8e-3b2580e7bf94

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because a moderate-severity finding omitted from the published review indicates that clearing backend_subnet_id can leave the gateway’s existing network integration intact.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@paulyuk Paul Yuknewicz (paulyuk) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! thank you for adding TF and GA version!!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

somewhat duplicative with doc quickstart and sample but ok

@paulyuk
Paul Yuknewicz (paulyuk) merged commit feac191 into main Nov 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants