Skip to content

Commit 7d58f3d

Browse files
author
Ryan Willis
committed
Added Datadog extension info
1 parent 398bef0 commit 7d58f3d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

articles/azure-arc/servers/manage-vm-extensions-cli.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ The following example enables the Microsoft Antimalware extension on an Azure Ar
5353
az connectedmachine extension create --resource-group "resourceGroupName" --machine-name "myMachineName" --location "regionName" --publisher "Microsoft.Azure.Security" --type "IaaSAntimalware" --name "IaaSAntimalware" --settings '"{\"AntimalwareEnabled\": \"true\"}"'
5454
```
5555

56+
The following example enables the Datadog extension on an Azure Arc-enabled Windows server:
57+
58+
```azurecli
59+
az connectedmachine extension create --resource-group "resourceGroupName" --machine-name "myMachineName" --location "regionName" --publisher "Datadog.Agent" --type "DatadogWindowsAgent" --settings '{"site": "us3.datadoghq.com"}' --protected-settings '{"api_key": "YourDatadogAPIKey" }'
60+
```
61+
5662
## List extensions installed
5763

5864
To get a list of the VM extensions on your Azure Arc-enabled server, use [az connectedmachine extension list](/cli/azure/connectedmachine/extension#az-connectedmachine-extension-list) with the `--machine-name` and `--resource-group` parameters.

articles/azure-arc/servers/manage-vm-extensions-powershell.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,27 @@ The following example enables the Key Vault VM extension on an Azure Arc-enabled
8686
New-AzConnectedMachineExtension -ResourceGroupName $resourceGroup -Location $location -MachineName $machineName -Name "KeyVaultForWindows or KeyVaultforLinux" -Publisher "Microsoft.Azure.KeyVault" -ExtensionType "KeyVaultforWindows or KeyVaultforLinux" -Setting $settings
8787
```
8888

89+
### Datadog VM extension
90+
91+
The following example enables the Datadog VM extension on an Azure Arc-enabled server:
92+
93+
```azurepowershell
94+
$resourceGroup = "resourceGroupName"
95+
$machineName = "machineName"
96+
$location = "machineRegion"
97+
$osType = "Windows" # change to Linux if appropriate
98+
$settings = @{
99+
# change to your preferred Datadog site
100+
site = "us3.datadoghq.com"
101+
}
102+
$protectedSettings = @{
103+
# change to your Datadog API key
104+
api_key = "APIKEY"
105+
}
106+
107+
New-AzConnectedMachineExtension -ResourceGroupName $resourceGroup -Location $location -MachineName $machineName -Name "Datadog$($osType)Agent" -Publisher "Datadog.Agent" -ExtensionType "Datadog$($osType)Agent" -Setting $settings -ProtectedSetting $protectedSettings
108+
```
109+
89110
## List extensions installed
90111

91112
To get a list of the VM extensions on your Azure Arc-enabled server, use [Get-AzConnectedMachineExtension](/powershell/module/az.connectedmachine/get-azconnectedmachineextension) with the `-MachineName` and `-ResourceGroupName` parameters.

0 commit comments

Comments
 (0)