Dynatrace provides a VM extension to install OneAgent on Azure Virtual Machine Scale Set (VMSS). The extension doesn't include the OneAgent installer. Instead, it uses the Dynatrace REST API to download the latest version from the cluster, unless a default OneAgent version is configured. OneAgent updates are provided automatically.
Create a PaaS token.
Determine your environment ID.
Determine your server URL if required.
The server URL is required only if you use either of the following:
(If you use Dynatrace SaaS, the URL is automatically generated from the environment ID.)
https://{your-domain}/e/{your-environment-id}/api
https://<your-active-gate-IP-or-hostname>:9999/e/<your-environment-id>/api
(the ActiveGate port is configurable)If you're using Dynatrace Managed, or if your cluster traffic should be routed through an ActiveGate, you need to configure the API endpoint used by the extension for downloading OneAgent.
The Dynatrace VM extension is available for Windows and Linux in all public Azure regions.
Alternatively to the main installation methods, you can make the Dynatrace site extension part of your ARM templates.
Place the JSON configuration for a virtual machine extension in the VMSS resource, under extensions
in extensionProfile
.
Example:
{"type": "Microsoft.Compute/virtualMachineScaleSets","sku": {...},"name": "<VMSS-Name>","apiVersion": "2018-06-01","location": "centralus","properties": {"upgradePolicy": {...},"virtualMachineProfile": {"osProfile": {...},"storageProfile": {...},"networkProfile": {...},"extensionProfile": {"extensions": [{"name": "dynatrace","properties": {"publisher": "dynatrace.ruxit","type": "<Extension-Type>","typeHandlerVersion": "<Extension-Version>","autoUpgradeMinorVersion": true,"settings": {"tenantId": "<Environment-ID>","token": "<API-Token>","enableLogAnalytics": "yes"}}}]}}}}
Configure the JSON file.
{"name": "dynatrace","properties": {"publisher": "dynatrace.ruxit","type": "<Extension-Type>","typeHandlerVersion": "<Extension-Version>","autoUpgradeMinorVersion": true,"settings": {"tenantId": "<Environment-ID>","token": "<API-Token>","server": "<Server-Url>","enableLogAnalytics": "yes","hostGroup": "<Host-Group>"},}}
oneAgentWindows
. For Linux-based VMs, use oneAgentLinux
.yes
if you want to enable Log Monitoring.o fetch the list of extension versions, run
az vm extension image list --name oneAgentLinux --publisher dynatrace.ruxit
To check the deployment status, go to Deployment Status.
After installation is complete, restart your applications on the VM. Immediately after restart, OneAgent will begin monitoring them.
Restart the VMSS nodes via PowerShell, replacing all values marked with <...>
with your actual values:
Restart-AzureRmVmss -ResourceGroupName "<Resource-Group>" -VMScaleSetName "<VMSS-Name>"