feat(agents): eject Bicep for existing Foundry projects - #9348
Draft
hund030 wants to merge 3 commits into
Draft
Conversation
|
Azure Pipelines: Successfully started running 2 pipeline(s). 20 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
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
Fixes #9127. Existing Foundry projects can now eject Bicep with
azd ai agent init --infraand use the same provisioning path as newly created projects without attempting to recreate the account or project.Changes
azure.ai.agents: eject the complete static Bicep tree for endpoint-based projects, preserve environment references, and reject unsupported networking or literal credentials before writinginfra/.azure.ai.projects: reconcile model deployments, connections, and new or existing ACR resources against an existing project while retaining the no-work endpoint-only path.synthesis/templates: replace the separate brownfield template with one conditional account/project resource graph and regenerate the embedded ARM template.Design Details
foundryAccountName == ''selects greenfield creation; otherwise conditionalexistingaccount/project declarations target the configured brownfield resources.modelDeploymentscollection works with either account path. Greenfield-only project-name validation runs in a conditional module, so existing project names are preserved.AZURE_AI_PROJECT_ID; endpoint-only projects still skip ARM when no reconciliation is required.Manual Validation
azd ai agent init --infra --no-promptagainst an existing Foundry project; it emitted the full static Bicep tree without modifyingazure.yaml.azd provision --preview --no-promptfrom the ejected project; Bicep compiled successfully and preview reported the existing Foundry account and project as skipped.