Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update securityPostureReference in VMScaleSet API #28891

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
"overprovision": true,
"virtualMachineProfile": {
"securityPostureReference": {
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest",
"excludeExtensions": [
"{securityPostureVMExtensionName}"
],
"isOverridable": true
},
"storageProfile": {
"imageReference": {
Expand Down Expand Up @@ -81,7 +85,11 @@
"uniqueId": "d12ccb3d-ab15-4794-9836-c4196392e9f2",
"virtualMachineProfile": {
"securityPostureReference": {
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest",
"excludeExtensions": [
"{securityPostureVMExtensionName}"
],
"isOverridable": true
},
"storageProfile": {
"imageReference": {
Expand Down Expand Up @@ -159,7 +167,11 @@
"uniqueId": "d12ccb3d-ab15-4794-9836-c4196392e9f2",
"virtualMachineProfile": {
"securityPostureReference": {
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"
"id": "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest",
"excludeExtensions": [
"{securityPostureVMExtensionName}"
],
"isOverridable": true
},
"storageProfile": {
"imageReference": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5181,7 +5181,7 @@
},
"securityPostureReference": {
"$ref": "#/definitions/SecurityPostureReference",
"description": "Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01"
"description": "Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01"
},
"timeCreated": {
"readOnly": true,
Expand All @@ -5206,6 +5206,10 @@
"$ref": "#/definitions/VirtualMachineScaleSetUpdateNetworkProfile",
"description": "The virtual machine scale set network profile."
},
"securityPostureReference": {
"$ref": "#/definitions/SecurityPostureReferenceUpdate",
"description": "The virtual machine scale set security posture reference."
},
"securityProfile": {
"$ref": "./computeRPCommon.json#/definitions/SecurityProfile",
"description": "The virtual machine scale set Security profile"
Expand Down Expand Up @@ -6336,17 +6340,45 @@
"properties": {
"id": {
martinezdylan marked this conversation as resolved.
Show resolved Hide resolved
"type": "string",
"description": "The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"
"description": "The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest"
},
"excludeExtensions": {
"type": "array",
"items": {
"$ref": "./virtualMachine.json#/definitions/VirtualMachineExtension"
"type": "string"
},
"description": "List of virtual machine extensions to exclude when applying the Security Posture."
"description": "The list of virtual machine extension names to exclude when applying the security posture."
},
"isOverridable": {
martinezdylan marked this conversation as resolved.
Show resolved Hide resolved
"type": "boolean",
"description": "Whether the security posture can be overridden by the user."
}
},
"description": "Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01",
"required": [
"id"
]
},
"SecurityPostureReferenceUpdate": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest"
},
"excludeExtensions": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of virtual machine extension names to exclude when applying the security posture."
},
"isOverridable": {
"type": "boolean",
"description": "Whether the security posture can be overridden by the user."
}
},
"description": "Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01"
"description": "Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01"
}
}
}
14 changes: 14 additions & 0 deletions specification/compute/resource-manager/sdk-suppressions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
suppressions:
azure-sdk-for-python:
- package: azure-mgmt-compute
breaking-changes:
- Parameter id of model SecurityPostureReference is now required
azure-sdk-for-go:
- package: sdk/resourcemanager/compute/armcompute
breaking-changes:
- Type of `SecurityPostureReference.ExcludeExtensions` has been changed from `[]*VirtualMachineExtension` to `[]*string`
azure-sdk-for-js:
- package: "@azure/arm-compute"
breaking-changes:
- Parameter id of interface SecurityPostureReference is now required
- Type of parameter excludeExtensions of interface SecurityPostureReference is changed from VirtualMachineExtension[] to string[]