What is the foundational platform on which all microsoft azure app service apps rely?
Show
Microsoft Azure App Service ExtensionOverviewMicrosoft Azure App Services is a group of serverless resources that enable you to build and host web apps, mobile back ends, event-driven functions, and RESTful APIs without managing infrastructure. It can host workloads of all sizes and offers auto-scaling and high availability options. Datadog provides monitoring capabilities for all Azure App Service resource types:
The Datadog extension for Azure App Service provides additional monitoring capabilities.
SetupRequirements
Note: Datadog’s automatic instrumentation relies on the .NET CLR Profiling API. This API allows only one subscriber (for example, Datadog’s .NET Tracer with Profiler enabled). To ensure maximum visibility, run only one APM solution within your application environment. Starting with v2.3.0, the .NET extension
no longer relies on semantic versioning. The extension uses the following scheme: For example:
Installation
Application loggingYou can send logs from your application in Azure App Service to Datadog in one of the following ways:
Both methods allow trace ID injection,
making it possible to connect logs and traces in Datadog. To enable trace ID injection with the extension, add the application setting Note: Since this occurs inside your application, any Azure Platform logs you submit with diagnostic settings do not include the trace ID. Custom metrics with DogStatsDThe Azure App Service extension includes an instance of DogStatsD (Datadog’s metrics aggregation service). This enables you to submit custom metrics, service checks, and events directly to Datadog from Azure Web Apps and Functions with the extension. Writing custom metrics and checks in Azure App Service is similar to the process for doing so with an application on a host running the Datadog Agent. To submit custom metrics to Datadog from Azure App Service using the extension:
Note: Unlike the standard DogStatsD config process, there is no need to set ports or a server name when initializing the DogStatsD configuration. There are ambient environment variables in Azure App Service that determine how the metrics are sent (requires v6.0.0+ of the DogStatsD client). To send metrics use this code:
Note: To send only custom metrics (while disabling tracing) set the following variables in your application’s config:
Requirements
Installation
Application logging from Azure Web AppsSending logs from your application in Azure App Service to Datadog requires streaming logs to Datadog directly from your app. Submitting logs with this method allows for trace ID injection, which makes it possible to connect logs and traces in Datadog. Note: Trace ID injection occurs inside your application. Azure Resource logs are generated by Azure in the management plane, and therefore do not include the trace ID. See instructions for Agentless logging with Java to configure application logging for Java in Azure App Service. Custom metrics with DogStatsDThe Azure App Service extension includes an instance of DogStatsD (Datadog’s metrics aggregation service). This enables you to submit custom metrics, service checks, and events directly to Datadog from Azure Web Apps with the extension. Writing custom metrics and checks in this environment is similar to the process for doing so with an application on a standard host running the Datadog Agent. To submit custom metrics to Datadog from Azure App Service using the extension:
Note: Unlike the standard DogStatsD config process, there is no need to set ports or a server name when initializing the DogStatsD configuration. There are ambient environment variables in Azure App Service that determine how the metrics are sent (requires v6.0.0+ of the DogStatsD client). To send metrics use this code:
Learn more about custom metrics. Programmatic managementDatadog provides scripts to update or install the Azure App Service Extension using Powershell. Scripted extension management enables you to update extensions in bulk by resource group and designate the installation of specific versions of the site extension. You can also use scripts to programmatically add the extension in CI/CD pipelines, as well as discover and update extensions that are already installed. Prerequisites
Installing the extension for the first timeThe install script adds the latest version of the extension to an Azure Web App or Azure Function App. This occurs on a per-app basis, rather than at a resource group level.
Note: The following arguments are required for the above command:
Also, set Updating the extension for a resource groupThe update script applies to an entire resource group. This script updates every Web App or Function App that has the extension installed. App Service apps that do not have the Datadog extension installed are not affected.
Install a specific version of the extensionThe Azure App Service UI does not support the ability to install a specific version of an extension. You may do this with the install or update script. Install specific version on a single resourceTo install a specific version on a single instance, follow the instructions for installing the extension for the first time and add the
Replace Install specific version on an entire resource groupTo install a specific version for a resource group, follow the instructions for updating the extension for a resource group and add the
Replace ARM templateMany organizations use Azure Resource Management (ARM) templates to implement the practice of infrastructure-as-code. To build the App Service Extension into these templates, incorporate Datadog’s App Service Extension ARM template into your deployments to add the extension and configure it alongside your App Service resources. Support for Java Web Apps is in beta for extension v2.4+. Programmatic management is not available for Java Web Apps. Interested in support for other App Service resource types or runtimes? Sign up to be notified when a beta becomes available. TroubleshootingIf your apps are identified as being misconfigured in the Serverless View and/or you are missing corresponding metrics for your tracesIt is likely that you do not have the Azure integration configured to monitor your application. Proper configuration improves your ability to correlate metrics, traces, and logs in the Datadog platform. Without the Azure integration configured, you are missing critical context for your traces. To fix this:
If APM traces are not appearing in Datadog
Note: To expedite the process of investigating application errors with the support team, set Still need help? Contact Datadog support. Further ReadingAdditional helpful documentation, links, and articles: Get Started with DatadogWhat is the foundational platform on which all Microsoft Azure App Service apps Really?Azure App Service is a fully managed platform as a service (PaaS) offering for developers. Here are some key features of App Service: Multiple languages and frameworks - App Service has first-class support for ASP.NET, ASP.NET Core, Java, Ruby, Node. js, PHP, or Python.
What is Azure App Service supports which platforms?Azure app services are Platform as a Service (Paas) model in the Azure cloud platform that enables you to focus on your business logic while Azure takes care of the infrastructure to run and scale your apps. It is a fully managed to compute platform that is optimized for hosting websites and web applications.
What method does Microsoft Azure App Service use to obtain credentials?It uses the standard OAuth 2.0 client credentials grant. In the Azure portal, select Active Directory > App registrations > New registration.
Why is Azure App Service considered platform as a service?Azure App Service is considered an excellent Platform as a Service (PaaS), offering an application platform for developers to build Web, mobile and API applications. Its offerings range from simple marketing and digital presence applications to scalable e-commerce solutions and hyper-scale, customizable applications.
|