@@ -88,7 +88,7 @@ resource agent 'Microsoft.Compute/virtualMachines/extensions@2021-11-01' = {
88
88
89
89
``` json
90
90
{
91
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
91
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
92
92
"contentVersion" : " 1.0.0.0" ,
93
93
"parameters" : {
94
94
"vmName" : {
@@ -164,7 +164,7 @@ resource agent 'Microsoft.Compute/virtualMachines/extensions@2021-11-01' = {
164
164
165
165
``` json
166
166
{
167
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
167
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
168
168
"contentVersion" : " 1.0.0.0" ,
169
169
"parameters" : {
170
170
"vmName" : {
@@ -185,7 +185,7 @@ The following sample installs the Azure Monitor agent on a Windows Azure Arc-ena
185
185
186
186
``` json
187
187
{
188
- "$schema" : " http ://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate .json" ,
188
+ "$schema" : " https ://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters .json# " ,
189
189
"contentVersion" : " 1.0.0.0" ,
190
190
"parameters" : {
191
191
"vmName" : {
@@ -215,7 +215,7 @@ The following sample installs the Azure Monitor agent on a Windows Azure Arc-ena
215
215
216
216
``` json
217
217
{
218
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
218
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
219
219
"contentVersion" : " 1.0.0.0" ,
220
220
"parameters" : {
221
221
"vmName" : {
@@ -285,7 +285,7 @@ resource agent 'Microsoft.HybridCompute/machines/extensions@2021-12-10-preview'=
285
285
286
286
``` json
287
287
{
288
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
288
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
289
289
"contentVersion" : " 1.0.0.0" ,
290
290
"parameters" : {
291
291
"vmName" : {
@@ -420,7 +420,7 @@ resource logAnalyticsAgent 'Microsoft.Compute/virtualMachines/extensions@2021-11
420
420
421
421
``` json
422
422
{
423
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
423
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
424
424
"contentVersion" : " 1.0.0.0" ,
425
425
"parameters" : {
426
426
"vmName" : {
@@ -555,7 +555,7 @@ resource logAnalyticsAgent 'Microsoft.Compute/virtualMachines/extensions@2021-11
555
555
556
556
``` json
557
557
{
558
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
558
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
559
559
"contentVersion" : " 1.0.0.0" ,
560
560
"parameters" : {
561
561
"vmName" : {
@@ -602,7 +602,7 @@ param storageAccountId string
602
602
@description('Resource ID of the workspace.')
603
603
param workspaceResourceId string
604
604
605
- resource vm 'Microsoft.Compute/virtualMachines@2018-10 -01' = {
605
+ resource vm 'Microsoft.Compute/virtualMachines@2021-11 -01' = {
606
606
name: vmName
607
607
location: location
608
608
}
@@ -664,7 +664,7 @@ resource vmDiagnosticsSettings 'Microsoft.Compute/virtualMachines/extensions@202
664
664
}
665
665
protectedSettings: {
666
666
storageAccountName: storageAccountName
667
- storageAccountKey: listkeys(storageAccountId, '2015-05 -01-preview ').key1
667
+ storageAccountKey: listkeys(storageAccountId, '2021-08 -01').key1
668
668
storageAccountEndPoint: 'https://${environment().suffixes.storage}'
669
669
}
670
670
}
@@ -728,7 +728,7 @@ resource managedIdentity 'Microsoft.Compute/virtualMachines/extensions@2021-11-0
728
728
"resources" : [
729
729
{
730
730
"type" : " Microsoft.Compute/virtualMachines" ,
731
- "apiVersion" : " 2018-10 -01" ,
731
+ "apiVersion" : " 2021-11 -01" ,
732
732
"name" : " [parameters('vmName')]" ,
733
733
"location" : " [parameters('location')]"
734
734
},
@@ -790,7 +790,7 @@ resource managedIdentity 'Microsoft.Compute/virtualMachines/extensions@2021-11-0
790
790
},
791
791
"protectedSettings" : {
792
792
"storageAccountName" : " [parameters('storageAccountName')]" ,
793
- "storageAccountKey" : " [listkeys(parameters('storageAccountId'), '2015-05 -01-preview ').key1]" ,
793
+ "storageAccountKey" : " [listkeys(parameters('storageAccountId'), '2021-08 -01').key1]" ,
794
794
"storageAccountEndPoint" : " [format('https://{0}', environment().suffixes.storage)]"
795
795
}
796
796
},
@@ -826,7 +826,7 @@ resource managedIdentity 'Microsoft.Compute/virtualMachines/extensions@2021-11-0
826
826
827
827
``` json
828
828
{
829
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
829
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
830
830
"contentVersion" : " 1.0.0.0" ,
831
831
"parameters" : {
832
832
"vmName" : {
@@ -1199,7 +1199,7 @@ resource vmDiagnosticsSettings 'Microsoft.Compute/virtualMachines/extensions@202
1199
1199
1200
1200
``` json
1201
1201
{
1202
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
1202
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
1203
1203
"contentVersion" : " 1.0.0.0" ,
1204
1204
"parameters" : {
1205
1205
"vmName" : {
0 commit comments