Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sdk/compute/azure-mgmt-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 0.0.0 (2025-11-17)

change log generation was timeout!!! You need to write it manually!!!

Comment on lines +5 to +6
Copy link

Copilot AI Nov 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog entry appears to be a placeholder error message. For an SDK release, this should contain a proper description of the changes, including new features like FIPS 140-3 encryption support, instant access for restore points, and updated DataDisk properties.

Suggested change
change log generation was timeout!!! You need to write it manually!!!
### Features Added
- Added support for FIPS 140-3 encryption in DiskEncryptionSet and related models.
- Enabled instant access for restore points via new parameters in CreationData and RestorePoint models.
- Updated DataDisk properties to support advanced configuration options.
### Bugs Fixed
- Various minor bug fixes and performance improvements.
### Breaking Changes
- None.

Copilot uses AI. Check for mistakes.
## 37.0.1 (2025-10-09)

### Bugs Fixed
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/azure-mgmt-compute/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "3ed4c07ba75ceba9b01d5cf2e4bed0ea988d3c52",
"commit": "a49631915059dad95cfa78cf100c1201e9760b43",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.40.0",
"@autorest/python@6.42.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.40.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.42.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/compute/resource-manager/readme.md"
}
2 changes: 1 addition & 1 deletion sdk/compute/azure-mgmt-compute/apiview-properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@
"azure.mgmt.compute.models.PatchOperationStatus": null,
"azure.mgmt.compute.models.ProximityPlacementGroupType": null,
"azure.mgmt.compute.models.RestorePointEncryptionType": null,
"azure.mgmt.compute.models.SnapshotAccessState": null,
"azure.mgmt.compute.models.OperatingSystemType": null,
"azure.mgmt.compute.models.ConsistencyModeTypes": null,
"azure.mgmt.compute.models.DedicatedHostLicenseTypes": null,
Expand Down Expand Up @@ -593,7 +594,6 @@
"azure.mgmt.compute.models.AvailabilityPolicyDiskDelay": null,
"azure.mgmt.compute.models.SnapshotStorageAccountTypes": null,
"azure.mgmt.compute.models.CopyCompletionErrorReason": null,
"azure.mgmt.compute.models.SnapshotAccessState": null,
"azure.mgmt.compute.models.ExtendedLocationType": null,
"azure.mgmt.compute.models.ResourceSkuRestrictionsType": null,
"azure.mgmt.compute.models.ResourceSkuRestrictionsReasonCode": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs):

# If dependencies is empty, try with current data class
# It has to be a subclass of Enum anyway
enum_type = self.dependencies.get(data_type, data.__class__)
enum_type = self.dependencies.get(data_type, cast(type, data.__class__))
if issubclass(enum_type, Enum):
return Serializer.serialize_enum(data, enum_obj=enum_type)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "37.0.1"
VERSION = "0.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ async def get_next(next_link=None):

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
error = self._deserialize.failsafe_deserialize(
_models.ErrorResponse,
pipeline_response,
)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

return pipeline_response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,25 @@ class AdditionalCapabilities(_serialization.Model):
:vartype ultra_ssd_enabled: bool
:ivar hibernation_enabled: The flag that enables or disables hibernation capability on the VM.
:vartype hibernation_enabled: bool
:ivar enable_fips1403_encryption: The flag enables the usage of FIPS 140-3 compliant
cryptography on the protectedSettings of an extension. Learn more at:
https://aka.ms/linuxagentfipssupport.
:vartype enable_fips1403_encryption: bool
"""

_attribute_map = {
"ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"},
"hibernation_enabled": {"key": "hibernationEnabled", "type": "bool"},
"enable_fips1403_encryption": {"key": "enableFips1403Encryption", "type": "bool"},
}

def __init__(
self, *, ultra_ssd_enabled: Optional[bool] = None, hibernation_enabled: Optional[bool] = None, **kwargs: Any
self,
*,
ultra_ssd_enabled: Optional[bool] = None,
hibernation_enabled: Optional[bool] = None,
enable_fips1403_encryption: Optional[bool] = None,
**kwargs: Any
) -> None:
"""
:keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more
Expand All @@ -294,10 +304,15 @@ def __init__(
:keyword hibernation_enabled: The flag that enables or disables hibernation capability on the
VM.
:paramtype hibernation_enabled: bool
:keyword enable_fips1403_encryption: The flag enables the usage of FIPS 140-3 compliant
cryptography on the protectedSettings of an extension. Learn more at:
https://aka.ms/linuxagentfipssupport.
:paramtype enable_fips1403_encryption: bool
"""
super().__init__(**kwargs)
self.ultra_ssd_enabled = ultra_ssd_enabled
self.hibernation_enabled = hibernation_enabled
self.enable_fips1403_encryption = enable_fips1403_encryption


class AdditionalReplicaSet(_serialization.Model):
Expand Down Expand Up @@ -3768,8 +3783,6 @@ def __init__(
class DataDisk(_serialization.Model):
"""Describes a data disk.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to server.

:ivar lun: Specifies the logical unit number of the data disk. This value is used to identify
Expand Down Expand Up @@ -3814,12 +3827,10 @@ class DataDisk(_serialization.Model):
VirtualMachine/VirtualMachineScaleset.
:vartype to_be_detached: bool
:ivar disk_iops_read_write: Specifies the Read-Write IOPS for the managed disk when
StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be
updated only via updates to the VirtualMachine Scale Set.
StorageAccountType is UltraSSD_LRS.
:vartype disk_iops_read_write: int
:ivar disk_m_bps_read_write: Specifies the bandwidth in MB per second for the managed disk when
StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be
updated only via updates to the VirtualMachine Scale Set.
StorageAccountType is UltraSSD_LRS.
:vartype disk_m_bps_read_write: int
:ivar detach_option: Specifies the detach behavior to be used while detaching a disk or which
is already in the process of detachment from the virtual machine. Supported values:
Expand All @@ -3840,8 +3851,6 @@ class DataDisk(_serialization.Model):
_validation = {
"lun": {"required": True},
"create_option": {"required": True},
"disk_iops_read_write": {"readonly": True},
"disk_m_bps_read_write": {"readonly": True},
}

_attribute_map = {
Expand Down Expand Up @@ -3876,6 +3885,8 @@ def __init__(
managed_disk: Optional["_models.ManagedDiskParameters"] = None,
source_resource: Optional["_models.ApiEntityReference"] = None,
to_be_detached: Optional[bool] = None,
disk_iops_read_write: Optional[int] = None,
disk_m_bps_read_write: Optional[int] = None,
detach_option: Optional[Union[str, "_models.DiskDetachOptionTypes"]] = None,
delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None,
**kwargs: Any
Expand Down Expand Up @@ -3922,6 +3933,12 @@ def __init__(
:keyword to_be_detached: Specifies whether the data disk is in process of detachment from the
VirtualMachine/VirtualMachineScaleset.
:paramtype to_be_detached: bool
:keyword disk_iops_read_write: Specifies the Read-Write IOPS for the managed disk when
StorageAccountType is UltraSSD_LRS.
:paramtype disk_iops_read_write: int
:keyword disk_m_bps_read_write: Specifies the bandwidth in MB per second for the managed disk
when StorageAccountType is UltraSSD_LRS.
:paramtype disk_m_bps_read_write: int
:keyword detach_option: Specifies the detach behavior to be used while detaching a disk or
which is already in the process of detachment from the virtual machine. Supported values:
**ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a
Expand Down Expand Up @@ -3949,8 +3966,8 @@ def __init__(
self.managed_disk = managed_disk
self.source_resource = source_resource
self.to_be_detached = to_be_detached
self.disk_iops_read_write: Optional[int] = None
self.disk_m_bps_read_write: Optional[int] = None
self.disk_iops_read_write = disk_iops_read_write
self.disk_m_bps_read_write = disk_m_bps_read_write
self.detach_option = detach_option
self.delete_option = delete_option

Expand Down Expand Up @@ -6239,30 +6256,41 @@ class DiskRestorePointInstanceView(_serialization.Model):

:ivar id: Disk restore point Id.
:vartype id: str
:ivar snapshot_access_state: The state of snapshot which determines the access availability of
the snapshot. Known values are: "Unknown", "Pending", "Available", "InstantAccess", and
"AvailableWithInstantAccess".
:vartype snapshot_access_state: str or ~azure.mgmt.compute.models.SnapshotAccessState
:ivar replication_status: The disk restore point replication status information.
:vartype replication_status: ~azure.mgmt.compute.models.DiskRestorePointReplicationStatus
"""

_attribute_map = {
"id": {"key": "id", "type": "str"},
"snapshot_access_state": {"key": "snapshotAccessState", "type": "str"},
"replication_status": {"key": "replicationStatus", "type": "DiskRestorePointReplicationStatus"},
}

def __init__(
self,
*,
id: Optional[str] = None, # pylint: disable=redefined-builtin
snapshot_access_state: Optional[Union[str, "_models.SnapshotAccessState"]] = None,
replication_status: Optional["_models.DiskRestorePointReplicationStatus"] = None,
**kwargs: Any
) -> None:
"""
:keyword id: Disk restore point Id.
:paramtype id: str
:keyword snapshot_access_state: The state of snapshot which determines the access availability
of the snapshot. Known values are: "Unknown", "Pending", "Available", "InstantAccess", and
"AvailableWithInstantAccess".
:paramtype snapshot_access_state: str or ~azure.mgmt.compute.models.SnapshotAccessState
:keyword replication_status: The disk restore point replication status information.
:paramtype replication_status: ~azure.mgmt.compute.models.DiskRestorePointReplicationStatus
"""
super().__init__(**kwargs)
self.id = id
self.snapshot_access_state = snapshot_access_state
self.replication_status = replication_status


Expand Down Expand Up @@ -15558,6 +15586,10 @@ class RestorePoint(ProxyResource):
:vartype source_restore_point: ~azure.mgmt.compute.models.ApiEntityReference
:ivar instance_view: The restore point instance view.
:vartype instance_view: ~azure.mgmt.compute.models.RestorePointInstanceView
:ivar instant_access_duration_minutes: This property determines the time in minutes the
snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast
restore performance in this restore point.
:vartype instant_access_duration_minutes: int
"""

_validation = {
Expand All @@ -15581,6 +15613,7 @@ class RestorePoint(ProxyResource):
"time_created": {"key": "properties.timeCreated", "type": "iso-8601"},
"source_restore_point": {"key": "properties.sourceRestorePoint", "type": "ApiEntityReference"},
"instance_view": {"key": "properties.instanceView", "type": "RestorePointInstanceView"},
"instant_access_duration_minutes": {"key": "properties.instantAccessDurationMinutes", "type": "int"},
}

def __init__(
Expand All @@ -15591,6 +15624,7 @@ def __init__(
consistency_mode: Optional[Union[str, "_models.ConsistencyModeTypes"]] = None,
time_created: Optional[datetime.datetime] = None,
source_restore_point: Optional["_models.ApiEntityReference"] = None,
instant_access_duration_minutes: Optional[int] = None,
**kwargs: Any
) -> None:
"""
Expand All @@ -15610,6 +15644,10 @@ def __init__(
:keyword source_restore_point: Resource Id of the source restore point from which a copy needs
to be created.
:paramtype source_restore_point: ~azure.mgmt.compute.models.ApiEntityReference
:keyword instant_access_duration_minutes: This property determines the time in minutes the
snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast
restore performance in this restore point.
:paramtype instant_access_duration_minutes: int
"""
super().__init__(**kwargs)
self.exclude_disks = exclude_disks
Expand All @@ -15619,6 +15657,7 @@ def __init__(
self.time_created = time_created
self.source_restore_point = source_restore_point
self.instance_view: Optional["_models.RestorePointInstanceView"] = None
self.instant_access_duration_minutes = instant_access_duration_minutes


class RestorePointCollection(TrackedResource):
Expand Down Expand Up @@ -15653,6 +15692,11 @@ class RestorePointCollection(TrackedResource):
:ivar restore_points: A list containing all restore points created under this restore point
collection.
:vartype restore_points: list[~azure.mgmt.compute.models.RestorePoint]
:ivar instant_access: This property determines whether instant access snapshot is enabled for
restore points created under this restore point collection for Premium SSD v2 or Ultra disk.
Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for
restoring disk with fast restore performance.
:vartype instant_access: bool
"""

_validation = {
Expand All @@ -15677,6 +15721,7 @@ class RestorePointCollection(TrackedResource):
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"restore_point_collection_id": {"key": "properties.restorePointCollectionId", "type": "str"},
"restore_points": {"key": "properties.restorePoints", "type": "[RestorePoint]"},
"instant_access": {"key": "properties.instantAccess", "type": "bool"},
}

def __init__(
Expand All @@ -15685,6 +15730,7 @@ def __init__(
location: str,
tags: Optional[dict[str, str]] = None,
source: Optional["_models.RestorePointCollectionSourceProperties"] = None,
instant_access: Optional[bool] = None,
**kwargs: Any
) -> None:
"""
Expand All @@ -15695,12 +15741,18 @@ def __init__(
:keyword source: The properties of the source resource that this restore point collection is
created from.
:paramtype source: ~azure.mgmt.compute.models.RestorePointCollectionSourceProperties
:keyword instant_access: This property determines whether instant access snapshot is enabled
for restore points created under this restore point collection for Premium SSD v2 or Ultra
disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for
restoring disk with fast restore performance.
:paramtype instant_access: bool
"""
super().__init__(tags=tags, location=location, **kwargs)
self.source = source
self.provisioning_state: Optional[str] = None
self.restore_point_collection_id: Optional[str] = None
self.restore_points: Optional[list["_models.RestorePoint"]] = None
self.instant_access = instant_access


class RestorePointCollectionListResult(_serialization.Model):
Expand Down Expand Up @@ -15786,6 +15838,11 @@ class RestorePointCollectionUpdate(UpdateResource):
:ivar restore_points: A list containing all restore points created under this restore point
collection.
:vartype restore_points: list[~azure.mgmt.compute.models.RestorePoint]
:ivar instant_access: This property determines whether instant access snapshot is enabled for
restore points created under this restore point collection for Premium SSD v2 or Ultra disk.
Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for
restoring disk with fast restore performance.
:vartype instant_access: bool
"""

_validation = {
Expand All @@ -15800,13 +15857,15 @@ class RestorePointCollectionUpdate(UpdateResource):
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"restore_point_collection_id": {"key": "properties.restorePointCollectionId", "type": "str"},
"restore_points": {"key": "properties.restorePoints", "type": "[RestorePoint]"},
"instant_access": {"key": "properties.instantAccess", "type": "bool"},
}

def __init__(
self,
*,
tags: Optional[dict[str, str]] = None,
source: Optional["_models.RestorePointCollectionSourceProperties"] = None,
instant_access: Optional[bool] = None,
**kwargs: Any
) -> None:
"""
Expand All @@ -15815,12 +15874,18 @@ def __init__(
:keyword source: The properties of the source resource that this restore point collection is
created from.
:paramtype source: ~azure.mgmt.compute.models.RestorePointCollectionSourceProperties
:keyword instant_access: This property determines whether instant access snapshot is enabled
for restore points created under this restore point collection for Premium SSD v2 or Ultra
disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for
restoring disk with fast restore performance.
:paramtype instant_access: bool
"""
super().__init__(tags=tags, **kwargs)
self.source = source
self.provisioning_state: Optional[str] = None
self.restore_point_collection_id: Optional[str] = None
self.restore_points: Optional[list["_models.RestorePoint"]] = None
self.instant_access = instant_access


class RestorePointEncryption(_serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ def get_next(next_link=None):

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
error = self._deserialize.failsafe_deserialize(
_models.ErrorResponse,
pipeline_response,
)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

return pipeline_response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ def main():
parameters={
"location": "norwayeast",
"properties": {
"instantAccess": True,
"source": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"
}
},
},
"tags": {"myTag1": "tagValue1"},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ def main():
restore_point_collection_name="aaaaaaaaaaaaaaaaaaaa",
parameters={
"properties": {
"instantAccess": True,
"source": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"
}
},
},
"tags": {"key8536": "aaaaaaaaaaaaaaaaaaa"},
},
Expand Down
Loading
Loading