locked
Azure MobileService and Application Insights RRS feed

  • Question

  • Hi,

    I tried to add Application Insights to my Azure MobileService and used the VS AI PlugIn.

    In Azure Portal I was able to open the AI tab for my project, but no data was recieved after several requests to my WAMS.

    Then I added Asp.Net WebApi 2.2 Tracing + AI TraceListener and added the code snippet

    config.EnableSystemDiagnosticsTracing();

    to my WebApiConfig.Register method.

    After several requests, still no telemetry data was recieved in Azure Portal.

    Then I tried step 2 of htt p://azure.microsoft.com/en-us/documentation/articles/insights-perf-analytics/ (sry, I'm still not allowed to include links) but the new Azure Portal does not show my WAMS in "Mobile Apps". My second WAMS (without AI) isn't listed too. There is just the message "No elements ...".

    The classic portal "manage.windowsazure" still lists the WAMS apps, but I cannot activate AI there.

    So is anyone able to give me some help to get AI + WAMS working?

    Many thanks,

    Thorsten

    Wednesday, April 29, 2015 9:40 AM

Answers

All replies

  • Azure MobileServices are not officially supported...
    But I would expect it to work. Was nuget package installed without errors? What SDK version did you use (In .15 there was an issue that data was not sent out sometimes)? If you start your application in debug do you see anything in the VS output? Was AI http module added to your web.config? Did you check that AI.config has correct instrumentation key that matches your portal AI resource?

    Anastasia

    Tuesday, May 5, 2015 4:47 AM
  • Dear Anastasia,

    I'm still not able to run AI with WAMS, and getting the same error as described in http://stackoverflow.com/questions/30119668/azure-mobile-services-and-application-insights and https://social.msdn.microsoft.com/Forums/en-US/13d2c28c-46fe-4547-b1ac-2ec3bbac72f2/application-insights-and-azure-mobile-services?forum=ApplicationInsights.

    I tried to Register the WebRequestTrackingModule manually with PreApplicationStart, too - but no success.Web.config looks quite good, currently I'm running Version 0.17.0.576, InstrumentationKey is fine.

    Do you have any further advice?

    It would be great to get AI working with WAMS, so I can complete my loadtests with the neccessary internal data.

    Friday, June 12, 2015 7:11 AM
  • We will investigate what may be the reason. So far I do not know what may cause this, it looks like a regular MVC/WebApi app deployed to a web site that should just work. If I have more ideas I will write back.

    Anastasia

    Saturday, June 13, 2015 4:45 AM
  • It looks like any http module does not work with mobile services. We created a sample http module that throws exception in OnBegin but while in debug application fails when published it works.

    We will contact Azure Mobile Services team to understand if that is a limitation and if there is a workaround.


    Anastasia

    Monday, June 15, 2015 10:31 PM
  • Azure Mobile Services team confirmed that their infra prevents http modules from being loaded. We will investigate deeper to see if any workaround exists but there is no ETA.

    You could add a user voice request for Azure Mobile Services support: http://visualstudio.uservoice.com/forums/121579-visual-studio/category/77108-application-insights


    Anastasia

    Monday, June 22, 2015 5:53 PM