When power bi dataset refresh failure occurs it should trigger logic app in azure
and need to get the refresh failure details of a dataset (dataset name, dataset id and data source error) in logic app.
So far I did following,
I have configured "scheduled refresh" failure email notification in Power BI. Whenever refresh failure happens receiving emails with subject "Refresh Failed: testdataset has failed to refresh".
Body of the email has following details which is not useful
Activity ID, Request ID, Cluster Name, Refresh Start Time, Refresh End Time
To interact with Power BI at API level, I have registered Azure App
How to get refresh failure details of a dataset (dataset name, dataset id and data source error)
in Power BI to logic app? I need steps how to achieve this.
Have you considered using the email trigger for incoming emails in logic apps?
https://learn.microsoft.com/en-us/azure/logic-apps/tutorial-process-email-attachments-workflow#monitor-incoming-email
You could run an action when the subject contains "Refresh Failed:".
Or you could consider accessing the Power BI API to check the refresh history on a schedule similar to your dataset refresh.
https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-refresh-history
Related
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 .
I have different content on Sharepoint online and whenever we create or modify any records then send notification to the PHP/Apache server.
I Created one Power Automated notification, but its sending on mobile, need to send to server to server.
Also need to check the Sharepoint REST API.
Create API on the server where you want notification from Sharepoint. Then open the Power Automate and create the flow, then
Select the trigger "When an Item is created or modified".
In next step search for HTTP and select it.
Fill the necessary parameters like "Method, URI, Headers, Body" etc.
Then save the flow and test the flow.
I setup a Logic App workflow that runs each time I receive an email in my Exchange mailbox on Office 365.
From time to time my connection to Office 365 becomes invalid, e.g. expired token. This breaks my Logic App. Is there a way I can get alerted about invalid connections?
There is no direct way to trigger an alert if your connections become invalid (within logic apps)
However, you can config an alert for your logic apps (as a whole service).
Alerts
You can set up an Alert-Rules in Logic apps to achieve this
Diagnostic Logging/Alerts
You can also enable the diagnostic logging to send all the logs to Log analytics (previously called OMS)
Then configure alerts in Log Analytics based on the logs/telemetrics.
I have enable the auditing and thread detection feature on azure for database and also setup the email for same but not getting and email after making the sql injection attack.
Please use this demo application to generate alerts from the Audit and Threat Detection feature.
Let me know if you still do not receive the alerts on your email mailbox. Please examine your junk mail also.
Does anybody know how to retrieve data from SAP module using SAP Message Server (Preview) in LogicApp.
I have connected to on premise gateway but not sure how do I call the SAP module from LogicApp. I have tried to google blogs or article for using SAP Message Server (Preview) but couldn't find anything that could explain how can you connect SAP Module with your logic app on azure.
Thanks
Hi Bhavesh we are mainly using two way to connect Logic app to SAP
1) BABI
2) IDOC
Does anybody know how to retrieve data from SAP module using SAP Message Server (Preview) in LogicApp.
You may get the answer from the Azure official document. The following is the snippet from the document.
1.Add the Request/Response trigger, and then select New step.
2.Select Add an action, and then select the SAP connector by typing SAP in the search field:
3.Select SAP Application Server or SAP Message Server, based on your SAP setup. If you don't have an existing connection, you are prompted to create one.
4.Enter a name for your SAP connection
5.The different SAP options are now available. To find your IDOC category, select from the list. Or manually type in the path, and select the HTTP response in the body field:
6.Add the action for creating an HTTP Response. The response message should be from the SAP output
7.Save your logic app. Test it by sending an IDOC through the HTTP trigger URL. After the IDOC is sent, wait for the response from the logic app:
Note:
Current limitations:
Your logic app times out if all steps required for the response don't finish within the request timeout limit. In this scenario, requests might get blocked.
The file picker does not display all the available fields. In this scenario, you can manually add paths.