Add existing AI Gateway deployment profile - #7
Open
Paul Yuknewicz (paulyuk) wants to merge 1 commit into
Open
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7b888366-0fbc-4e50-9e55-42f76031a8c6
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
GATEWAY_DEPLOYMENT_MODE=managed|existing, defaulting tomanaged, while preserving the current full-stackazd upbehavior..ai-gateway-studio.jsonhandoff contract and matching POSIX and PowerShell bootstrap scripts.RemoteToolandCustomKeysproject connections so Gateway keys are never Bicep parameters, outputs, or ordinary hosted-agent environment substitutions.FOUNDRY_PROJECT_ENDPOINTandTOOLBOX_NAME.Existing gateway contract
{ "schemaVersion": 1, "gatewayDeploymentMode": "existing", "gatewayResourceId": "/subscriptions/<subscription>/resourceGroups/<resource-group>/providers/Microsoft.ApiManagement/service/<gateway-name>", "gatewayEndpoint": "https://<gateway-host>/", "githubMcpEndpoint": "https://<gateway-host>/default/toolservers/<toolserver>/mcp", "modelAliases": { "default": "<full-model-alias>", "mini": "<mini-model-alias>" } }The resource ID also accepts the
Microsoft.ApiManagement/aigatewaysresource type. The handoff contains no secrets.Security and ownership
PUT,PATCH, orDELETEand never overwrites the existing GitHub ToolServer.listSecrets, withlistValuesretained for preview compatibility.${{connections.ai-gateway-model.target}}and${{connections.ai-gateway-model.credentials.Api-Key}}from a FoundryCustomKeysconnection.RemoteToolconnection with anApi-Keycustom header..envsupport remains available.Validation
git diff --checkLocal PowerShell execution was unavailable because the installed
pwshprocess aborts before script parsing with aSystem.Text.RegularExpressionsassembly load failure. Static parity assertions cover the critical existing-mode lifecycle guard.