Skip to content

Commit 282b54c

Browse files
authored
Merge pull request #22142 from grabinski/patch-1
Update names and API versions for VM extension resources
2 parents e65fdfd + efdc59f commit 282b54c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/azure-monitor/platform/collect-custom-metrics-guestos-resource-manager-vm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ Add this Managed Service Identity (MSI) extension to the template at the top of
7171
// Add this code directly below.
7272
{
7373
"type": "Microsoft.Compute/virtualMachines/extensions",
74-
"name": "WADExtensionSetup",
75-
"apiVersion": "2015-05-01-preview",
74+
"name": "[concat(variables('vmName'), '/', 'WADExtensionSetup')]",
75+
"apiVersion": "2017-12-01",
7676
"location": "[resourceGroup().location]",
7777
"dependsOn": [
7878
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]" ],
@@ -142,7 +142,7 @@ Add the following configuration to enable the Diagnostics extension on a Windows
142142
{
143143
"type": "extensions",
144144
"name": "Microsoft.Insights.VMDiagnosticsSettings",
145-
"apiVersion": "2015-05-01-preview",
145+
"apiVersion": "2017-12-01",
146146
"location": "[resourceGroup().location]",
147147
"dependsOn": [
148148
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"

0 commit comments

Comments
 (0)