Skip to content

fix: create model deployments on existing Foundry projects during provision#67

Merged
trangevi merged 2 commits into
Azure-Samples:mainfrom
v1212:fix/existing-project-model-deployment
May 21, 2026
Merged

fix: create model deployments on existing Foundry projects during provision#67
trangevi merged 2 commits into
Azure-Samples:mainfrom
v1212:fix/existing-project-model-deployment

Conversation

@v1212

@v1212 v1212 commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes Azure/azure-dev#8155

When users select an existing Foundry project during azd ai agent init and choose "Create new model deployment", azd provision previously did not create the deployment because existing-ai-project.bicep lacked deployment resource logic.

Changes

  • Added deployments parameter to existing-ai-project.bicep
  • Added Microsoft.CognitiveServices/accounts/deployments resource loop (mirrors ai-project.bicep)
  • Passed aiProjectDeployments to the existing project module in main.bicep

Related

@therealjohn therealjohn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@trangevi
trangevi merged commit 63af400 into Azure-Samples:main May 21, 2026
1 check passed
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.

Create the new model deployment on azd provision when init uses an existing Foundry project

3 participants