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. |