Skip to content
Merged
Show file tree
Hide file tree
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/modules/role.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ resource aiUserAccessFoundry 'Microsoft.Authorization/roleAssignments@2022-04-01
properties: {
roleDefinitionId: aiUser.id
principalId: principalId
principalType: 'ServicePrincipal'
}
}

Expand All @@ -38,6 +39,7 @@ resource aiDeveloperAccessFoundry 'Microsoft.Authorization/roleAssignments@2022-
properties: {
roleDefinitionId: aiDeveloper.id
principalId: principalId
principalType: 'ServicePrincipal'
}
}

Expand All @@ -47,5 +49,6 @@ resource cognitiveServiceOpenAIUserAccessFoundry 'Microsoft.Authorization/roleAs
properties: {
roleDefinitionId: cognitiveServiceOpenAIUser.id
principalId: principalId
principalType: 'ServicePrincipal'
}
}
1 change: 1 addition & 0 deletions infra/old/deploy_ai_foundry.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ resource aiDevelopertoAIProject 'Microsoft.Authorization/roleAssignments@2022-04
properties: {
roleDefinitionId: aiDeveloper.id
principalId: aiHubProject.identity.principalId
principalType: 'ServicePrincipal'
}
}

Expand Down
2 changes: 2 additions & 0 deletions infra/old/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ module aiFoundryStorageAccount 'br/public:avm/res/storage/storage-account:0.18.2
{
principalId: userAssignedIdentity.outputs.principalId
roleDefinitionIdOrName: 'Storage Blob Data Contributor'
principalType: 'ServicePrincipal'
}
]
}
Expand Down Expand Up @@ -760,6 +761,7 @@ module aiFoundryAiProject 'br/public:avm/res/machine-learning-services/workspace
principalId: containerApp.outputs.?systemAssignedMIPrincipalId!
// Assigning the role with the role name instead of the role ID freezes the deployment at this point
roleDefinitionIdOrName: '64702f94-c441-49e6-a78b-ef80e0188fee' //'Azure AI Developer'
principalType: 'ServicePrincipal'
}
]
}
Expand Down
Loading