Skip to content

Commit

Permalink
improve names in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
jmservera committed Apr 18, 2024
1 parent 661af27 commit bbdbce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eventgrid/templates/eventgrid.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var names = {
// because when building the integration with Event Hub and assigning the routeTopicResourceId
// we will need to call the module again
module namespace_creation 'modules/eventgridinstance.bicep' = {
name: namespaces_name
name: '${namespaces_name}_module'
params: {
location: location
namespaces_name: namespaces_name
Expand Down
4 changes: 2 additions & 2 deletions eventgrid/templates/eventhubintegration.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource eventgrid_topic 'Microsoft.EventGrid/namespaces/topics@2023-12-15-previ
// need this trick, routeTopic cannot be set during creation, so we have to "recreate" it again after
// the namespace is created to enable the topic
module eventgrid_namespace 'modules/eventgridinstance.bicep' = {
name: eventgrid_name
name: '${eventgrid_name}_update'
params: {
location: location
namespaces_name: eventgrid_name
Expand All @@ -34,7 +34,7 @@ resource eventHubsDataSenderRoleDefinition 'Microsoft.Authorization/roleDefiniti
// Event Grid needs permissions to send messages to the Event Hub, so we use a role assignment
// to grant the Event Grid namespace the built-in Azure Event Hubs Data Sender role.
resource roleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('roleAssignment')
name: '${eventgrid_name}_eventgrid_sender'
scope: eventhub
properties: {
principalId: eventgrid_namespace.outputs.namespace_resource.identity.principalId
Expand Down

0 comments on commit bbdbce2

Please sign in to comment.