Hello @Smock
To monitor for requests blocked by network access restriction on your function app, you can use the diagnostic logs feature in Azure Functions.
First, you need to enable diagnostic logs for your function app. You can do this by going to your function app in the Azure portal, selecting "Diagnostic settings" under the Monitoring section, and then adding a new diagnostic setting.
In the diagnostic setting, you can select the "AppServiceHTTPLogs" category and choose to send the logs to a storage account or an event hub.
Once you have enabled diagnostic logs, you can query the logs to see if any requests have been blocked by the network access restrictions.
You can use Kusto Query Language (KQL) to query the logs. Here is an example query that you can use to find blocked requests:
AzureDiagnostics | where Category == "AppServiceHTTPLogs" | where OperationName == "Microsoft.Web/sites/restrictions" | where ResultDescription == "Access Denied"
This query filters the logs to show only the entries related to network access restrictions and then filters further to show only the entries where access was denied.
You can modify the query to filter by specific IP addresses or time ranges as needed. You can also set up alerts based on this query to receive notifications when a request is blocked by the network access restrictions. To do this, you can go to the "Alerts" section in the Azure portal and create a new alert rule based on the query results.
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.