Skip to content

Commit 9f2f7fa

Browse files
committed
Update agent-dependency-linux.md
1 parent 8e47c37 commit 9f2f7fa

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

articles/virtual-machines/extensions/agent-dependency-linux.md

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,32 @@ The following JSON shows the schema for the Azure VM Dependency agent extension
2828
{
2929
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
3030
"contentVersion": "1.0.0.0",
31-
"parameters": {
32-
"vmName": {
33-
"type": "string",
34-
"metadata": {
35-
"description": "The name of existing Linux Azure VM."
31+
"parameters": {
32+
"vmName": {
33+
"type": "string",
34+
"metadata": {
35+
"description": "The name of existing Linux Azure VM."
3636
}
3737
}
3838
},
3939
"variables": {
40-
"vmExtensionsApiVersion": "2017-03-30"
40+
"vmExtensionsApiVersion": "2017-03-30"
4141
},
4242
"resources": [
4343
{
4444
"type": "Microsoft.Compute/virtualMachines/extensions",
4545
"name": "[concat(parameters('vmName'),'/DAExtension')]",
4646
"apiVersion": "[variables('vmExtensionsApiVersion')]",
4747
"location": "[resourceGroup().location]",
48-
"dependsOn": [
49-
],
48+
"dependsOn": [],
5049
"properties": {
5150
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
5251
"type": "DependencyAgentLinux",
5352
"typeHandlerVersion": "9.5",
5453
"autoUpgradeMinorVersion": true,
55-
"enableAMA": true
54+
"settings": {
55+
"enableAMA": "true"
56+
}
5657
}
5758
}
5859
],
@@ -89,11 +90,13 @@ The following example assumes the Dependency agent extension is nested inside th
8990
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
9091
],
9192
"properties": {
92-
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
93-
"type": "DependencyAgentLinux",
94-
"typeHandlerVersion": "9.5",
95-
"autoUpgradeMinorVersion": true,
96-
"enableAMA": true
93+
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
94+
"type": "DependencyAgentLinux",
95+
"typeHandlerVersion": "9.5",
96+
"autoUpgradeMinorVersion": true,
97+
"settings": {
98+
"enableAMA": "true"
99+
}
97100
}
98101
}
99102
```
@@ -107,14 +110,16 @@ When you place the extension JSON at the root of the template, the resource name
107110
"apiVersion": "[variables('apiVersion')]",
108111
"location": "[resourceGroup().location]",
109112
"dependsOn": [
110-
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
113+
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
111114
],
112115
"properties": {
113-
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
114-
"type": "DependencyAgentLinux",
115-
"typeHandlerVersion": "9.5",
116-
"autoUpgradeMinorVersion": true,
117-
"enableAMA": true
116+
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
117+
"type": "DependencyAgentLinux",
118+
"typeHandlerVersion": "9.5",
119+
"autoUpgradeMinorVersion": true,
120+
"settings": {
121+
"enableAMA": "true"
122+
}
118123
}
119124
}
120125
```

0 commit comments

Comments
 (0)