DiskProperties Class
Disk resource properties.
Constructor
DiskProperties(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
time_created
|
The time when the disk was created. |
|
os_type
|
The Operating System type. Known values are: "Windows" and "Linux". |
|
hyper_v_generation
|
The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". |
|
purchase_plan
|
Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}. |
|
supported_capabilities
|
List of supported capabilities for the image from which the OS disk was created. |
|
creation_data
|
Disk source information. CreationData information cannot be changed after the disk has been created. Required. |
|
disk_size_gb
|
If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. |
|
disk_size_bytes
|
The size of the disk in bytes. This field is read only. |
|
unique_id
|
Unique Guid identifying the resource. |
|
encryption_settings_collection
|
Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. |
|
provisioning_state
|
The disk provisioning state. |
|
disk_iops_read_write
|
The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. |
|
disk_m_bps_read_write
|
The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. |
|
disk_iops_read_only
|
The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes. |
|
disk_m_bps_read_only
|
The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. |
|
disk_state
|
The state of the disk. Known values are: "Unattached", "Attached", "Reserved", "Frozen", "ActiveSAS", "ActiveSASFrozen", "ReadyToUpload", and "ActiveUpload". |
|
encryption
|
Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. |
|
max_shares
|
The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. |
|
share_info
|
Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs. |
|
network_access_policy
|
Policy for accessing the disk via network. Known values are: "AllowAll", "AllowPrivate", and "DenyAll". |
|
disk_access_id
|
ARM id of the DiskAccess resource for using private endpoints on disks. |
|
bursting_enabled_time
|
Latest time when bursting was last enabled on a disk. |
|
tier
|
Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks. |
|
bursting_enabled
|
Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks. |
|
property_updates_in_progress
|
Properties of the disk for which update is pending. |
|
supports_hibernation
|
Indicates the OS on a disk supports hibernation. |
|
security_profile
|
Contains the security related information for the resource. |
|
completion_percent
|
Percentage complete for the background copy when a resource is created via the CopyStart operation. |
|
public_network_access
|
Policy for controlling export on the disk. Known values are: "Enabled" and "Disabled". |
|
data_access_auth_mode
|
Additional authentication requirements when exporting or uploading to a disk or snapshot. Known values are: "AzureActiveDirectory" and "None". |
|
optimized_for_frequent_attach
|
Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine. |
|
last_ownership_update_time
|
The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started. |
|
availability_policy
|
Determines how platform treats disk failures. |
Attributes
availability_policy
Determines how platform treats disk failures.
availability_policy: _models.AvailabilityPolicy | None
bursting_enabled
Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
bursting_enabled: bool | None
bursting_enabled_time
Latest time when bursting was last enabled on a disk.
bursting_enabled_time: datetime | None
completion_percent
Percentage complete for the background copy when a resource is created via the CopyStart operation.
completion_percent: float | None
creation_data
Disk source information. CreationData information cannot be changed after the disk has been created. Required.
creation_data: _models.CreationData
data_access_auth_mode
Additional authentication requirements when exporting or uploading to a disk or snapshot. Known values are: "AzureActiveDirectory" and "None".
data_access_auth_mode: str | _models.DataAccessAuthMode | None
disk_access_id
ARM id of the DiskAccess resource for using private endpoints on disks.
disk_access_id: str | None
disk_iops_read_only
The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
disk_iops_read_only: int | None
disk_iops_read_write
The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
disk_iops_read_write: int | None
disk_m_bps_read_only
The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
disk_m_bps_read_only: int | None
disk_m_bps_read_write
The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
disk_m_bps_read_write: int | None
disk_size_bytes
The size of the disk in bytes. This field is read only.
disk_size_bytes: int | None
disk_size_gb
If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
disk_size_gb: int | None
disk_state
"Unattached", "Attached", "Reserved", "Frozen", "ActiveSAS", "ActiveSASFrozen", "ReadyToUpload", and "ActiveUpload".
disk_state: str | _models.DiskState | None
encryption
Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
encryption: _models.Encryption | None
encryption_settings_collection
Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
encryption_settings_collection: _models.EncryptionSettingsCollection | None
hyper_v_generation
The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2".
hyper_v_generation: str | _models.HyperVGeneration | None
last_ownership_update_time
The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started.
last_ownership_update_time: datetime | None
max_shares
The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
max_shares: int | None
network_access_policy
"AllowAll", "AllowPrivate", and "DenyAll".
network_access_policy: str | _models.NetworkAccessPolicy | None
optimized_for_frequent_attach
Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.
optimized_for_frequent_attach: bool | None
os_type
"Windows" and "Linux".
os_type: str | _models.OperatingSystemTypes | None
property_updates_in_progress
Properties of the disk for which update is pending.
property_updates_in_progress: _models.PropertyUpdatesInProgress | None
provisioning_state
The disk provisioning state.
provisioning_state: str | None
public_network_access
"Enabled" and "Disabled".
public_network_access: str | _models.PublicNetworkAccess | None
purchase_plan
Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}.
purchase_plan: _models.DiskPurchasePlan | None
security_profile
Contains the security related information for the resource.
security_profile: _models.DiskSecurityProfile | None
share_info
Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.
share_info: list['_models.ShareInfoElement'] | None
supported_capabilities
List of supported capabilities for the image from which the OS disk was created.
supported_capabilities: _models.SupportedCapabilities | None
supports_hibernation
Indicates the OS on a disk supports hibernation.
supports_hibernation: bool | None
tier
Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
tier: str | None
time_created
The time when the disk was created.
time_created: datetime | None
unique_id
Unique Guid identifying the resource.
unique_id: str | None