replace preview apis with production replace EnableKubernetes with AddApplicationInsightsKubernetesEnricher replace loggerFactory.AddAzureWebAppDiagnostics(); with loggerBuilder.AddAzureWebAppDiagnostics();