Repository navigation
Add Terraform reference sample for AI Gateway legacy preview - #13
Closed
Anna Wiewer-MSFT (annawiewer) wants to merge 1 commit into
Closed
Anna Wiewer-MSFT (annawiewer) wants to merge 1 commit into
Anna Wiewer-MSFT (annawiewer) wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c339891b-b1f6-41fa-844a-bf3b5b31e307
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
Author
|
Paul Yuknewicz (@paulyuk) Could you advise whether this legacy-preview Terraform sample is appropriate for this repository, and whether you prefer in-tree or external Azure-Samples hosting? Keeping this as a draft pending that direction. |
Anna Wiewer-MSFT (annawiewer)
marked this pull request as ready for review
October 25, 2026 18:49
Anna Wiewer-MSFT (annawiewer)
deleted the
prepare/terraform-preview-sample
branch
October 28, 2026 16:15
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.
Summary
Add a Terraform reference sample for AI Gateway and Microsoft Foundry under
samples/terraform, with a catalog entry and credential-free offline CI.profile is an intermediate provisioning stage, not a third end state.
from the gateway's managed identity for Foundry model access.
and actual runtime identity binding remain separate steps.
helpers, and regression tests.
Maintainer decisions requested before marking ready
Legacy preview resource contract: this sample deliberately uses
Microsoft.ApiManagement/service@2025-09-01-preview, SKUAIGateway, rather thanthe newer
Microsoft.ApiManagement/aigatewaysresource. The reason is the privateendpoint scenario: the newer resource lacks private endpoints according to the
current documentation reviewed on October 25, 2026.
Microsoft's resource lifecycle guidance
requires migration before January 15, 2027 and documents restrictions on new
legacy-resource creation. The sample is therefore a time-limited preview
reference, not a generally available new-deployment or production promise.
Earlier successful reference deployments do not override the documented support
and availability limits. This PR does not implement migration.
Please confirm whether this legacy/private-endpoint reference is appropriate for
this repository before the draft is promoted to ready for review.
Sample placement: the existing catalog currently links to external sample
repositories. This proposal adds an in-tree Terraform sample and changes the
catalog description accordingly. Please confirm whether in-tree hosting is
preferred over placement in a separate Azure-Samples repository.
Implementation and scope
The sample uses Microsoft's existing
Azure/azapiprovider with explicit ARMtypes/API versions and Terraform-managed dependencies and state. It does not
introduce a custom provider or claim to be an official Terraform Registry module.
Some preview child resources require selective local schema-validation opt-outs;
Azure API validation, authorization and Azure Policy are not bypassed.
The diff is based directly on upstream
mainatdb053fe3c45389eb2b993fd6c3fd0617612b8936and contains only:samples/terraform/**samples/README.md;existing Bicep and external sample links are preserved.
.github/workflows/terraform-offline.yml, with read-only repositorypermissions, pinned actions and no Azure credentials.
No plugin/CLI changes, root README changes,
.gitignorechanges, fork history,environment-specific inputs, Terraform state, keys or operational evidence are
included.
Validation
Executed the existing runner in a fresh, isolated worktree of this PR candidate:
.\samples\terraform\scripts\Test-Offline.ps1cases passed.
This is local validation of the PR candidate, not an upstream CI result.
No Azure deployment, model inference, browser acceptance or paid live operation
was performed while preparing this PR.
The documentation separately records earlier bounded reference runs, including
private model/agent inference and managed-identity Entra allow/deny behavior.
Those observations are not a new clean-subscription deployment guarantee.
Private-from-first-create where temporary public access is prohibited, custom
delegated-user clients and migration to the newer resource remain outside the
claimed proof.
Operational boundaries
Existing private deployments must retain their original state, complete inputs
and final network profile; the runbook does not reopen public endpoints to bypass
failures. Resource deletion guards, scoped runtime roles, plan review and
acceptance gates remain in place.
The preview has no SLA. Supporting services and model calls incur charges;
offline checks do not certify service availability, policy compatibility,
private routing or production readiness.