Skip to content

role name not reflecting on azure app insights portal when set on applicationinsights.json file #1425

@raytapan

Description

@raytapan

Expected behavior

I am running java app as Web app on Azure app service. I am trying to integrate with applicationinsights-agent-3.0.0 to send telemetry to application insights.
I am trying to specify a role name as my web app name as i have multiple application sending telemetry to same application insights resource. The role name specified on applicationinsights.json file should reflect as component name on Application map on app insights portal

Actual behavior

The role name specified on applicationinsights.json file is NOT reflecting as component name on Application map on app insights portal

To Reproduce

The below is my declaration on applicationinsights.json file.
{
"connectionString": "InstrumentationKey.../",
"role": {
"name": "my role name"
}
}

Then when i go to Application map on azure app insights portal, it doesn't show the role name specified on applicationinsights.json file. Instead it displays my actual web app name on azure app service.

However if I set environment variable APPLICATIONINSIGHTS_ROLE_NAME in app settings in web app, it correctly displays on Application map on app insights portal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions