Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions infra/core/ai/ai-project.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ resource aiAccount 'Microsoft.CognitiveServices/accounts@2025-06-01' = {
]
}

// Capability host creation can happen only once. Running the bicep twice will lead to an error.
// We're using @onlyIfNotExists() to avoid errors on re-deployments.
@onlyIfNotExists()
resource aiFoundryAccountCapabilityHost 'capabilityHosts@2025-10-01-preview' = if (enableHostedAgents) {
name: 'agents'
properties: {
Expand Down