Deploy OneAgent on Azure Virtual Machine Scale Set

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.

Prerequisites

Installation

Azure Resource Manager provides a consistent management layer to perform tasks through Azure PowerShell, Azure CLI, Azure portal, REST API, and client SDKs.

  1. Run the following command, replacing all values marked with <...> with your actual values.
az vmss extension set
  --publisher dynatrace.ruxit
  -n "<Extension-Type>"
  -g "<Resource-Group>"
  --vmss-name "<VMSS-Name>"
  --settings "{\"tenantId\":\"<Environment-ID>\",\"token\":\"<API-Token>\", \"server\":\"<Server-Url>\", \"enableLogAnalytics\":\"yes\", \"hostGroup\":\"<Host-Group>\"}"

Note: When using the Azure CLI within PowerShell, the settings have to be formatted as a here-string.

--settings @'"{\"tenantId\":\"<Environment-ID>\",\"token\":\"<API-Token>\"}"'@
Parameter Required Description
Resource-Group yes Name of the resource group the Virtual Machine is deployed to
VMSS-Name yes Name of the VMSS the extension should be installed to.
Extension-Type yes For Windows-based Virtual Machines use oneAgentWindows. For Linux-based ones use oneAgentLinux.
tenantId yes Set environment ID as described in the Prerequisites
token yes Set API token as described in the Prerequisites
server No Optional Provide this property to configure an alternative communication endpoint. See Additional configuration parameters for more information.
enableLogAnalytics No If not set, Log Analytics isn't enabled. Set value to yes to enable Log Analytics
hostGroup No Optional Provide this property to set the hostgroup this VM belongs to. See Host Groups for more information.
  1. Update the VMSS virtual machines.
az vmss update-instances --instance-ids '*' --resource-group $CLUSTER_RESOURCE_GROUP --name $SCALE_SET_NAME

OneAgent starts monitoring your virtual machine immediately after installation.
You can see the deployment status in your Dynatrace environment.

OneAgent deployment status

VM-extension availability

The Dynatrace VM extension is available for Windows and Linux in all public Azure regions.