Skip to content

Add project AI Gateway enablement sample under 01-connections - #864

Closed
pradeepkintali wants to merge 1 commit into
microsoft-foundry:mainfrom
pradeepkintali:add-project-ai-gateway-sample
Closed

Add project AI Gateway enablement sample under 01-connections#864
pradeepkintali wants to merge 1 commit into
microsoft-foundry:mainfrom
pradeepkintali:add-project-ai-gateway-sample

Conversation

@pradeepkintali

Copy link
Copy Markdown

Summary

Adds a new self-contained sample under infrastructure/infrastructure-setup-bicep/01-connections/project-ai-gateway/ that creates a new Azure AI Foundry project under an existing, already AI-Gateway-enabled account and enables the AI Gateway on the project by default.

Unlike the other 01-connections samples (which create a Microsoft.CognitiveServices/accounts/connections resource), this sample provisions the per-project API Management artifacts that mark a project as gateway-enabled.

What it deploys

  1. Project under the existing account.
  2. APIM Product (subscriptionRequired: true, state: 'published').
  3. Product ↔ API association to the gateway's shared API (named after the account).
  4. Active APIM Subscription scoped to the product.
  5. ARM resource link (Microsoft.Resources/links) from the project to the product — its presence marks the project Enabled on the gateway.

Notes

  • Does not modify any existing connection samples.
  • main.bicep compiles cleanly (only the expected BCP081 info warning for Microsoft.Resources/links, which does not block deployment).
  • Includes README.md, main.bicep, compiled main.json, main.parameters.json, and modules/apim-gateway-artifacts.bicep.

Adds a self-contained sample that creates a new Foundry project under an existing gateway-enabled account and enables the AI Gateway on it by provisioning the per-project APIM product, shared-API association, active subscription, and the project->product resource link. Does not modify any existing connection samples.
@github-actions

Copy link
Copy Markdown
Contributor

👋 Thanks for your contribution, @pradeepkintali!

This repository is read-only. If you are contributing on behalf of Microsoft, please submit your PR to the private staging repository instead:

👉 foundry-samples-pr

See CONTRIBUTING.md for full instructions.

@github-actions github-actions Bot closed this Jul 30, 2026
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.

1 participant