@Jesper Stocholm Apology for the delay. I have looked into the backend logs and as the assigned permission does not have the send message access so the event grid creation fails. You need to assign Storage Queue Data Message Sender
permission. As per the blog article I see the role assign as Storage Queue Data Contributor which does not have the send message permission on the queue.
As there was a recent change to validate the permission on the destination endpoint and I will reach out to the author of the blog to update it to reflect the right permission.
@Aleksandr Komarov You need to update the permission to Storage Queue Data Message Sender now. If you are using ARM template then you need to add the below section to their existing template to assign managed identity of the topic/domain/system topic to the destination resource.
{
"type": "Microsoft.Storage/storageAccounts/providers/roleAssignments",
"apiVersion": "2020-04-01-preview",
"name": "[concat(variables('storageAccountName'), '/Microsoft.Authorization/', variables('uniqueRoleGuidStorageAccount'))]",
"dependsOn": [
"[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', variables('managedIdentity'))]"
],
"properties": {
"roleDefinitionId": "[variables('storageBlobDataContributor')]",
"principalId": "[reference(resourceId('Microsoft.ManagedIdentity/userAssignedIdentities/', variables('managedIdentity')), '2018-11-30').principalId]",
"scope": "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]",
"principalType": "ServicePrincipal"
}
}
Feel free to get back to me if you need any help.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.