skip to Main Content

UseAzureMonitor duplicates all logs

builder.Services .AddOpenTelemetry() .UseAzureMonitor() .ConfigureResource(r => r.AddService("XYZ")) .WithTracing(b => b .AddSource("X") .AddAzureMonitorTraceExporter()) .WithMetrics(b => b .AddMeter("X") .AddAzureMonitorMetricExporter()); I am trying to integrate my app with Azure Monitor by using UseAzureMonitor extension and my custom Tracing and Metrics. Separately they work as…

VIEW QUESTION

Azure – How do I designate the 2nd subscription name for Application Insights CLI Create command

My command: az monitor app-insights component create --app $appin --subscription $sub --resource-group $rg-for-insights-component --workspace workspace-in-different-Subscription --location centralus error: Could not retrieve the Log Analytics workspace from ARM: /subscriptions/GUID/resourceGroups/rg-for-insights-component/providers/microsoft.OperationalInsights/workspaces/workspace-in-different-Subscription Of course that workspace exists in a different subscription, how would it…

VIEW QUESTION
Back To Top
Search