Skip to content

Commit 670e31b

Browse files
author
Mike Swantek
committed
Update to avm pr code
1 parent 2d61bb3 commit 670e31b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

infra/modules/avm/cognitive-services/main.bicep

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ param deployments deploymentType[]?
132132
@description('Optional. Key vault reference and secret settings for the module\'s secrets export.')
133133
param secretsExportConfiguration secretsExportConfigurationType?
134134

135+
@description('Optional. Enable/Disable project management feature for AI Foundry.')
136+
param allowProjectManagement bool?
137+
135138
var enableReferencedModulesTelemetry = false
136139

137140
var formattedUserAssignedIdentities = reduce(
@@ -323,7 +326,7 @@ resource cognitiveService 'Microsoft.CognitiveServices/accounts@2025-04-01-previ
323326
name: sku
324327
}
325328
properties: {
326-
allowProjectManagement: true // allows project management for Cognitive Services accounts in AI Foundry - FDP updates
329+
allowProjectManagement: allowProjectManagement
327330
customSubDomainName: customSubDomainName
328331
networkAcls: !empty(networkAcls ?? {})
329332
? {

infra/modules/cognitive-services/service.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ module cognitiveService '../avm/cognitive-services/main.bicep' = {
9191
tags: tags
9292
sku: sku
9393
kind: kind
94+
allowProjectManagement: true
9495
managedIdentities: {
9596
systemAssigned: true
9697
}

0 commit comments

Comments
 (0)