Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2025 03:46 PM
Hello @Malthe
Thank you so much for sharing the error:
One of the error msg which drew my attention is :
.EventGridClient.generateAccessTokenUsingClientSecret
Can you please verify Service Principal Permissions:
- Ensure your service principal has the minimum required Azure RBAC roles (these are not app roles in Azure AD; they are resource-level permissions):RoleScopePurposeStorage Blob Data ContributorStorage accountRead/write blobs for file discovery.Storage Queue Data ContributorStorage accountManage queues for notifications (if not using connection string).EventGrid EventSubscription ContributorResource group (or subscription)Create/read/delete Event Grid subscriptions.ContributorStorage account and resource groupGeneral setup (broader; use if custom roles fail).
- Assign these via Azure Portal > Storage Account/Resource Group > Access Control (IAM) > Add role assignment > Select service principal.
Also, remove unnecessary app role assignments (likely root cause)