ArmComputeModelFactory.ManagedDiskPatch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Compute.Models.ManagedDiskPatch ManagedDiskPatch(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, bool? supportsHibernation = default, Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess? publicNetworkAccess = default, Azure.ResourceManager.Compute.Models.DataAccessAuthMode? dataAccessAuthMode = default, bool? isOptimizedForFrequentAttach = default, string propertyUpdatesInProgressTargetTier = default, Azure.ResourceManager.Compute.Models.AvailabilityPolicyDiskDelay? availabilityActionOnDiskDelay = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ResourceManager.Compute.Models.DiskSku sku = default);
static member ManagedDiskPatch : 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 * Nullable<bool> * Nullable<Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess> * Nullable<Azure.ResourceManager.Compute.Models.DataAccessAuthMode> * Nullable<bool> * string * Nullable<Azure.ResourceManager.Compute.Models.AvailabilityPolicyDiskDelay> * System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.Compute.Models.DiskSku -> Azure.ResourceManager.Compute.Models.ManagedDiskPatch
Public Shared Function ManagedDiskPatch (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 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, Optional propertyUpdatesInProgressTargetTier As String = Nothing, Optional availabilityActionOnDiskDelay As Nullable(Of AvailabilityPolicyDiskDelay) = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional sku As DiskSku = Nothing) As ManagedDiskPatch
Parameters
- osType
- Nullable<SupportedOperatingSystemType>
the Operating System type.
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.
The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
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.
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.
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.
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.
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.
- 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.
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.
- propertyUpdatesInProgressTargetTier
- String
The target performance tier of the disk if a tier change operation is in progress.
- availabilityActionOnDiskDelay
- Nullable<AvailabilityPolicyDiskDelay>
Determines on how to handle disks with slow I/O.
- 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.
Returns
A new ManagedDiskPatch instance for mocking.