以下の解決策を参照してください。
説明
手順1:AzureApplicationInsightsのインスタンスを作成する
1.MicrosoftAzureポータルを開きます
2. Azureアカウントにログインし、[リソースの作成]>[開発者ツール]>[ApplicationInsights]を選択します。

3.次の設定を入力し、[レビュー]+[作成]を選択します。
名前:az400-9940427-メイン
手順2:AppInsightsSDKを構成する
4.VisualStudioでASP.NETCoreWeb Appプロジェクトを開き、ソリューションエクスプローラーでAppNameを右クリックし、[追加]> [ApplicationInsightsTelemetry]を選択します。

5.[開始]ボタンをクリックします
6.アカウントとサブスクリプションを選択します>Azureポータルで作成した既存のリソースを選択します>[登録]をクリックします。
参照:
https://docs.microsoft.com/bs-latn-ba/azure/azure-monitor/learn/dotnetcore-quick-start?view=vs-2017