9/2/2023 0 Comments Downie appIf a similar value isn't present, it means the application isn't currently running or isn't supported. If it isn't running, follow the instructions in the section Enable Application Insights monitoring.Ĭonfirm that the status source exists and looks like Status source D:\home\LogFiles\ApplicationInsights\status\status_RD0003FF0317B6_4248_1.json. TroubleshootingĬheck that the ApplicationInsightsAgent_EXTENSION_VERSION app setting is set to a value of ~2.Ĭonfirm that Application Insights Extension Status is Pre-Installed Site Extension, version 2.8.x.xxxx, is running. For more information, see Troubleshooting steps. If the upgrade is done from a version prior to 2.5.1, check that the ApplicationInsights DLLs are removed from the application bin folder. Manually remove the private site extension named Application Insights extension for Azure App Service.For more information, see Enable through PowerShell. Set the application settings to enable the preinstalled site extension ApplicationInsightsAgent.Behind the scenes, the old private site extension will be removed. Upgrade by enabling via the portal: Even if you have the Application Insights extension for App Service installed, the UI shows only the Enable button. If you're using an earlier version, you can update via one of two ways: Starting with version 2.8.9, the preinstalled site extension is used. To check which version of the extension you're running, go to. The new monitoring bits are delivered in the background to the target app service, and on application restart they'll be picked up. Upgrading from version 2.8.9 happens automatically, without any extra actions. To upgrade the monitoring extension/agent, follow the steps in the next sections. $app = Set-AzWebApp -AppSettings $newAppSettings -ResourceGroupName $app.ResourceGroup -Name $app.Name -ErrorAction Stop $newAppSettings = "~2" # enable the ApplicationInsightsAgent $newAppSettings = "InstrumentationKey=012345678-abcd-ef01-2345-6789abcd" # set the Application Insights connection string $newAppSettings = "012345678-abcd-ef01-2345-6789abcd" # set the Application Insights instrumentation key In the following sample, replace all instances of AppMonitoredSite with your site name: # preserve non Application Insights application settings. This option generates the latest Resource Manager template with all required settings configured. Then select Download a template for automation. Enable Application Insights on the Monitoring tab. To create a Resource Manager template with all the default Application Insights settings configured, begin the process as if you were going to create a new web app with Application Insights enabled.Ĭreate a new App Service resource with your desired web app information. Automate the creation of an Application Insights resource and link to your newly created App Service resource Specifically, see the section that starts on line 238. "displayName": "Application Insights Settings"įor an example of a Resource Manager template with application settings configured for Application Insights, this template can be helpful. The basic structure of the application settings JSON for an App Service resource: "resources": [ You can use this method when you deploy new App Service resources with Resource Manager automation or modify the settings of existing resources. (Disables the Application Insights SDK.)Īpp Service application settings with Azure Resource ManagerĪpplication settings for Azure App Service can be managed and configured with Azure Resource Manager templates. Loads the extension side by side with the SDK and uses it to send telemetry. Enables Interop (interoperation) with the Application Insights SDK. XDT_MicrosoftApplicationInsights_PreemptSdkįor ASP.NET Core apps only. In default mode, only essential features are enabled to ensure optimal performance. Main extension, which controls runtime monitoring. To enable telemetry collection with Application Insights, only the application settings must be set.Īpplication settings definitions App setting nameĪpplicationInsightsAgent_EXTENSION_VERSION Under Application settings, create a New application setting with the following information: If you want to disable client-side monitoring: ASP.NET Core collection options are Recommended or Disabled.Ĭlient-side monitoring is enabled by default for ASP.NET Core apps with Recommended collection, regardless of whether the app setting APPINSIGHTS_JAVASCRIPT_ENABLED is present. Your app service then restarts.Īfter you specify which resource to use, you can choose how you want Application Insights to collect data per platform for your application. Selecting Continue links your new Application Insights resource to your app service. When you select OK to create a new resource, you're prompted to Apply monitoring settings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |