I am trying to create event triggers for synapse pipelines, specifically for when a blob is created. When I create one and publish, I get the following error message:
The client '...guid...' with object id '...guid...' does not have authorization to perform action 'Microsoft.EventGrid/eventSubscriptions/write' over scope '/subscriptions/...guid.../resourceGroups/...subscription name.../providers/Microsoft.Storage/storageAccounts/...storage acc name.../providers/Microsoft.EventGrid/eventSubscriptions/...guid...' or the scope is invalid. If access was recently granted, please refresh your credentials.
Following other similar questions asked on this, I have the following permissions:
For synapse workspace:
- Contributor
- EventGrid Contributor
For storage account:
- Contributor
- EventGrid Contributor
- Storage Account Contributor
The synapse workspace was also given the following permissions in the storage account:
- Contributor
- Storage Blob Data Contributor
- Storage Account Contributor
The synapse workspace and I are also granted access in the synapse studios access control.
From what I have read online, I have all the necessary permissions, but I am still getting the error after many days of trying. This is the only permission error I am facing, I am able to connect to storage / databases / key vault / logic apps / etc without any issues. It's only triggers I can't create.
Please let me know if anyone has a solution. Thanks!