Study FAQ
How do I use Azure Monitor to alert on terminal Power Platform business failures?
Also asked as 2
- How can I alert on a failed Power Platform operation using an Application Insights event?
- What should I instrument and verify for an Azure Monitor log alert on business failures?
Answer
Emit a sanitized failure event from a trusted observer of the operation's terminal state, then create an Azure Monitor log search alert over the event's actual telemetry resource and schema. A browser-only signal can miss a failure after the user leaves. Instrument the server or flow reporting path explicitly.
For an Application Insights Logs context with customEvents, a custom signal named ExpenseOperationFailed could be queried as follows:
customEvents
| where timestamp > ago(15m)
| where name == "ExpenseOperationFailed"
| project timestamp, customDimensions
Implement the event and check the actual ingestion schema before using the query. Preview it on synthetic data. Set a threshold, time window, evaluation frequency and action group appropriate to the response required. Use stable dimensions such as environment or operation type. Keep the individual operation ID available for correlation without creating one alert series per attempt.
The rule author needs read access to the target, write access to the rule's resource group, and read access to any associated action group. Verify the test event arrives, the rule evaluates, the intended recipient receives it, and repeat and recovery behavior match the configuration. Separately find operations that stay pending beyond the business deadline, since they may never emit a terminal failure event.
Microsoft references
Full explanation
AB-400: Tracing Failures Across Power Platform Extensions
Study guide · AB-400
Read the full explanation