共用方式為


DiskInner Constructors

Definition

Overloads

DiskInner()

Initializes a new instance of the DiskInner class.

DiskInner(String, CreationData, String, String, String, IDictionary<String, String>, String, IList<String>, DiskSku, IList<String>, Nullable<DateTime>, Nullable<OperatingSystemTypes>, HyperVGeneration, Nullable<Int32>, Nullable<Int64>, String, EncryptionSettingsCollection, String, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, DiskState, Encryption, Nullable<Int32>, IList<ShareInfoElement>, NetworkAccessPolicy, String, String)

Initializes a new instance of the DiskInner class.

DiskInner()

Initializes a new instance of the DiskInner class.

public DiskInner ();
Public Sub New ()

Applies to

DiskInner(String, CreationData, String, String, String, IDictionary<String, String>, String, IList<String>, DiskSku, IList<String>, Nullable<DateTime>, Nullable<OperatingSystemTypes>, HyperVGeneration, Nullable<Int32>, Nullable<Int64>, String, EncryptionSettingsCollection, String, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, DiskState, Encryption, Nullable<Int32>, IList<ShareInfoElement>, NetworkAccessPolicy, String, String)

Initializes a new instance of the DiskInner class.

public DiskInner (string location, Microsoft.Azure.Management.Compute.Fluent.Models.CreationData creationData, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string managedBy = default, System.Collections.Generic.IList<string> managedByExtended = default, Microsoft.Azure.Management.Compute.Fluent.Models.DiskSku sku = default, System.Collections.Generic.IList<string> zones = default, DateTime? timeCreated = default, Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemTypes? osType = default, Microsoft.Azure.Management.Compute.Fluent.Models.HyperVGeneration hyperVGeneration = default, int? diskSizeGB = default, long? diskSizeBytes = default, string uniqueId = default, Microsoft.Azure.Management.Compute.Fluent.Models.EncryptionSettingsCollection encryptionSettingsCollection = default, string provisioningState = default, long? diskIOPSReadWrite = default, long? diskMBpsReadWrite = default, long? diskIOPSReadOnly = default, long? diskMBpsReadOnly = default, Microsoft.Azure.Management.Compute.Fluent.Models.DiskState diskState = default, Microsoft.Azure.Management.Compute.Fluent.Models.Encryption encryption = default, int? maxShares = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Fluent.Models.ShareInfoElement> shareInfo = default, Microsoft.Azure.Management.Compute.Fluent.Models.NetworkAccessPolicy networkAccessPolicy = default, string diskAccessId = default, string tier = default);
new Microsoft.Azure.Management.Compute.Fluent.Models.DiskInner : string * Microsoft.Azure.Management.Compute.Fluent.Models.CreationData * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Compute.Fluent.Models.DiskSku * System.Collections.Generic.IList<string> * Nullable<DateTime> * Nullable<Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemTypes> * Microsoft.Azure.Management.Compute.Fluent.Models.HyperVGeneration * Nullable<int> * Nullable<int64> * string * Microsoft.Azure.Management.Compute.Fluent.Models.EncryptionSettingsCollection * string * Nullable<int64> * Nullable<int64> * Nullable<int64> * Nullable<int64> * Microsoft.Azure.Management.Compute.Fluent.Models.DiskState * Microsoft.Azure.Management.Compute.Fluent.Models.Encryption * Nullable<int> * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Fluent.Models.ShareInfoElement> * Microsoft.Azure.Management.Compute.Fluent.Models.NetworkAccessPolicy * string * string -> Microsoft.Azure.Management.Compute.Fluent.Models.DiskInner
Public Sub New (location As String, creationData As CreationData, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional managedBy As String = Nothing, Optional managedByExtended As IList(Of String) = Nothing, Optional sku As DiskSku = Nothing, Optional zones As IList(Of String) = Nothing, Optional timeCreated As Nullable(Of DateTime) = Nothing, Optional osType As Nullable(Of OperatingSystemTypes) = Nothing, Optional hyperVGeneration As HyperVGeneration = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional diskSizeBytes As Nullable(Of Long) = Nothing, Optional uniqueId As String = Nothing, Optional encryptionSettingsCollection As EncryptionSettingsCollection = Nothing, Optional provisioningState As String = 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 diskState As DiskState = Nothing, Optional encryption As Encryption = Nothing, Optional maxShares As Nullable(Of Integer) = Nothing, Optional shareInfo As IList(Of ShareInfoElement) = Nothing, Optional networkAccessPolicy As NetworkAccessPolicy = Nothing, Optional diskAccessId As String = Nothing, Optional tier As String = Nothing)

Parameters

location
String
creationData
CreationData

Disk source information. CreationData information cannot be changed after the disk has been created.

id
String
name
String
type
String
managedBy
String

A relative URI containing the ID of the VM that has the disk attached.

managedByExtended
IList<String>

List of relative URIs containing the IDs of the 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.

sku
DiskSku
zones
IList<String>

The Logical zone list for Disk.

timeCreated
Nullable<DateTime>

The time when the disk was created.

osType
Nullable<OperatingSystemTypes>

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

hyperVGeneration
HyperVGeneration

The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2'

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.

diskSizeBytes
Nullable<Int64>

The size of the disk in bytes. This field is read only.

uniqueId
String

Unique Guid identifying the resource.

encryptionSettingsCollection
EncryptionSettingsCollection

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

provisioningState
String

The disk provisioning state.

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.

diskState
DiskState

The state of the disk. Possible values include: 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'ReadyToUpload', 'ActiveUpload'

encryption
Encryption

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

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.

shareInfo
IList<ShareInfoElement>

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.

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.

Applies to