Skip to content

Commit 9eee75a

Browse files
fix: update main.json
1 parent dcc6182 commit 9eee75a

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

infra/main.json

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.35.1.17967",
9-
"templateHash": "8798142813454376636"
9+
"templateHash": "4778084734742710121"
1010
}
1111
},
1212
"parameters": {
@@ -546,20 +546,6 @@
546546
"containerApp"
547547
]
548548
},
549-
"aiDevelopertoAIProject": {
550-
"type": "Microsoft.Authorization/roleAssignments",
551-
"apiVersion": "2022-04-01",
552-
"scope": "[format('Microsoft.CognitiveServices/accounts/{0}', variables('aiServicesName'))]",
553-
"name": "[guid(variables('aiServicesName'), resourceId('Microsoft.MachineLearningServices/workspaces', format('{0}-aiproject', parameters('prefix'))), resourceId('Microsoft.Authorization/roleDefinitions', '64702f94-c441-49e6-a78b-ef80e0188fee'))]",
554-
"properties": {
555-
"roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', '64702f94-c441-49e6-a78b-ef80e0188fee')]",
556-
"principalId": "[reference('aiHubProject', '2024-01-01-preview', 'full').identity.principalId]"
557-
},
558-
"dependsOn": [
559-
"aiHubProject",
560-
"aiServices"
561-
]
562-
},
563549
"kvault": {
564550
"type": "Microsoft.Resources/deployments",
565551
"apiVersion": "2022-09-01",
@@ -726,7 +712,7 @@
726712
"_generator": {
727713
"name": "bicep",
728714
"version": "0.35.1.17967",
729-
"templateHash": "12578060348489775267"
715+
"templateHash": "14561153070486462167"
730716
}
731717
},
732718
"parameters": {
@@ -908,6 +894,18 @@
908894
"[resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiHubName'))]"
909895
]
910896
},
897+
{
898+
"type": "Microsoft.Authorization/roleAssignments",
899+
"apiVersion": "2022-04-01",
900+
"name": "[guid(resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiProjectName')), resourceId('Microsoft.Authorization/roleDefinitions', '64702f94-c441-49e6-a78b-ef80e0188fee'))]",
901+
"properties": {
902+
"roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', '64702f94-c441-49e6-a78b-ef80e0188fee')]",
903+
"principalId": "[reference(resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiProjectName')), '2024-01-01-preview', 'full').identity.principalId]"
904+
},
905+
"dependsOn": [
906+
"[resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiProjectName'))]"
907+
]
908+
},
911909
{
912910
"type": "Microsoft.KeyVault/vaults/secrets",
913911
"apiVersion": "2021-11-01-preview",

0 commit comments

Comments
 (0)