get email ID of person debuging azure data factory pipeline - azure

I have a production and a development environment in azure data factory. I have developed the pipeline such that when the pipeline fails, we get an email notification. However the issue is if someone tests a pipeline in development and it fails we still get error email and this is bugging a lot of people as no one wants to see email of someone else's error run.
Is there a way to implement the pipeline in such a way that, if a pipeline fails in production everyone should receive an email but if a pipeline fails in development, only the developer should get the email? I cannot seem to find any system assigned variable or something like User().email just like we have in powerapps.
Please see: We cannot have a parameter in pipeline like email: <>. I need a way to get email id of the person using the pipeline dynamically.

You can invoke a REST API to activity logs and get the event initiated by - which has user information of who triggered the pipeline.
Sample Request
https://management.azure.com/subscriptions/<SUBSCRIPTION>/providers/Microsoft.Insights/eventtypes/management/values?api-version=2015-04-01&$filter=eventTimestamp ge '<CurrenTime - 5 mins>' and eventTimestamp le '<CURRENT TIME + 5 mins>' and resourceUri eq /subscriptions/<SUBSCRIPTION>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.DataFactory/factories/<DATAFACTORYNAME>'
Refer this link for more information

Related

Can we invoke (run) azure pipeline on receiving email

We are looking for the possibility of a situation
Where our vendor sends us email on the update and upon receiving that email we want to run our azure pipeline or release
Automatically
So is it possible to do that
Our mail server is office Outlook and pipelines are in azure dev ops
Our intention is if we received update to email then we want to run pipeline
Note: we can even maintain specific email id to get update notifications and set it like once we receive that email olwe should invoke pipeline
Please help me if we can do it or not
If yes any info about this is very helpful

Automated email when connection to source fails in Azure

sorry if the question is too basic. I am very new to Azure and I want to receive automated email if a connection to for example a SQL server is not established. In that regard, I was wondering if there is anything like get meta data activity for linked services that could output true or false if a connection is is not established? given that there is such activity, I know how to to the rest of job. I would appreciate it if someone could help.
Thanks in advance
I have searched about it and tried to find the option of linkedservice instead of dataset in some activities settings but have not figured it out yet.
You can make use of Logic App in Azure with your Azure Data factory to receive an email when there’s an error.
I created a Logic app resource with the connectors as mentioned below:-
I created an ADF pipeline and sent an email on my Outlook when I received an error like below:-
My copy data activity failed like below:-
Now, I’ll add one control flow on Web Activity that will trigger our Logic app to send an Email alert.
Added my Logic app URL in the Web activity URL and content-type set to application/json :
Added the dynamic content in the body to get the Error message and details in the email:-
As the Copy activity failed, I got an email alert like below:-
Reference:-
https://learn.microsoft.com/en-us/azure/data-factory/how-to-send-email
How about getting an text message with email ? :)
You can create monitoring on a pipeline and on failure it will send an email and also a text message . Please read more on the same here https://azure.microsoft.com/en-us/blog/create-alerts-to-proactively-monitor-your-data-factory-pipelines/.
Now for the pipeline , you can add a Lookup actvity and add a simple query like
"Select top 1 from someTable"
When the connection to the SQL will fail , the activity will fail and also the pipeline . You should get and email and text for the failures .

Can we get a mail from gitlab , If the pipeline started itself?

We're using gitlab for ci/cd .By using gitlab notification setup , we are getting mails but If the pipeline ends only, mail will triggered the status of the pipeline. Is there any possibility for getting mail when pipeline starts status?
and another one thing , by using SMTP ,gitlab.rb , Please any one explain about this. The recipients whoever getting my mail, they need more information regarding the pipeline status. I searched for that , it shows relatedly gitlab.rb and smtp .But I didn't getting clear about that. Please anyone explain about the SMTP .We want the deployment for email notification. Thanks in advance
Call a Web API that sends email (e.g. - mailgun, sendgrid) via curl/wget as the first command in the script: section of the deploy Job within .gitlab-ci.yml
Or, use a CLI tool such as sendmail or ssmtp.
Either option will require configuration in the form of an API token or SMTP credentials.
See an example for using the Mailgun API, here.

Send email notification for inactive task or bugs----Azure Devops

How do you configure an Email Notification for an individual user in an organization for not responding in a timeframe?
Eg: An email notification gets sent if Initial Response was not met within say 6 hours of VSO being assigned.
In Azure DevOps project notification settings, it's possible to configure a notification based on the following actions taking place on a work item:
Notification settings based on a timeout, or lack of response, are not apparent.
Is it possible to configure a notification based on a lack of activity for a work item?
Currently there are below pre-defined notifications for work items in Azure Boards.
See: Manage your personal notifications for details.
I am afraid that no such notifications are designed for your requirement. However, as a workaround, we can create a query to find those work items which are not changed from New for a period when they have been assigned to members, as below.
Above query will query bugs and tasks which are assigned to members but still state in New state and they are created earlier than today across projects. See: Define a query for details.
And clicking "Email query" allows you to send this query result to specific members.

Azure Data Factory Pipeline Alert Email Send Everytime

I would like to send an email via an alert once an Azure Data Factory Pipeline has either finished successfully or failed. This is fairly simple to setup and I get the email once! However after the first time the email is sent it never sends again.
I understand that this is because the alert is in a fired state and will not send again unless this is changed. There is no way to change the state of the alert so the alert will never be triggered again.
Is there anyway to make it so the notification sends an email everytime the pipeline runs?
Your understanding is correct , that once an alert is fired ( for what ever reason ) it needs to be deactivated and then only the other one can be fired again . My understanding is the alerts are configured for "not the happy path" and so the logic makes sense .
As it appears that just want to an email alert when your pipeline is executed . I suggest to use a logic App to do that . You can execute this as the last activity in the pipeline and call the logic app from the pipeline . Configuring its is very easy .

Resources