Delen via


ArmComputeModelFactory.ManagedDiskData Method

Definition

Initializes a new instance of ManagedDiskData.

public static Azure.ResourceManager.Compute.ManagedDiskData ManagedDiskData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.Core.ResourceIdentifier managedBy = default, System.Collections.Generic.IEnumerable<Azure.Core.ResourceIdentifier> managedByExtended = default, Azure.ResourceManager.Compute.Models.DiskSku sku = default, System.Collections.Generic.IEnumerable<string> zones = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, DateTimeOffset? timeCreated = default, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default, Azure.ResourceManager.Compute.Models.DiskPurchasePlan purchasePlan = default, Azure.ResourceManager.Compute.Models.SupportedCapabilities supportedCapabilities = default, Azure.ResourceManager.Compute.Models.DiskCreationData creationData = default, int? diskSizeGB = default, long? diskSizeBytes = default, string uniqueId = default, Azure.ResourceManager.Compute.Models.EncryptionSettingsGroup encryptionSettingsGroup = default, string provisioningState = default, long? diskIopsReadWrite = default, long? diskMBpsReadWrite = default, long? diskIopsReadOnly = default, long? diskMBpsReadOnly = default, Azure.ResourceManager.Compute.Models.DiskState? diskState = default, Azure.ResourceManager.Compute.Models.DiskEncryption encryption = default, int? maxShares = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ShareInfoElement> shareInfo = default, Azure.ResourceManager.Compute.Models.NetworkAccessPolicy? networkAccessPolicy = default, Azure.Core.ResourceIdentifier diskAccessId = default, DateTimeOffset? burstingEnabledOn = default, string tier = default, bool? burstingEnabled = default, string propertyUpdatesInProgressTargetTier = default, bool? supportsHibernation = default, Azure.ResourceManager.Compute.Models.DiskSecurityProfile securityProfile = default, float? completionPercent = default, Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess? publicNetworkAccess = default, Azure.ResourceManager.Compute.Models.DataAccessAuthMode? dataAccessAuthMode = default, bool? isOptimizedForFrequentAttach = default, DateTimeOffset? lastOwnershipUpdateOn = default);
static member ManagedDiskData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.Core.ResourceIdentifier * seq<Azure.Core.ResourceIdentifier> * Azure.ResourceManager.Compute.Models.DiskSku * seq<string> * Azure.ResourceManager.Resources.Models.ExtendedLocation * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType> * Nullable<Azure.ResourceManager.Compute.Models.HyperVGeneration> * Azure.ResourceManager.Compute.Models.DiskPurchasePlan * Azure.ResourceManager.Compute.Models.SupportedCapabilities * Azure.ResourceManager.Compute.Models.DiskCreationData * Nullable<int> * Nullable<int64> * string * Azure.ResourceManager.Compute.Models.EncryptionSettingsGroup * string * Nullable<int64> * Nullable<int64> * Nullable<int64> * Nullable<int64> * Nullable<Azure.ResourceManager.Compute.Models.DiskState> * Azure.ResourceManager.Compute.Models.DiskEncryption * Nullable<int> * seq<Azure.ResourceManager.Compute.Models.ShareInfoElement> * Nullable<Azure.ResourceManager.Compute.Models.NetworkAccessPolicy> * Azure.Core.ResourceIdentifier * Nullable<DateTimeOffset> * string * Nullable<bool> * string * Nullable<bool> * Azure.ResourceManager.Compute.Models.DiskSecurityProfile * Nullable<single> * Nullable<Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess> * Nullable<Azure.ResourceManager.Compute.Models.DataAccessAuthMode> * Nullable<bool> * Nullable<DateTimeOffset> -> Azure.ResourceManager.Compute.ManagedDiskData
Public Shared Function ManagedDiskData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional managedBy As ResourceIdentifier = Nothing, Optional managedByExtended As IEnumerable(Of ResourceIdentifier) = Nothing, Optional sku As DiskSku = Nothing, Optional zones As IEnumerable(Of String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional timeCreated As Nullable(Of DateTimeOffset) = Nothing, Optional osType As Nullable(Of SupportedOperatingSystemType) = Nothing, Optional hyperVGeneration As Nullable(Of HyperVGeneration) = Nothing, Optional purchasePlan As DiskPurchasePlan = Nothing, Optional supportedCapabilities As SupportedCapabilities = Nothing, Optional creationData As DiskCreationData = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional diskSizeBytes As Nullable(Of Long) = Nothing, Optional uniqueId As String = Nothing, Optional encryptionSettingsGroup As EncryptionSettingsGroup = 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 Nullable(Of DiskState) = Nothing, Optional encryption As DiskEncryption = Nothing, Optional maxShares As Nullable(Of Integer) = Nothing, Optional shareInfo As IEnumerable(Of ShareInfoElement) = Nothing, Optional networkAccessPolicy As Nullable(Of NetworkAccessPolicy) = Nothing, Optional diskAccessId As ResourceIdentifier = Nothing, Optional burstingEnabledOn As Nullable(Of DateTimeOffset) = Nothing, Optional tier As String = Nothing, Optional burstingEnabled As Nullable(Of Boolean) = Nothing, Optional propertyUpdatesInProgressTargetTier As String = Nothing, Optional supportsHibernation As Nullable(Of Boolean) = Nothing, Optional securityProfile As DiskSecurityProfile = Nothing, Optional completionPercent As Nullable(Of Single) = Nothing, Optional publicNetworkAccess As Nullable(Of DiskPublicNetworkAccess) = Nothing, Optional dataAccessAuthMode As Nullable(Of DataAccessAuthMode) = Nothing, Optional isOptimizedForFrequentAttach As Nullable(Of Boolean) = Nothing, Optional lastOwnershipUpdateOn As Nullable(Of DateTimeOffset) = Nothing) As ManagedDiskData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

managedBy
ResourceIdentifier

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

managedByExtended
IEnumerable<ResourceIdentifier>

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

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

zones
IEnumerable<String>

The Logical zone list for Disk.

extendedLocation
ExtendedLocation

The extended location where the disk will be created. Extended location cannot be changed.

timeCreated
Nullable<DateTimeOffset>

The time when the disk was created.

osType
Nullable<SupportedOperatingSystemType>

The Operating System type.

hyperVGeneration
Nullable<HyperVGeneration>

The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

purchasePlan
DiskPurchasePlan

Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}.

supportedCapabilities
SupportedCapabilities

List of supported capabilities for the image from which the OS disk was created.

creationData
DiskCreationData

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

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.

encryptionSettingsGroup
EncryptionSettingsGroup

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
Nullable<DiskState>

The state of the disk.

encryption
DiskEncryption

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
IEnumerable<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
Nullable<NetworkAccessPolicy>

Policy for accessing the disk via network.

diskAccessId
ResourceIdentifier

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

burstingEnabledOn
Nullable<DateTimeOffset>

Latest time when bursting was last enabled on a disk.

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.

burstingEnabled
Nullable<Boolean>

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.

propertyUpdatesInProgressTargetTier
String

Properties of the disk for which update is pending.

supportsHibernation
Nullable<Boolean>

Indicates the OS on a disk supports hibernation.

securityProfile
DiskSecurityProfile

Contains the security related information for the resource.

completionPercent
Nullable<Single>

Percentage complete for the background copy when a resource is created via the CopyStart operation.

publicNetworkAccess
Nullable<DiskPublicNetworkAccess>

Policy for controlling export on the disk.

dataAccessAuthMode
Nullable<DataAccessAuthMode>

Additional authentication requirements when exporting or uploading to a disk or snapshot.

isOptimizedForFrequentAttach
Nullable<Boolean>

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.

lastOwnershipUpdateOn
Nullable<DateTimeOffset>

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.

Returns

A new ManagedDiskData instance for mocking.

Applies to