DiskUpdate Class

Disk update resource.

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

Inheritance
DiskUpdate

Constructor

DiskUpdate(*, tags: Optional[Dict[str, str]] = None, sku: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.DiskSku] = None, os_type: Optional[Union[str, azure.mgmt.compute.v2021_04_01.models._compute_management_client_enums.OperatingSystemTypes]] = None, disk_size_gb: Optional[int] = None, encryption_settings_collection: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.EncryptionSettingsCollection] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, disk_iops_read_only: Optional[int] = None, disk_m_bps_read_only: Optional[int] = None, max_shares: Optional[int] = None, encryption: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.Encryption] = None, network_access_policy: Optional[Union[str, azure.mgmt.compute.v2021_04_01.models._compute_management_client_enums.NetworkAccessPolicy]] = None, disk_access_id: Optional[str] = None, tier: Optional[str] = None, bursting_enabled: Optional[bool] = None, purchase_plan: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.PurchasePlanAutoGenerated] = None, supported_capabilities: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.SupportedCapabilities] = None, supports_hibernation: Optional[bool] = None, public_network_access: Optional[Union[str, azure.mgmt.compute.v2021_04_01.models._compute_management_client_enums.PublicNetworkAccess]] = None, **kwargs)

Parameters

tags
dict[str, str]
Required

A set of tags. Resource tags.

sku
DiskSku
Required

The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS.

os_type
str or OperatingSystemTypes
Required

the Operating System type. Possible values include: "Windows", "Linux".

disk_size_gb
int
Required

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.

encryption_settings_collection
EncryptionSettingsCollection
Required

Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.

disk_iops_read_write
<xref:long>
Required

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
<xref:long>
Required

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
<xref:long>
Required

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
<xref:long>
Required

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.

max_shares
int
Required

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.

encryption
Encryption
Required

Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.

network_access_policy
str or NetworkAccessPolicy
Required

Policy for accessing the disk via network. Possible values include: "AllowAll", "AllowPrivate", "DenyAll".

disk_access_id
str
Required

ARM id of the DiskAccess resource for using private endpoints on disks.

tier
str
Required

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
bool
Required

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.

purchase_plan
PurchasePlanAutoGenerated
Required

Purchase plan information to be added on the OS disk.

supported_capabilities
SupportedCapabilities
Required

List of supported capabilities (like accelerated networking) to be added on the OS disk.

supports_hibernation
bool
Required

Indicates the OS on a disk supports hibernation.

public_network_access
str or PublicNetworkAccess
Required

Policy for controlling export on the disk. Possible values include: "Enabled", "Disabled".

Variables

property_updates_in_progress
PropertyUpdatesInProgress

Properties of the disk for which update is pending.