From 7201787c76f699ffd38e2362b10210069cb07ef2 Mon Sep 17 00:00:00 2001 From: Bert Jansen Date: Wed, 27 Mar 2024 09:49:08 +0100 Subject: [PATCH] Disable PnP Core SDK telemetry --- src/PnP.Scanning/PnP.Scanning.Process/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PnP.Scanning/PnP.Scanning.Process/Program.cs b/src/PnP.Scanning/PnP.Scanning.Process/Program.cs index ead981c..8e09be8 100644 --- a/src/PnP.Scanning/PnP.Scanning.Process/Program.cs +++ b/src/PnP.Scanning/PnP.Scanning.Process/Program.cs @@ -199,6 +199,8 @@ private static IHost ConfigureScannerHost(string[] args, int orchestratorPort) options.PnPContext.GraphFirst = false; // Remove the HTTP timeout to ensure the request does not end before the throttling is over options.HttpRequests.Timeout = -1; + // Disable PnP Core SDK telemetry + options.DisableTelemetry = true; }); services.Configure(context.Configuration.GetSection("PnPCore")); services.AddPnPCoreAuthentication();