Skip to content

Commit c338f79

Browse files
committed
update the parameter file schema version
1 parent 3eb5e0e commit c338f79

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

articles/azure-monitor/agents/resource-manager-agent.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ resource agent 'Microsoft.Compute/virtualMachines/extensions@2021-11-01' = {
8888

8989
```json
9090
{
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#",
9292
"contentVersion": "1.0.0.0",
9393
"parameters": {
9494
"vmName": {
@@ -164,7 +164,7 @@ resource agent 'Microsoft.Compute/virtualMachines/extensions@2021-11-01' = {
164164

165165
```json
166166
{
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#",
168168
"contentVersion": "1.0.0.0",
169169
"parameters": {
170170
"vmName": {
@@ -185,7 +185,7 @@ The following sample installs the Azure Monitor agent on a Windows Azure Arc-ena
185185

186186
```json
187187
{
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#",
189189
"contentVersion": "1.0.0.0",
190190
"parameters": {
191191
"vmName": {
@@ -215,7 +215,7 @@ The following sample installs the Azure Monitor agent on a Windows Azure Arc-ena
215215

216216
```json
217217
{
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#",
219219
"contentVersion": "1.0.0.0",
220220
"parameters": {
221221
"vmName": {
@@ -285,7 +285,7 @@ resource agent 'Microsoft.HybridCompute/machines/extensions@2021-12-10-preview'=
285285

286286
```json
287287
{
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#",
289289
"contentVersion": "1.0.0.0",
290290
"parameters": {
291291
"vmName": {
@@ -420,7 +420,7 @@ resource logAnalyticsAgent 'Microsoft.Compute/virtualMachines/extensions@2021-11
420420

421421
```json
422422
{
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#",
424424
"contentVersion": "1.0.0.0",
425425
"parameters": {
426426
"vmName": {
@@ -555,7 +555,7 @@ resource logAnalyticsAgent 'Microsoft.Compute/virtualMachines/extensions@2021-11
555555

556556
```json
557557
{
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#",
559559
"contentVersion": "1.0.0.0",
560560
"parameters": {
561561
"vmName": {
@@ -602,7 +602,7 @@ param storageAccountId string
602602
@description('Resource ID of the workspace.')
603603
param workspaceResourceId string
604604
605-
resource vm 'Microsoft.Compute/virtualMachines@2018-10-01' = {
605+
resource vm 'Microsoft.Compute/virtualMachines@2021-11-01' = {
606606
name: vmName
607607
location: location
608608
}
@@ -664,7 +664,7 @@ resource vmDiagnosticsSettings 'Microsoft.Compute/virtualMachines/extensions@202
664664
}
665665
protectedSettings: {
666666
storageAccountName: storageAccountName
667-
storageAccountKey: listkeys(storageAccountId, '2015-05-01-preview').key1
667+
storageAccountKey: listkeys(storageAccountId, '2021-08-01').key1
668668
storageAccountEndPoint: 'https://${environment().suffixes.storage}'
669669
}
670670
}
@@ -728,7 +728,7 @@ resource managedIdentity 'Microsoft.Compute/virtualMachines/extensions@2021-11-0
728728
"resources": [
729729
{
730730
"type": "Microsoft.Compute/virtualMachines",
731-
"apiVersion": "2018-10-01",
731+
"apiVersion": "2021-11-01",
732732
"name": "[parameters('vmName')]",
733733
"location": "[parameters('location')]"
734734
},
@@ -790,7 +790,7 @@ resource managedIdentity 'Microsoft.Compute/virtualMachines/extensions@2021-11-0
790790
},
791791
"protectedSettings": {
792792
"storageAccountName": "[parameters('storageAccountName')]",
793-
"storageAccountKey": "[listkeys(parameters('storageAccountId'), '2015-05-01-preview').key1]",
793+
"storageAccountKey": "[listkeys(parameters('storageAccountId'), '2021-08-01').key1]",
794794
"storageAccountEndPoint": "[format('https://{0}', environment().suffixes.storage)]"
795795
}
796796
},
@@ -826,7 +826,7 @@ resource managedIdentity 'Microsoft.Compute/virtualMachines/extensions@2021-11-0
826826

827827
```json
828828
{
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#",
830830
"contentVersion": "1.0.0.0",
831831
"parameters": {
832832
"vmName": {
@@ -1199,7 +1199,7 @@ resource vmDiagnosticsSettings 'Microsoft.Compute/virtualMachines/extensions@202
11991199

12001200
```json
12011201
{
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#",
12031203
"contentVersion": "1.0.0.0",
12041204
"parameters": {
12051205
"vmName": {

0 commit comments

Comments
 (0)