You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Labs: GA readiness for the Nov 18, 2026 general availability - #51
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
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
Lab 32 depends on the Microsoft Foundry gateway connection, which isn't generally available.
The coding-agent plugin's use-ai-gateway skill (skills/use-ai-gateway/references/connection.md) and Azure-Samples/simple-foundry-hosted-agent-python-aigateway still use the preview API. This PR doesn't change them.
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
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
…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
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.
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
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.
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.
Treat failed requests as inconclusive for affinity verdicts
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.
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
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.
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
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
…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
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.
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
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
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.
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.
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
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.
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
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.
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 latestaz aigatewayCLI release, 1.0.0b34, the portal, Bicep and azd, Terraform, and the notebooks.New labs
Lab 33 adapts kostapetan/ai-gateway-end-to-end by Kosta Petan and credits it.
Terraform track
2026-11-01.SETUP.mdhas a new Deploy a lab with Terraform section.terraform apply, a no-changesterraform plan -detailed-exitcode, andterraform destroy.Updated labs
Microsoft.ApiManagement/aigateways@2026-11-01, and screenshots are refreshed.az aigateway model update --policiesandaz rest.403, and reaching the gateway through an inbound private endpoint.RELEASE-NOTES.mdhas sections for Oct 28, Nov 6, Nov 9, Nov 12 and the Nov 18 GA. Release links now use the docs#release-YYYY-MM-DDanchors.TROUBLESHOOTING.mdhas new rows from the retests. Every step name matches a real lab step.AUTHORING.mdandAGENTS.md(Terraform in the update and verify steps), the agent skill facts,catalog.json, the diagrams,labs/README.mdand the rootREADME.md.Validation
npm run checkbuilds 35 labs with 0 warnings, andnpm run releases -- --checkexits with code 0.mainis merged in, including the CLI 1.0.0b33 and 1.0.0b34 releases andmigrate-apim compile. Everymigrate-apimcommand and flag lab 17 uses still exists, and the tool's 553 tests pass.Not covered or not testable
migrate-apimbugs, filed as migrate-apim: against CLI 1.0.0b34, provider and model creates are rejected, read-backs never match, and the Foundry endpoint 404s #62.use-ai-gatewayskill (skills/use-ai-gateway/references/connection.md) andAzure-Samples/simple-foundry-hosted-agent-python-aigatewaystill use the preview API. This PR doesn't change them.