No data to Application Insights

Product: PowerShell Universal
Version: 2.72

Hey Universal Folks,

Using the instructions from this page, Monitoring - PowerShell Universal, I’ve setup an Application Insights resource, copied the Instrumentation key to my appsettings.json file, and restarted the Universal server.

I don’t get any errors in the app log on the server, and Universal itself is working fine; indicating there’s not a problem with the formatting/syntax of my appsettings.json file.

However, I’m not getting any data in Application Insights!

I’ve visited some pages, called some APIs, run some jobs, even locked up the resources on the server, but no data. That was a couple of days ago, and working on there some more today.

Am I missing something for the setup/config? Is my appsettings.json file setup correctly? Is there something I can do for troubleshooting, or are there any logs I can check?

{
  "Kestrel": {
    "Endpoints": {
      "HTTP": {
        "Url": "http://*:80"
      },
      "HTTPS": {
        "Url": "https://*:443",
        "Certificate": {
          "Subject": "*.blam.com",
          "Store": "My",
          "Location": "LocalMachine"
        }
      }
    },
	"RedirectToHttps": "true"
  },
	
	"ApplicationInsights": {
		"InstrumentationKey": "1-2-3-4-5"
	},
}

Thanks,
Rob

1 Like

I actually can reproduce this and have resolved it for 2.8. The fix will be available on Tuesday.

1 Like

I upgraded to 2.8.0 today, rebooted, and now I have data starting to show up in Application Insights :slight_smile:

Now I get the fun task of learning how to work with the data and Application Insights.

Thanks Adam!

1 Like