Create a token to download and setup OneAgent:
Determine your environment ID.
Determine your server URL if required.
The server URL is required only if you use an ActiveGate for a Dynatrace SaaS endpoint. The URL is automatically generated from the environment ID.
https://<your-active-gate-IP-or-hostname>:9999/e/<your-environment-id>/api (the ActiveGate port is configurable)Before you install the site extension, enable the Azure Functions OneAgent feature for the technology that you want to monitor:
azure function.There are two ways to install the Dynatrace OneAgent site extension: via Azure portal or using an ARM template. Follow the steps below for instructions.
If you use a Consumption Plan, stop the function app before you install the site extension. Restart the function app after you complete the installation.
After restart, OneAgent starts monitoring your application automatically.
To reduce download time and package size, select only the technologies you need. By default, all technologies are included.
Alternatively to the main installation method via Azure portal, you can make the Dynatrace site extension part of your ARM templates.
Example configuration:
{"apiVersion": "2016-08-01","name": "[parameters('resourceName')]","type": "Microsoft.Web/sites","properties": {"name": "[parameters('resourceName')]","siteConfig": {"alwaysOn": true,"appSettings": [{ "Name": "DT_TENANT", "Value": "<Environment-ID>" },{ "Name": "DT_API_TOKEN", "Value": "<PaaS-Token>" },{ "Name": "DT_API_URL", "Value": "<Server-Url>" },{ "Name": "DT_SSL_MODE", "Value": "default" }]},"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('resourceName'))]"},"dependsOn": ["[concat('Microsoft.Web/serverfarms/', parameters('resourceName'))]"],"location": "[parameters('location')]","resources": [{"apiVersion": "2016-08-01","name": "Dynatrace","type": "siteextensions","dependsOn": ["[resourceId('Microsoft.Web/sites', parameters('resourceName'))]"],"properties": { }}]}
| Parameter | Requirement | Description |
|---|---|---|
| Required | The environment ID as described in Prerequisites. |
| Required | The PaaS token as described in Prerequisites. |
| Optional | The server URL, if you want to configure an alternative communication endpoint as described in Prerequisites. |
| Optional | To automatically accept all self-signed TLS certificates, set the value to |
| Optional | The OneAgent technology to install. By default, all technologies are installed. |
| Optional | The OneAgent version to install. By default, the latest version is installed. |
If AlwaysOn isn't set to true, the installation of OneAgent is triggered on the start-up/first request to Kudu.
To check the deployment status, go to
Fleet Management for Latest Dynatrace or Deployment Status for Dynatrace Classic.
After installation is complete, go to Azure portal and restart the App Function application to recycle the application's worker process. Immediately after restart, OneAgent will begin monitoring your application.
To override the default configuration, you can use the following parameters.
| Parameter | Description |
|---|---|
| Semicolon-separated list of communication endpoints |
In the Azure portal, select the web function you want to monitor.
Select Settings > Configuration > Application Settings.
Select New application setting.
Enter the following key/value pair:
DT_CONNECTION_POINThttps://<YOUR_ACTIVEGATE_ADDRESS>:9999/communication, making sure to replace <YOUR_ACTIVEGATE_ADDRESS> with your own value.
Select OK to save the configuration.
Dynatrace doesn't provide OneAgent updates on Azure Functions automatically. To update OneAgent on Azure Functions:
If you're on a Consumption Plan, stop Azure Functions before the update and restart them after the update.
To update the site extension on Azure Functions, go to Extensions, select Browse for Dynatrace OneAgent, and, if an update is available, select Update.
An update to the site extension doesn't force an update to OneAgent.
Removing the extension also removes OneAgent.
If the application is running at the time of removal, the extension recognizes the running application, taking care to not remove any Dynatrace artifacts to prevent issues with the application. Instead, only the extension including the configuration is removed, so that, on the next restart of the application, OneAgent is no longer active.