# ASP.NET Core on Azure App Service

**URL:** <https://discuss.elastic.co/t/asp-net-core-on-azure-app-service/256889>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [November 27, 2020, 2:17pm UTC](https://discuss.elastic.co/t/asp-net-core-on-azure-app-service/256889 "2020-11-27T14:17:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rolfen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rolfen/32/86634_2.png) [@Rolfen](https://discuss.elastic.co/u/Rolfen)\
**Post date:** [November 27, 2020, 2:17pm UTC](https://discuss.elastic.co/t/asp-net-core-on-azure-app-service/256889/1 "2020-11-27T14:17:54Z")

</div>

APM Agent language and version: [ASP.Net](http://ASP.Net) Core NuGet package Elastic.Apm.NetCoreAll (1.7.0)

Original install method: NuGet package

Is there anything special in your setup?: I need to output to a Logstash server. Also, I'm hosting my application in Azure App Services.

Is it possible to monitor an [ASP.Net](http://ASP.Net) Core application hosted in Azure App Service? How? I couldn't find information in the docs of APM or an extension on the Extensions page of the App Service. Currently, changing the way the app is hosted is difficult due to other needs of my company.

I already configured the app as said in [Set up the ASP.NET Core agent](https://www.elastic.co/guide/en/apm/agent/dotnet/current/setup-asp-net-core.html)

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [November 28, 2020, 11:00am UTC](https://discuss.elastic.co/t/asp-net-core-on-azure-app-service/256889/2 "2020-11-28T11:00:12Z")

</div>

Hi @Rolfen,

> Is it possible to monitor an [ASP.Net](http://ASP.Net) Core application hosted in Azure App Service? How?

Yes, it's possible. The [setup doc](https://www.elastic.co/guide/en/apm/agent/dotnet/current/setup-asp-net-core.html) you linked shows you how to turn on the agent for an [ASP.NET](http://ASP.NET) Core application. It doesn't matter where the application runs, it can be an Azure App Service, on premise, AWS, GCP, the hosting model doesn't matter, that's why we don't have a doc per hosting. As long as the agent can send data to the APM Server, it should work.

If you tried it and it doesn't work, it's worth looking at the [troubleshooting section](https://www.elastic.co/guide/en/apm/agent/dotnet/current/troubleshooting.html). One thing that comes to my mind: make sure the url&port to the APM Server is open from the monitored application.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 19, 2020, 7:00am UTC](https://discuss.elastic.co/t/asp-net-core-on-azure-app-service/256889/3 "2020-12-19T07:00:39Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
