# Azure App Services

**URL:** <https://community.dynatrace.com/t/azure-app-services/51529>\
**Category:** Cloud platforms\
**Tags:** installation, azure, services, oneagent, processes\
**Created:** [May 7, 2025, 6:58pm UTC](https://community.dynatrace.com/t/azure-app-services/51529 "2025-05-07T18:58:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GustavoBarros](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@GustavoBarros](https://community.dynatrace.com/u/GustavoBarros)\
**Post date:** [May 7, 2025, 6:58pm UTC](https://community.dynatrace.com/t/azure-app-services/51529/1 "2025-05-07T18:58:13Z")

</div>

Hey. good evening.

I wanna know if there’s any way to instrument an app service in python on the app services. We tried some automatically way but the everytime the app services restarts, the pipe and opentelemetry is erased and had to do all it over again the the SSH. There is some documentation about this?

[Automatically instrument your Python application with OpenTelemetry — Dynatrace Docs](https://docs.dynatrace.com/docs/ingest-from/opentelemetry/walkthroughs/python/python-auto)

---

<div class="post-metadata">

**Author:** ![yanezza](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yanezza/32/5036_2.png) [@yanezza](https://community.dynatrace.com/u/yanezza)\
**Post date:** [May 21, 2025, 4:35pm UTC](https://community.dynatrace.com/t/azure-app-services/51529/2 "2025-05-21T16:35:06Z")

</div>

Hi,&nbsp;  
Probably in your case you need to make a opentelemetry persistent configuration inside your azure app, try to:

1. include opentelemetry libraries in your app’s&nbsp;requirements.txt
2. use a startup command like\>&nbsp;opentelemetry-instrument python&nbsp;\<your-app\>.py
3. Set otel env  
OTEL\_EXPORTER\_OTLP\_ENDPOINT=https://\<your-dynatrace-endpoint\>/api/v2/otlpOTEL\_EXPORTER\_OTLP\_HEADERS=Authorization=Api-Token \<your-token\>OTEL\_TRACES\_EXPORTER=otlp

I’m not an Azure Expert, but it should works
