'requests Table Azure Application Insights which operation belongs to which resource?

I am using Workbook in Azure Monitor and trying to create a dashboard.

My All resources data goes into 1 Application Insights resource. I have resources like storage, Azure Functions, VPN, Web App etc created in this azure account. One subscription i am using.

I am trying to run query on requests table

enter image description here

I want to create dashboard for a particular WebApp say namely "ABC"

OR

I want to create 1 dashboard for resources WebApp, Azure Function, Storage say of name containing "XYZ" requests table does not contain resourceid column. Which other Table i should use to get resource type and resource id, name



Solution 1:[1]

I had like the same question while logging into a common app insights resource.

From what I saw, there was no common property across all the different logging applications, I could have been using to determine the telemetry-source.

What I ended up with was to add a custom property to all telemetry using a telemetry initializer (which can be added during the startup e.g. within Azure Functions, as well as AppService). For the Storage, I don't know whether this can be also done.

    // C# sample for the initializer
    public class ComponentNameTelemetryInitializer : ITelemetryInitializer
    {
        private readonly string _ComponentName;

        public ComponentNameTelemetryInitializer(string assemblyName)
        {
            _ComponentName = assemblyName;
        }

        public void Initialize(ITelemetry telemetry)
        {
            if (telemetry is ISupportProperties propTelemetry)
            {
                propTelemetry.Properties["ComponentName"] = _ComponentName;
            }
        }
    }

That way I can just filter the log for the custom dimension ComponentName and I get all entries from a specific application.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 johnmoarr