Hello Junior Steve KAMDEM DJOKO,
Thank you for posting your query here!
Adding on to the previous response, as per the error message it seems like the client, identified by the object ID 'd4d9f262-75fa-4138-845c-019afa12cf7a', does not have the required permissions to create an event subscription in the Azure Event Grid.
Typically, you would assign the 'EventGrid Contributor' or 'EventGrid Event Subscription Contributor' role at the appropriate scope.
Access to Azure resources can be granted by users who have appropriate permissions, typically users with roles such as Owner, Contributor, or User Access Administrator.
Steps to grant access (Azure Portal):
· Go to the Azure Portal and navigate to the specific resource (e.g., Storage Account).
· In the left-hand menu, find and click on "Access control (IAM)".
· Click on the "+ Add" button and select "Add role assignment".
· Choose the appropriate role from the list (e.g., EventGrid Contributor, EventGrid Event Subscription Contributor).
· In the "Assign access to" section, specify the user, group, or service principal to which you want to grant access.
· Click "Save" to apply the role assignment.
Once access is granted, try refreshing the credentials to ensure that the changes take effect.
Additional points to consider:
· Make sure that your subscription is registered with the Event Grid resource provider. If you are using this feature in Azure Synapse Analytics, please ensure that your subscription is also registered with Data Factory resource provider.
· If the storage account is behind a private endpoint and blocks public network access, you need to configure network rules to allow communications from blob storage to Azure Event Grid
Do let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.