@@ -174,8 +174,8 @@ module eventGrid 'bicep-templates/event-grid.bicep' = {
174174}
175175
176176// try to make role assignments to deploy as late as possible in order to have principalId ready
177- resource roleAssigmentsPy 'Microsoft.Authorization/roleAssignments@2020-10-01-preview' = [for r in roleAssignmentsParams : {
178- name : guid ('${resourceGroup ().id }${r .suffix }-cs ' )
177+ resource roleAssignments 'Microsoft.Authorization/roleAssignments@2020-10-01-preview' = [for r in roleAssignmentsParams : {
178+ name : guid ('${resourceGroup ().id }${r .suffix }-onefuzz ' )
179179 properties : {
180180 roleDefinitionId : '/subscriptions/${subscription ().subscriptionId }/providers/Microsoft.Authorization/roleDefinitions/${r .role }'
181181 principalId : function .outputs .principalId
@@ -188,8 +188,8 @@ resource roleAssigmentsPy 'Microsoft.Authorization/roleAssignments@2020-10-01-pr
188188}]
189189
190190// try to make role assignments to deploy as late as possible in order to have principalId ready
191- resource roleAssigmentsNet 'Microsoft.Authorization/roleAssignments@2020-10-01-preview' = [for r in roleAssignmentsParams : {
192- name : guid ('${resourceGroup ().id }${r .suffix }-net' )
191+ resource roleAssignmentsNet 'Microsoft.Authorization/roleAssignments@2020-10-01-preview' = [for r in roleAssignmentsParams : {
192+ name : guid ('${resourceGroup ().id }${r .suffix }-onefuzz- net' )
193193 properties : {
194194 roleDefinitionId : '/subscriptions/${subscription ().subscriptionId }/providers/Microsoft.Authorization/roleDefinitions/${r .role }'
195195 principalId : netFunction .outputs .principalId
@@ -204,7 +204,7 @@ resource roleAssigmentsNet 'Microsoft.Authorization/roleAssignments@2020-10-01-p
204204
205205// try to make role assignments to deploy as late as possible in order to have principalId ready
206206resource readBlobUserAssignment 'Microsoft.Authorization/roleAssignments@2020-10-01-preview' = {
207- name : guid ('${resourceGroup ().id }-user_managed_idenity_read_blob-cs ' )
207+ name : guid ('${resourceGroup ().id }-user_managed_idenity_read_blob' )
208208 properties : {
209209 roleDefinitionId : '/subscriptions/${subscription ().subscriptionId }/providers/Microsoft.Authorization/roleDefinitions/${StorageBlobDataReader }'
210210 principalId : reference (scalesetIdentity .id , scalesetIdentity .apiVersion , 'Full' ).properties .principalId
0 commit comments