Update python function name string to manage confict after deleting the function app. (#1808)

This commit is contained in:
Marc Greisen
2022-04-18 11:26:44 -07:00
committed by GitHub
parent 3869352b81
commit ebb3c63f9e

View File

@ -164,7 +164,7 @@ module eventGrid 'bicep-templates/event-grid.bicep' = {
// try to make role assignments to deploy as late as possible in order to has principalId ready // try to make role assignments to deploy as late as possible in order to has principalId ready
resource roleAssigmentsPy 'Microsoft.Authorization/roleAssignments@2020-10-01-preview' = [for r in roleAssignmentsParams: { resource roleAssigmentsPy 'Microsoft.Authorization/roleAssignments@2020-10-01-preview' = [for r in roleAssignmentsParams: {
name: guid('${resourceGroup().id}${r.suffix}') name: guid('${resourceGroup().id}${r.suffix}-python')
properties: { properties: {
roleDefinitionId: '/subscriptions/${subscription().subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/${r.role}' roleDefinitionId: '/subscriptions/${subscription().subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/${r.role}'
principalId: pythonFunction.outputs.principalId principalId: pythonFunction.outputs.principalId