@$@chin Thank you for sharing additional details and apologies for the delayed response.
The scenario mentioned in the question would come under private testing. There are 2 ways to get this to work:
- Public availability test enablement - In this case, a public DNS record is created for the intranet site and firewalls are enabled to allow testing from ApplicationInsights endpoints.
- Using custom code and TrackAvailability() method of AppInsights API - In this method, the testing is done without making the Public DNS entry. Instead, a custom code is written which performs the test and uploads the result to ApplicationInsights resource. This code can be run as Azure Function or as a scheduled webjob or other mechanism. For an example code sample using this method, see TrackAvailability(): Basic Code Sample.
The details ofTrackAvailablity()
method is available here - TelemetryClient.TrackAvailability Method
Hope this helps.
If the answer did not help, please add more context/follow-up question for it. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.