Blog Post

Apps on Azure Blog
2 MIN READ

Public Preview: App Insights integration for Python apps on App Service

YutangLin's avatar
YutangLin
Icon for Microsoft rankMicrosoft
May 01, 2024

The Azure Monitor and App Service teams are happy to share that Application Insights integration with App Services for Python apps is now available for Public Preview. You can now easily monitor your Python apps on App Service without changing your code by leveraging auto-instrumentation that is integrated into the App Services platform.

 

This integration supports App Service deploy as code for Python versions 3.11 and lower. Deploy as container scenarios are not currently supported, but we plan to introduce this capability at a future date. We also plan to support Python 3.12 in the near future.

 

With this feature enabled, the App Service platform will instrument popular Python libraries in your code and automatically channel correlated application-level logs, metrics, and distributed tracing to your Application Insights resource. This will allow you to understand how your Python application is performing and more easily determine the cause of any incidents.

 

You can enable the feature at resource creation or from the App Insights blade after your App Service resource is created. Please review our documentation to learn more.

 

Turn On App Insights during App Service Resource Creation

 

When you create a new Python web application (version 3.11 and lower) using the "Deploy as code" option, you can select "Yes" on the "Enable Application Insights" in the "Monitoring" tab. If you select "Yes", then your non-containerized Python application will pipe data to an Application Insights resource allowing you to automatically monitor your workloads.

 

 

 

Turn On App Insights after App Service Resource Creation

 

Open your App Service application in the portal and go to the App Insights menu item.

  1. Select "Enable" in the toggle under "Application Insights (Preview)"
  2. Select a location for your Application Insights resource (It’s suggested to create the resource in the same region as the Web App.)

 

 

Updated Apr 30, 2024
Version 1.0
  • Jesslyn2938's avatar
    Jesslyn2938
    Copper Contributor

    i looked over i see there's complications in so many places ill look into more

    I also saw there was no code 

    and lastly didn't see more of the application