@@ -60,6 +60,17 @@ resource contributorRoleAssignment 'Microsoft.Authorization/roleAssignments@2022
6060 }
6161}
6262
63+ resource cognitiveServicesOpenAIContributorRoleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
64+ // note: the guid must be globally unique and deterministic across Azure
65+ name : guid (resourceGroup ().id , principalId , principalType , roleIds .cognitiveServicesOpenAIContributor )
66+ scope : resourceGroup ()
67+ properties : {
68+ principalId : principalId
69+ principalType : principalType
70+ roleDefinitionId : resourceId ('Microsoft.Authorization/roleDefinitions' , roleIds .cognitiveServicesOpenAIContributor )
71+ }
72+ }
73+
6374resource aiSearchIndexDataContributorRoleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
6475 // note: the guid must be globally unique and deterministic across Azure
6576 name : guid (aiSearch .id , principalId , principalType , roleIds .aiSearchIndexDataContributor )
@@ -71,16 +82,16 @@ resource aiSearchIndexDataContributorRoleAssignment 'Microsoft.Authorization/rol
7182 }
7283}
7384
74- // resource aiSearchIndexDataReaderRoleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
75- // // note: the guid must be globally unique and deterministic across Azure
76- // name: guid(aiSearch.id, principalId, principalType, roleIds.aiSearchIndexDataReader)
77- // scope: aiSearch
78- // properties: {
79- // principalId: principalId
80- // principalType: principalType
81- // roleDefinitionId: resourceId('Microsoft.Authorization/roleDefinitions', roleIds.aiSearchIndexDataReader)
82- // }
83- // }
85+ resource aiSearchIndexDataReaderRoleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
86+ // note: the guid must be globally unique and deterministic across Azure
87+ name : guid (aiSearch .id , principalId , principalType , roleIds .aiSearchIndexDataReader )
88+ scope : aiSearch
89+ properties : {
90+ principalId : principalId
91+ principalType : principalType
92+ roleDefinitionId : resourceId ('Microsoft.Authorization/roleDefinitions' , roleIds .aiSearchIndexDataReader )
93+ }
94+ }
8495
8596resource cosmosDbOperatorRoleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
8697 // note: the guid must be globally unique and deterministic across Azure
0 commit comments