共用方式為


DiskUpdate Constructors

Definition

Overloads

DiskUpdate()

Initializes a new instance of the DiskUpdate class.

DiskUpdate(Nullable<OperatingSystemTypes>, Nullable<Int32>, EncryptionSettingsCollection, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Int32>, Encryption, NetworkAccessPolicy, String, String, IDictionary<String,String>, DiskSku)

Initializes a new instance of the DiskUpdate class.

DiskUpdate()

Initializes a new instance of the DiskUpdate class.

public DiskUpdate ();
Public Sub New ()

Applies to

DiskUpdate(Nullable<OperatingSystemTypes>, Nullable<Int32>, EncryptionSettingsCollection, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Int32>, Encryption, NetworkAccessPolicy, String, String, IDictionary<String,String>, DiskSku)

Initializes a new instance of the DiskUpdate class.

public DiskUpdate (Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemTypes? osType = default, int? diskSizeGB = default, Microsoft.Azure.Management.Compute.Fluent.Models.EncryptionSettingsCollection encryptionSettingsCollection = default, long? diskIOPSReadWrite = default, long? diskMBpsReadWrite = default, long? diskIOPSReadOnly = default, long? diskMBpsReadOnly = default, int? maxShares = default, Microsoft.Azure.Management.Compute.Fluent.Models.Encryption encryption = default, Microsoft.Azure.Management.Compute.Fluent.Models.NetworkAccessPolicy networkAccessPolicy = default, string diskAccessId = default, string tier = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Compute.Fluent.Models.DiskSku sku = default);
new Microsoft.Azure.Management.Compute.Fluent.Models.DiskUpdate : Nullable<Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemTypes> * Nullable<int> * Microsoft.Azure.Management.Compute.Fluent.Models.EncryptionSettingsCollection * Nullable<int64> * Nullable<int64> * Nullable<int64> * Nullable<int64> * Nullable<int> * Microsoft.Azure.Management.Compute.Fluent.Models.Encryption * Microsoft.Azure.Management.Compute.Fluent.Models.NetworkAccessPolicy * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Fluent.Models.DiskSku -> Microsoft.Azure.Management.Compute.Fluent.Models.DiskUpdate
Public Sub New (Optional osType As Nullable(Of OperatingSystemTypes) = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional encryptionSettingsCollection As EncryptionSettingsCollection = Nothing, Optional diskIOPSReadWrite As Nullable(Of Long) = Nothing, Optional diskMBpsReadWrite As Nullable(Of Long) = Nothing, Optional diskIOPSReadOnly As Nullable(Of Long) = Nothing, Optional diskMBpsReadOnly As Nullable(Of Long) = Nothing, Optional maxShares As Nullable(Of Integer) = Nothing, Optional encryption As Encryption = Nothing, Optional networkAccessPolicy As NetworkAccessPolicy = Nothing, Optional diskAccessId As String = Nothing, Optional tier As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional sku As DiskSku = Nothing)

Parameters

osType
Nullable<OperatingSystemTypes>

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

diskSizeGB
Nullable<Int32>

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.

encryptionSettingsCollection
EncryptionSettingsCollection

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

diskIOPSReadWrite
Nullable<Int64>

The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.

diskMBpsReadWrite
Nullable<Int64>

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.

diskIOPSReadOnly
Nullable<Int64>

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.

diskMBpsReadOnly
Nullable<Int64>

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.

maxShares
Nullable<Int32>

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

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

networkAccessPolicy
NetworkAccessPolicy

Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'

diskAccessId
String

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

tier
String

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.

tags
IDictionary<String,String>

Resource tags

sku
DiskSku

Applies to