Suggestions to monitor webjobs

Luc Messier 61 Reputation points
2022-03-14T19:06:21.577+00:00

Hello guys,

I would want to monitor some webjobs in Azure but I cannot use Application Insights because the test locations (like US East or US central) are blocked by my clients firewalls.

Does it exist another possibility in application insights or azure monitoring?

I'm not expert in powershell scripts. Do you have some suggestions?

Thank you very much.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,832 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,963 questions
{count} votes

Accepted answer
  1. Andriy Bilous 10,981 Reputation points MVP
    2022-03-15T08:21:33.493+00:00

    Hello @Luc Messier
    You can monitor Web Jobs using 3rd party tool like CloudMonix or App Insights Web Tests(it is a part of Azure Monitor).
    Here is a list of IP addresses that are used by Azure Monitor(Needs to be whitelisted in firewall)
    https://learn.microsoft.com/en-us/azure/azure-monitor/app/ip-addresses

    With App Insights Web Tests you need Kudu Web Jobs API to get the current status of the web job, e.g.
    For triggered web jobs: https://{webapp-name}.scm.azurewebsites.net/api/triggeredwebjobs/{webjob-name}/
    For continuous web jobs: https://{webapp-name}.scm.azurewebsites.net/api/continuousjobs/{webjob-name}/

    Call the Kudu API from your App Insights Web Tests. You can configure your web tests to include the required Authorization header and to validate the JSON response. You can do this by adding multi-steps web tests.

    Multi-steps web tests can be created using Visual Studio Enterprise or Ultimate, or by editing the web test xml definition directly.
    https://blog.kloud.com.au/2016/08/11/monitoring-azure-web-jobs-health-with-application-insights/

    You may use Azure tags in Azure Web App IP restrictions to whitelist Azure Monitor.
    https://learn.microsoft.com/en-us/azure/app-service/app-service-ip-restrictions#set-a-service-tag-based-rule

    https://stackoverflow.com/questions/31798640/monitoring-azure-webjobs

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful