Skip to content

Commit e8a1de7

Browse files
main json updated
1 parent 6589e79 commit e8a1de7

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

infra/main.json

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.34.44.8038",
8-
"templateHash": "8953208502938265930"
8+
"templateHash": "6290258568261172226"
99
}
1010
},
1111
"parameters": {
@@ -57,7 +57,7 @@
5757
"uniqueId": "[toLower(uniqueString(subscription().id, parameters('Prefix'), resourceGroup().location))]",
5858
"UniquePrefix": "[format('cm{0}', padLeft(take(variables('uniqueId'), 12), 12, '0'))]",
5959
"ResourcePrefix": "[take(format('cm{0}{1}', parameters('Prefix'), variables('UniquePrefix')), 15)]",
60-
"imageVersion": "rc1",
60+
"imageVersion": "fnd01",
6161
"location": "[resourceGroup().location]",
6262
"dblocation": "[resourceGroup().location]",
6363
"cosmosdbDatabase": "cmsadb",
@@ -349,6 +349,19 @@
349349
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry')]"
350350
]
351351
},
352+
{
353+
"type": "Microsoft.Authorization/roleAssignments",
354+
"apiVersion": "2022-04-01",
355+
"scope": "[format('Microsoft.MachineLearningServices/workspaces/{0}', format('{0}-prj', variables('ResourcePrefix')))]",
356+
"name": "[guid(toLower(format('{0}Bck-ca', variables('ResourcePrefix'))), resourceId('Microsoft.MachineLearningServices/workspaces', format('{0}-prj', variables('ResourcePrefix'))), resourceId('Microsoft.Authorization/roleDefinitions', '64702f94-c441-49e6-a78b-ef80e0188fee'))]",
357+
"properties": {
358+
"roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', '64702f94-c441-49e6-a78b-ef80e0188fee')]",
359+
"principalId": "[reference(resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix')))), '2023-05-01', 'full').identity.principalId]"
360+
},
361+
"dependsOn": [
362+
"[resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix'))))]"
363+
]
364+
},
352365
{
353366
"type": "Microsoft.Resources/deployments",
354367
"apiVersion": "2022-09-01",
@@ -374,7 +387,7 @@
374387
"_generator": {
375388
"name": "bicep",
376389
"version": "0.34.44.8038",
377-
"templateHash": "17863870312619064541"
390+
"templateHash": "107965290127824528"
378391
}
379392
},
380393
"parameters": {
@@ -472,9 +485,7 @@
472485
"_generator": {
473486
"name": "bicep",
474487
"version": "0.34.44.8038",
475-
"templateHash": "10664495342911727649"
476-
"version": "0.34.44.8038",
477-
"templateHash": "10664495342911727649"
488+
"templateHash": "7479964703030361933"
478489
}
479490
},
480491
"parameters": {
@@ -610,7 +621,7 @@
610621
"_generator": {
611622
"name": "bicep",
612623
"version": "0.34.44.8038",
613-
"templateHash": "8087543237770345715"
624+
"templateHash": "13939205582736222851"
614625
}
615626
},
616627
"parameters": {

0 commit comments

Comments
 (0)