Skip to content

Commit 1bf8576

Browse files
committed
Updating examples related to AutomaticByPlatformSettings property in PatchSettings for VM and VMSS model
1 parent e4fc567 commit 1bf8576

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

specification/compute/resource-manager/Microsoft.Compute/stable/2022-03-01/ComputeRP/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@
6868
"provisionVMAgent": true,
6969
"patchSettings": {
7070
"patchMode": "AutomaticByPlatform",
71-
"assessmentMode": "AutomaticByPlatform"
71+
"assessmentMode": "AutomaticByPlatform",
72+
"automaticByPlatformSettings": {
73+
"rebootSetting": "Never"
74+
}
7275
}
7376
}
7477
},
@@ -123,7 +126,10 @@
123126
"provisionVMAgent": true,
124127
"patchSettings": {
125128
"patchMode": "AutomaticByPlatform",
126-
"assessmentMode": "AutomaticByPlatform"
129+
"assessmentMode": "AutomaticByPlatform",
130+
"automaticByPlatformSettings": {
131+
"rebootSetting": "Never"
132+
}
127133
}
128134
}
129135
},

specification/compute/resource-manager/Microsoft.Compute/stable/2022-03-01/ComputeRP/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@
7070
"enableAutomaticUpdates": true,
7171
"patchSettings": {
7272
"patchMode": "AutomaticByPlatform",
73-
"assessmentMode": "AutomaticByPlatform"
73+
"assessmentMode": "AutomaticByPlatform",
74+
"automaticByPlatformSettings": {
75+
"rebootSetting": "Never"
76+
}
7477
}
7578
}
7679
},
@@ -126,7 +129,10 @@
126129
"enableAutomaticUpdates": true,
127130
"patchSettings": {
128131
"patchMode": "AutomaticByPlatform",
129-
"assessmentMode": "AutomaticByPlatform"
132+
"assessmentMode": "AutomaticByPlatform",
133+
"automaticByPlatformSettings": {
134+
"rebootSetting": "Never"
135+
}
130136
}
131137
}
132138
},

specification/compute/resource-manager/Microsoft.Compute/stable/2022-03-01/ComputeRP/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Update_MaximumSet_Gen.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,12 @@
370370
}
371371
],
372372
"patchSettings": {
373-
"patchMode": "AutomaticByOS",
373+
"patchMode": "AutomaticByPlatform",
374374
"enableHotpatching": true,
375-
"assessmentMode": "ImageDefault"
375+
"assessmentMode": "ImageDefault",
376+
"automaticByPlatformSettings": {
377+
"rebootSetting": "Never"
378+
}
376379
},
377380
"winRM": {
378381
"listeners": [

0 commit comments

Comments
 (0)