Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit 491e00d

Browse files
martinezdylanDylan MartinezmsyycAlancerekazrael2119
authored
Update securityPostureReference in VMScaleSet API (Azure#28891)
* update securityPostureRef properties in VMScaleSet spec * add securityPostureReference to UpdateVMProfile definition and fix min version * add prettier changes * remove unsupported 'major.*' from spec * add optional fields in security posture example * add required fields * correct minimum api version * add prettier fixes * remove extensionsSettings property * create new Update model for security posture reference & update * fix validation issue * Create sdk-suppressions.yaml * add azure-sdk-for-go suppression * Update sdk-suppressions.yaml --------- Co-authored-by: Dylan Martinez <[email protected]> Co-authored-by: Yuchao Yan <[email protected]> Co-authored-by: Alancere <[email protected]> Co-authored-by: kazrael2119 <[email protected]>
1 parent d9f06f3 commit 491e00d

File tree

3 files changed

+66
-8
lines changed

3 files changed

+66
-8
lines changed

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
"overprovision": true,
1616
"virtualMachineProfile": {
1717
"securityPostureReference": {
18-
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"
18+
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest",
19+
"excludeExtensions": [
20+
"{securityPostureVMExtensionName}"
21+
],
22+
"isOverridable": true
1923
},
2024
"storageProfile": {
2125
"imageReference": {
@@ -81,7 +85,11 @@
8185
"uniqueId": "d12ccb3d-ab15-4794-9836-c4196392e9f2",
8286
"virtualMachineProfile": {
8387
"securityPostureReference": {
84-
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"
88+
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest",
89+
"excludeExtensions": [
90+
"{securityPostureVMExtensionName}"
91+
],
92+
"isOverridable": true
8593
},
8694
"storageProfile": {
8795
"imageReference": {
@@ -159,7 +167,11 @@
159167
"uniqueId": "d12ccb3d-ab15-4794-9836-c4196392e9f2",
160168
"virtualMachineProfile": {
161169
"securityPostureReference": {
162-
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"
170+
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest",
171+
"excludeExtensions": [
172+
"{securityPostureVMExtensionName}"
173+
],
174+
"isOverridable": true
163175
},
164176
"storageProfile": {
165177
"imageReference": {

specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-03-01/virtualMachineScaleSet.json

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5181,7 +5181,7 @@
51815181
},
51825182
"securityPostureReference": {
51835183
"$ref": "#/definitions/SecurityPostureReference",
5184-
"description": "Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01"
5184+
"description": "Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01"
51855185
},
51865186
"timeCreated": {
51875187
"readOnly": true,
@@ -5206,6 +5206,10 @@
52065206
"$ref": "#/definitions/VirtualMachineScaleSetUpdateNetworkProfile",
52075207
"description": "The virtual machine scale set network profile."
52085208
},
5209+
"securityPostureReference": {
5210+
"$ref": "#/definitions/SecurityPostureReferenceUpdate",
5211+
"description": "The virtual machine scale set security posture reference."
5212+
},
52095213
"securityProfile": {
52105214
"$ref": "./computeRPCommon.json#/definitions/SecurityProfile",
52115215
"description": "The virtual machine scale set Security profile"
@@ -6336,17 +6340,45 @@
63366340
"properties": {
63376341
"id": {
63386342
"type": "string",
6339-
"description": "The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"
6343+
"description": "The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest"
63406344
},
63416345
"excludeExtensions": {
63426346
"type": "array",
63436347
"items": {
6344-
"$ref": "./virtualMachine.json#/definitions/VirtualMachineExtension"
6348+
"type": "string"
63456349
},
6346-
"description": "List of virtual machine extensions to exclude when applying the Security Posture."
6350+
"description": "The list of virtual machine extension names to exclude when applying the security posture."
6351+
},
6352+
"isOverridable": {
6353+
"type": "boolean",
6354+
"description": "Whether the security posture can be overridden by the user."
6355+
}
6356+
},
6357+
"description": "Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01",
6358+
"required": [
6359+
"id"
6360+
]
6361+
},
6362+
"SecurityPostureReferenceUpdate": {
6363+
"type": "object",
6364+
"properties": {
6365+
"id": {
6366+
"type": "string",
6367+
"description": "The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest"
6368+
},
6369+
"excludeExtensions": {
6370+
"type": "array",
6371+
"items": {
6372+
"type": "string"
6373+
},
6374+
"description": "The list of virtual machine extension names to exclude when applying the security posture."
6375+
},
6376+
"isOverridable": {
6377+
"type": "boolean",
6378+
"description": "Whether the security posture can be overridden by the user."
63476379
}
63486380
},
6349-
"description": "Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01"
6381+
"description": "Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01"
63506382
}
63516383
}
63526384
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
suppressions:
2+
azure-sdk-for-python:
3+
- package: azure-mgmt-compute
4+
breaking-changes:
5+
- Parameter id of model SecurityPostureReference is now required
6+
azure-sdk-for-go:
7+
- package: sdk/resourcemanager/compute/armcompute
8+
breaking-changes:
9+
- Type of `SecurityPostureReference.ExcludeExtensions` has been changed from `[]*VirtualMachineExtension` to `[]*string`
10+
azure-sdk-for-js:
11+
- package: "@azure/arm-compute"
12+
breaking-changes:
13+
- Parameter id of interface SecurityPostureReference is now required
14+
- Type of parameter excludeExtensions of interface SecurityPostureReference is changed from VirtualMachineExtension[] to string[]

0 commit comments

Comments
 (0)