问题
Eh! Troubleshooting this all morning to no avail.
Background:
- What: Azure Function
- Runtime: Python
- Trigger: EventGrid w/ Advanced Filters
- Advanced Filters (NOTE: Working just fine for last 30+ days):
- Subscribed to: Storage Account; blob upload only
- Auth: System-assigned Managed Identity (Function SAMI added as
BlobDataReader
role to Storage Account)
Issue:
- Uploading .csv files to blob container does not trigger the Function
- AND various "ClientOtherError" and "AuthenticationError" messages are shown in "Request Breakdown" blade
Questions:
- What are these new errors?
- How do I create an App Insight alert that catches them?
回答1:
It's simple to create an application insights alert for an azure function error.
You should know that all the errors will flow into the exceptions table
in application insights. When create an alert, you should choose the custom log search
as signal. next, you can write a query to query the errors from exceptions table
.
来源:https://stackoverflow.com/questions/65635640/azure-function-failures-occurring-which-app-insights-alert-to-create