Defining ID of server host RRS feed

  • Question

  • Is it possible to define or to know, in advance, what is the name of the server that is running the application on Azure? 

    When we are reading the telemetry, we receive in context.device.roleInstance some identificators that I don't know where are defined.

    Are these names dynamics?

    What I'm trying to do is get telemetry group by different Hosts.

    Thanks in advance.

    Wednesday, September 14, 2016 11:25 AM


  • What do you mean by "in advance"?..

    Your deployment defines what ApplicationInsights collects.

    For example if you deploy Cloud application you would have role instance name like WebRole1 (which I believe you get by default but everyone change that from the beginning). Than when you deploy you may have 10 instances of this roles and role instance name would be something like WebRole_In_1. When you scale up or down you would have less or more instances, machine names may change but you would still have WebRole_In_N instance names.

    That is an example for cloud apps but you may be using WebApps or VMs in Azure. In all the cases ApplicationInsights would never randomly assigning names. ApplicationInsights reads it using appropriate APIs and reports to you.


    Wednesday, September 14, 2016 6:40 PM