VM Monitoring with Set-AzVMExtension

Daniel Steinhauser 1 Reputation point
2020-07-21T22:58:00.06+00:00

Hi,

We've been trying to set up codeless monitoring of our ASP .NET application using Application Insights following the directions for monitoring an Azure VM:

https://learn.microsoft.com/en-us/azure/azure-monitor/app/azure-vm-vmss-apps

We've successfully configured the extension on the VM, but see almost no telemetry reported in the Application Insights resource we've set up in the Azure portal.

The now no longer recommended Application Insights Status Monitor (https://learn.microsoft.com/en-us/azure/azure-monitor/app/monitor-performance-live-website-now) worked a bit better for us.

I've noticed that the old monitor used to inject the app insights SDK .dlls and an applicationinsights.config file into our deployed web app. Are these artifacts still required when using the Azure extension?

Is there something else we should be looking for to ensure that our application is actually connected to app insights?

We're currently testing with the default instrumentationKeyMap in our extension configuration:

 "instrumentationKeyMap": {  
      "filters": [  
        {  
          "appFilter": ".*",  
          "machineFilter": ".*",  
          "virtualPathFilter": ".*",  
          "instrumentationSettings" : {  
            "connectionString": "InstrumentationKey=<our-application-insights-instrumentation-key>"  
          }  
        }  
      ]  
    }  

Are there any examples or documentation available that demonstrate how to properly configure the machineFilter and appFilter options with values other than "match everything"?

Thanks for any ideas!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,323 questions
{count} votes

1 answer

Sort by: Most helpful
  1. olufemia-MSFT 2,861 Reputation points
    2020-07-25T01:43:12.24+00:00

    Hello @Daniel Steinhauser , wanted to share a quick update and not leave you hanging over the weekend. :)

    The feature owners reviewed and advised we re-direct this issue to our technical support channel for a deeper look.
    Also worth noting that there's a plan to curate more documentation and samples as this feature evolves from Public preview to general release in the future .

    If you don't have a support plan, send mail to Azcommunity@microsoft.com, include your subscription ID and a link to this thread (for context) and my team will assist.

    Looking forward to your response.

    Cheers.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.