@@ -36,7 +36,7 @@ param capacity int = 5
3636var uniqueId = toLower (uniqueString (subscription ().id , Prefix , resourceGroup ().location ))
3737var UniquePrefix = 'cm${padLeft (take (uniqueId , 12 ), 12 , '0' )}'
3838var ResourcePrefix = take ('cm${Prefix }${UniquePrefix }' , 15 )
39- var imageVersion = 'rc1' // Change to ' fnd01' when ready
39+ var imageVersion = 'fnd01'
4040var location = resourceGroup ().location
4141var dblocation = resourceGroup ().location
4242var cosmosdbDatabase = 'cmsadb'
@@ -454,6 +454,22 @@ resource containers 'Microsoft.Storage/storageAccounts/blobServices/containers@2
454454 dependsOn : [azureAifoundry ]
455455}]
456456
457+ resource aiHubProject 'Microsoft.MachineLearningServices/workspaces@2024-01-01-preview' existing = {
458+ name : '${ResourcePrefix }-prj' // aiProjectName must be calculated - available at main start.
459+ }
460+
461+ resource aiDeveloper 'Microsoft.Authorization/roleDefinitions@2022-04-01' existing = {
462+ name : '64702f94-c441-49e6-a78b-ef80e0188fee'
463+ }
464+
465+ resource aiDeveloperAccessProj 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
466+ name : guid (containerAppBackend .name , aiHubProject .id , aiDeveloper .id )
467+ scope : aiHubProject
468+ properties : {
469+ roleDefinitionId : aiDeveloper .id
470+ principalId : containerAppBackend .identity .principalId
471+ }
472+ }
457473
458474resource contributorRoleDefinition 'Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions@2021-06-15' existing = {
459475 name : '${databaseAccount .name }/00000000-0000-0000-0000-000000000002'
0 commit comments