Skip to content

Commit a3f6a5c

Browse files
committed
updates
1 parent 03b0482 commit a3f6a5c

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ The following JSON shows the schema for the Azure VM Dependency agent extension
7070
| publisher | Microsoft.Azure.Monitoring.DependencyAgent |
7171
| type | DependencyAgentLinux |
7272
| typeHandlerVersion | 9.5 |
73+
| settings | "enableAMA": "true" |
74+
75+
> [!IMPORTANT]
76+
> Be sure to add `enableAMA` to your template if you're using Azure Monitor Agent; otherwise, Dependency agent attempts to send data to the legacy Log Analytics agent.
7377
7478
## Template deployment
7579

@@ -87,7 +91,7 @@ The following example assumes the Dependency agent extension is nested inside th
8791
"apiVersion": "[variables('apiVersion')]",
8892
"location": "[resourceGroup().location]",
8993
"dependsOn": [
90-
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
94+
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
9195
],
9296
"properties": {
9397
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",

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

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ The following JSON shows the schema for the Azure VM Dependency agent extension
4545
"location": "[resourceGroup().location]",
4646
"dependsOn": [],
4747
"properties": {
48-
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
49-
"type": "DependencyAgentWindows",
50-
"typeHandlerVersion": "9.10",
51-
"autoUpgradeMinorVersion": true,
52-
"settings": {
53-
"enableAMA": "true"
48+
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
49+
"type": "DependencyAgentWindows",
50+
"typeHandlerVersion": "9.10",
51+
"autoUpgradeMinorVersion": true,
52+
"settings": {
53+
"enableAMA": "true"
5454
}
5555
}
5656
}
@@ -68,7 +68,12 @@ The following JSON shows the schema for the Azure VM Dependency agent extension
6868
| publisher | Microsoft.Azure.Monitoring.DependencyAgent |
6969
| type | DependencyAgentWindows |
7070
| typeHandlerVersion | 9.10 |
71+
| autoUpgradeMinorVersion | true |
72+
| settings | "enableAMA": "true" |
7173

74+
75+
> [!IMPORTANT]
76+
> Be sure to add `enableAMA` to your template if you're using Azure Monitor Agent; otherwise, Dependency agent attempts to send data to the legacy Log Analytics agent.
7277
## Template deployment
7378

7479
You can deploy the Azure VM extensions with Azure Resource Manager templates. You can use the JSON schema detailed in the previous section in an Azure Resource Manager template to run the Azure VM Dependency agent extension during an Azure Resource Manager template deployment.
@@ -111,12 +116,12 @@ When you place the extension JSON at the root of the template, the resource name
111116
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
112117
],
113118
"properties": {
114-
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
115-
"type": "DependencyAgentWindows",
116-
"typeHandlerVersion": "9.10",
117-
"autoUpgradeMinorVersion": true,
118-
"settings": {
119-
"enableAMA": "true"
119+
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
120+
"type": "DependencyAgentWindows",
121+
"typeHandlerVersion": "9.10",
122+
"autoUpgradeMinorVersion": true,
123+
"settings": {
124+
"enableAMA": "true"
120125
}
121126
}
122127
}

0 commit comments

Comments
 (0)