2 weeks ago
I am trying to run a SQL alert task in data bricks job, Service principal is the run_as as set to the job, and task fails with below error message.
I also checked if SPN can be granted permission on SQL alert and SQL query, turns out only user id or AD group can be granted permissions. Has anyone seen this error before?
2 weeks ago
Hi @GANAPATI_HEGDE ,
According to docs:
So instead of using service principal name try to pass application ID.
2 weeks ago
Where do i pass the service principal name?
2 weeks ago
Can you share the docs as well so that i can read about it?
2 weeks ago
Hi,
It's described at their REST API docs:
Create an alert | Alerts V2 API | REST API reference | Databricks on AWS
2 weeks ago
It doesnt really explain where to set the run as username for alerts, when i check in the jobs UI, i dont see option to set run_as as well
2 weeks ago
Create Alert in regular way. After your alert is created:
1. Go to Alerts
2. Select your alert
3. Click pencil next to run as to edit:
4. Provide application id of your service principal and clik save:
2 weeks ago
unfortunately, only these options are available in my UI, is it the new UI?
2 weeks ago
Yes, it seems that you're using legacy alerts:
What are legacy alerts? | Databricks on AWS
To switch to alerts v2 follow this guide:
Passionate about hosting events and connecting people? Help us grow a vibrant local communityโsign up today to get started!
Sign Up Now