Partilhar via


ArmComputeModelFactory.ManagedDiskPatch Method

Definition

Initializes a new instance of ManagedDiskPatch.

public static Azure.ResourceManager.Compute.Models.ManagedDiskPatch ManagedDiskPatch (System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ResourceManager.Compute.Models.DiskSku sku = default, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default, int? diskSizeGB = default, Azure.ResourceManager.Compute.Models.EncryptionSettingsGroup encryptionSettingsGroup = default, long? diskIopsReadWrite = default, long? diskMBpsReadWrite = default, long? diskIopsReadOnly = default, long? diskMBpsReadOnly = default, int? maxShares = default, Azure.ResourceManager.Compute.Models.DiskEncryption encryption = default, Azure.ResourceManager.Compute.Models.NetworkAccessPolicy? networkAccessPolicy = default, Azure.Core.ResourceIdentifier diskAccessId = default, string tier = default, bool? burstingEnabled = default, Azure.ResourceManager.Compute.Models.DiskPurchasePlan purchasePlan = default, Azure.ResourceManager.Compute.Models.SupportedCapabilities supportedCapabilities = default, string propertyUpdatesInProgressTargetTier = default, bool? supportsHibernation = default, Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess? publicNetworkAccess = default, Azure.ResourceManager.Compute.Models.DataAccessAuthMode? dataAccessAuthMode = default, bool? isOptimizedForFrequentAttach = default);
static member ManagedDiskPatch : System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.Compute.Models.DiskSku * Nullable<Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType> * Nullable<int> * Azure.ResourceManager.Compute.Models.EncryptionSettingsGroup * Nullable<int64> * Nullable<int64> * Nullable<int64> * Nullable<int64> * Nullable<int> * Azure.ResourceManager.Compute.Models.DiskEncryption * Nullable<Azure.ResourceManager.Compute.Models.NetworkAccessPolicy> * Azure.Core.ResourceIdentifier * string * Nullable<bool> * Azure.ResourceManager.Compute.Models.DiskPurchasePlan * Azure.ResourceManager.Compute.Models.SupportedCapabilities * string * Nullable<bool> * Nullable<Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess> * Nullable<Azure.ResourceManager.Compute.Models.DataAccessAuthMode> * Nullable<bool> -> Azure.ResourceManager.Compute.Models.ManagedDiskPatch
Public Shared Function ManagedDiskPatch (Optional tags As IDictionary(Of String, String) = Nothing, Optional sku As DiskSku = Nothing, Optional osType As Nullable(Of SupportedOperatingSystemType) = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional encryptionSettingsGroup As EncryptionSettingsGroup = 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 DiskEncryption = Nothing, Optional networkAccessPolicy As Nullable(Of NetworkAccessPolicy) = Nothing, Optional diskAccessId As ResourceIdentifier = Nothing, Optional tier As String = Nothing, Optional burstingEnabled As Nullable(Of Boolean) = Nothing, Optional purchasePlan As DiskPurchasePlan = Nothing, Optional supportedCapabilities As SupportedCapabilities = Nothing, Optional propertyUpdatesInProgressTargetTier As String = Nothing, Optional supportsHibernation As Nullable(Of Boolean) = Nothing, Optional publicNetworkAccess As Nullable(Of DiskPublicNetworkAccess) = Nothing, Optional dataAccessAuthMode As Nullable(Of DataAccessAuthMode) = Nothing, Optional isOptimizedForFrequentAttach As Nullable(Of Boolean) = Nothing) As ManagedDiskPatch

Parameters

tags
IDictionary<String,String>

Resource tags.

sku
DiskSku

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

osType
Nullable<SupportedOperatingSystemType>

the Operating System type.

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.

encryptionSettingsGroup
EncryptionSettingsGroup

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
DiskEncryption

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

networkAccessPolicy
Nullable<NetworkAccessPolicy>

Policy for accessing the disk via network.

diskAccessId
ResourceIdentifier

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.

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.

purchasePlan
DiskPurchasePlan

Purchase plan information to be added on the OS disk.

supportedCapabilities
SupportedCapabilities

List of supported capabilities to be added on the OS disk.

propertyUpdatesInProgressTargetTier
String

Properties of the disk for which update is pending.

supportsHibernation
Nullable<Boolean>

Indicates the OS on a disk supports hibernation.

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.

Returns

A new ManagedDiskPatch instance for mocking.

Applies to