@Hiran Amarathunga - Thanks for the question and using MS Q&A platform.
It seems like you are facing an issue while implementing File Notification Mode in Autoloader. The error message suggests that the request is not authorized to perform this operation using this permission.
You mentioned that the Databricks Service Principal has the Contributor role to the Storage account. However, it is possible that the service principal may not have the required permissions to perform the operation.
To resolve this issue, you can try the following steps:
- Verify that the Databricks Service Principal has the required permissions to access the Storage account. Make sure to assign the
Storage Blob Data Contributor role
to the service principal. - Check if the Storage account firewall is enabled. If it is enabled, make sure that the Databricks cluster IP address is added to the allowed IP addresses list.
- Verify that the Storage account connection string is correct, and that the Storage account is accessible from the Databricks cluster.
If the issue persists, please provide more information about your setup and the steps you have taken so far. Sharing the code and the screenshot of the error message helps to assist better.
For more details, refer to MS Q&A thread addressing similar issue.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.