Skip to content

Commit c9647ba

Browse files
meerakurupMeera Kurup
authored andcommitted
Add dependsOn for AI project connections (#139)
Add explicit dependsOn references to ensure correct deployment ordering: the AI project resource now depends on the Cosmos DB connection, and the Azure AI Search connection depends on the Azure Storage connection. This prevents race conditions during ARM/Bicep deployment by enforcing the required resource creation sequence. Co-authored-by: Meera Kurup <meerakurup+microsoft@microsoft.com>
1 parent 7448e38 commit c9647ba

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • infrastructure/infrastructure-setup-bicep/18-managed-virtual-network-preview/modules-network-secured

infrastructure/infrastructure-setup-bicep/18-managed-virtual-network-preview/modules-network-secured/ai-project-identity.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ resource project 'Microsoft.CognitiveServices/accounts/projects@2025-04-01-previ
7272
location: storageAccount.location
7373
}
7474
}
75+
dependsOn: [project_connection_cosmosdb_account]
7576
}
7677

7778
resource project_connection_azureai_search 'connections@2025-04-01-preview' = {
@@ -86,6 +87,7 @@ resource project 'Microsoft.CognitiveServices/accounts/projects@2025-04-01-previ
8687
location: searchService.location
8788
}
8889
}
90+
dependsOn: [project_connection_azure_storage]
8991
}
9092

9193
}

0 commit comments

Comments
 (0)