Repository navigation
Migrate AI Gateway ARM contracts to 2026-11-01 - #39
Open
Paul Yuknewicz (paulyuk) wants to merge 2 commits into
Open
Paul Yuknewicz (paulyuk) wants to merge 2 commits into
Paul Yuknewicz (paulyuk) wants to merge 2 commits into
Conversation
Switch Microsoft.ApiManagement/aigateways Bicep resources, lifecycle purge hooks, and postprovision telemetry/MCP configuration from 2025-09-01-preview to the 2026-11-01 ARM contract, aligning Foundry provider, model, MCP toolServer, and OpenTelemetry exporter schemas. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4448b1aa-1ea5-4c5f-af63-7ec98b7acb9e
Comment out default AI Gateway contentSafety policy wiring on catalog models and omit it from the GitHub MCP tool server pending upstream 2026-11-01 Content Safety API alignment. Update module documentation and contract tests accordingly. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4448b1aa-1ea5-4c5f-af63-7ec98b7acb9e
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.
Overview
Operators provisioning or redeploying this sample need
Microsoft.ApiManagement/aigatewaystemplates andazdhooks that target the generally available2026-11-01ARM contract deployed across Azure regions rather than the2025-09-01-previewschema.This pull request updates all
Microsoft.ApiManagement/aigatewaysBicep resources, soft-delete lifecycle hooks, and postprovision configuration scripts to2026-11-01while retaining the2025-09-01-previewcheck only where the postprovision script detects and rejects legacyMicrosoft.ApiManagement/servicegateways.What changes
infra/ai-gateway/main.bicep,infra/main.bicep):aigateways,workspaces,modelProviders,models,aliases,toolServers,telemetryExporters, andapiKeys(includinglistSecrets) to@2026-11-01.modelProviders/foundrytomodelProviderType: 'Foundry',foundry.endpoint.url, and top-levelauthentication.managedIdentity.apiFormatfrommodelProviders/modelsentries.toolServers/githubtotoolServerType: 'mcp',blockList, endpointmode: 'failClosed',mcp.endpoint.url, andauthentication.headers.contentSafetypolicy wiring on catalog models andtoolServers/githubpending upstream2026-11-01Content Safety API alignment, while preservingtokenLimit,costLimit, and optionalipFilterpolicies.infra/scripts/manage-ai-gateway-lifecycle.{sh,ps1},infra/scripts/configure-ai-gateway.{sh,ps1}):AI_GATEWAY_API_VERSIONto2026-11-01for soft-delete recovery/purge, provider checks, OpenTelemetry exporter configuration (telemetryExporterType: 'OpenTelemetry',openTelemetry.*Endpoint.url, top-levelauthentication.managedIdentity), and authenticated GitHub MCP tool server registration (withpolicies: []whilecontentSafetyis disabled).README.md,infra/README.md,infra/ai-gateway/README.md,IMPLEMENTATION_NOTES.md,tests/):2026-11-01wire schema and temporarily disabled gatewaycontentSafetypolicy.Canonical usage
Provision the full stack with Azure Developer CLI as before:
To validate or deploy the standalone AI Gateway Bicep module directly against
2026-11-01:Representative
2026-11-01Foundry provider contract in Bicep:Validation
infra/main.bicep,infra/ai-gateway/main.bicep) withaz bicep build.listSecretsexpressions, and Bash/PowerShell lifecycle and postprovision scripts viatests/test-ai-gateway-model-registration.sh,tests/test-apim-lifecycle.sh, and the Python unit test suite.2026-11-01wire schemas foraigateways,modelProviders,models,aliases,toolServers,telemetryExporters, andapiKeysagainst live Azure ARM responses.