Skip to content

Commit

Permalink
add role assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
sebassem committed Nov 10, 2023
1 parent 4166ff7 commit a3a521f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,13 @@ resource adxEventHubConnection 'Microsoft.Kusto/clusters/databases/dataConnectio
}
}

resource eventHubRoleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('AzureEventHubsDataReceiverRole', adxCluster.id, eventHubResourceId)
scope: adxCluster
properties: {
roleDefinitionId: 'a638d3c7-ab3a-418d-83e6-5f17a39d4fde'
principalId: adxCluster.identity.principalId
}
}

output adxEndpoint string = adxCluster.properties.uri

0 comments on commit a3a521f

Please sign in to comment.